From c2b07a66431afc6764b89e4923807058961f3d1e Mon Sep 17 00:00:00 2001 From: Daniel Ayala Date: Thu, 6 Feb 2025 13:48:11 +0100 Subject: [PATCH 1/7] Delete CODE_OF_CONDUCT.md --- CODE_OF_CONDUCT.md | 76 ---------------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 76a44e4..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,76 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to make participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, sex characteristics, gender identity and expression, -level of experience, education, socio-economic status, nationality, personal -appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies within all project spaces, and it also applies when -an individual is representing the project or its community in public spaces. -Examples of representing a project or community include using an official -project e-mail address, posting via an official social media account, or acting -as an appointed representative at an online or offline event. Representation of -a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at borrego@us.es. All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq \ No newline at end of file From 578e11f2bd9d4196ba62bce52484e7aafc1598ed Mon Sep 17 00:00:00 2001 From: Daniel Ayala Date: Thu, 6 Feb 2025 13:48:30 +0100 Subject: [PATCH 2/7] Delete TO-DO.md --- TO-DO.md | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 TO-DO.md diff --git a/TO-DO.md b/TO-DO.md deleted file mode 100644 index 1c78ea9..0000000 --- a/TO-DO.md +++ /dev/null @@ -1,10 +0,0 @@ -# Must complete (high priority) -- - -# Should be done eventually (medium priority) -- Compatibility with other databases (SQLite, PostgreSQL, Oracle) -- Add URL params as function arguments for the endpoints - -# Would be nice (low priority) -- Automate the command listing and handling -- Filter/sort/paginate by editing the SQL query From f11f7659dfa2e62377d330dea963bf4ddc8d32e3 Mon Sep 17 00:00:00 2001 From: Oscar <36568572+nv0skar@users.noreply.github.com> Date: Tue, 27 Jan 2026 17:43:35 +0100 Subject: [PATCH 3/7] - Added `pyproject.toml` according to PEP 518. - Updated dependencies. - Fixed removed 'Flask's' `JSONEncoder`. - Removed unused dependency `cryptography`. --- .DS_Store | Bin 0 -> 6148 bytes .gitignore | 2 + CHANGELOG.md | 6 + bump_version.py | 2 +- pyproject.toml | 58 +++ setup.py | 47 --- silence/__init__.py | 1 - src/silence/__version__.py | 1 + {silence => src/silence}/auth/__init__.py | 0 {silence => src/silence}/auth/tokens.py | 0 {silence => src/silence}/cli/__init__.py | 0 .../silence}/cli/commands/__init__.py | 0 .../silence}/cli/commands/createapi.py | 0 .../silence}/cli/commands/createdb.py | 0 .../silence}/cli/commands/createtests.py | 0 .../silence}/cli/commands/list_templates.py | 0 {silence => src/silence}/cli/commands/new.py | 0 {silence => src/silence}/cli/commands/run.py | 15 +- {silence => src/silence}/cli/manager.py | 56 ++- .../silence}/cli/template_downloader.py | 0 {silence => src/silence}/db/__init__.py | 0 {silence => src/silence}/db/connector.py | 0 {silence => src/silence}/db/dal.py | 0 {silence => src/silence}/db/populate.py | 0 .../silence}/decorators/__init__.py | 0 .../silence}/decorators/db_call.py | 0 .../silence}/exceptions/__init__.py | 0 {silence => src/silence}/logging/__init__.py | 0 .../silence}/logging/default_formatter.py | 0 .../silence}/logging/default_logger.py | 0 .../silence}/logging/flask_filter.py | 0 {silence => src/silence}/logging/handler.py | 0 {silence => src/silence}/logging/utils.py | 0 {silence => src/silence}/server/__init__.py | 0 .../silence}/server/api_summary.py | 0 .../silence}/server/default_endpoints.py | 0 {silence => src/silence}/server/endpoint.py | 0 .../silence}/server/endpoint_creator.py | 0 .../silence}/server/endpoint_loader.py | 0 {silence => src/silence}/server/manager.py | 25 +- .../silence}/server/test_creator.py | 0 {silence => src/silence}/settings/__init__.py | 0 .../silence}/settings/default_settings.py | 0 {silence => src/silence}/sql/__init__.py | 0 {silence => src/silence}/sql/builder.py | 0 {silence => src/silence}/sql/converter.py | 0 {silence => src/silence}/sql/tables.py | 0 {silence => src/silence}/utils/__init__.py | 0 .../silence}/utils/check_update.py | 5 +- {silence => src/silence}/utils/min_type.py | 0 .../silence}/utils/silence_json_encoder.py | 10 +- uv.lock | 340 ++++++++++++++++++ 52 files changed, 487 insertions(+), 81 deletions(-) create mode 100644 .DS_Store create mode 100644 pyproject.toml delete mode 100644 setup.py delete mode 100644 silence/__init__.py create mode 100644 src/silence/__version__.py rename {silence => src/silence}/auth/__init__.py (100%) rename {silence => src/silence}/auth/tokens.py (100%) rename {silence => src/silence}/cli/__init__.py (100%) rename {silence => src/silence}/cli/commands/__init__.py (100%) rename {silence => src/silence}/cli/commands/createapi.py (100%) rename {silence => src/silence}/cli/commands/createdb.py (100%) rename {silence => src/silence}/cli/commands/createtests.py (100%) rename {silence => src/silence}/cli/commands/list_templates.py (100%) rename {silence => src/silence}/cli/commands/new.py (100%) rename {silence => src/silence}/cli/commands/run.py (52%) rename {silence => src/silence}/cli/manager.py (65%) rename {silence => src/silence}/cli/template_downloader.py (100%) rename {silence => src/silence}/db/__init__.py (100%) rename {silence => src/silence}/db/connector.py (100%) rename {silence => src/silence}/db/dal.py (100%) rename {silence => src/silence}/db/populate.py (100%) rename {silence => src/silence}/decorators/__init__.py (100%) rename {silence => src/silence}/decorators/db_call.py (100%) rename {silence => src/silence}/exceptions/__init__.py (100%) rename {silence => src/silence}/logging/__init__.py (100%) rename {silence => src/silence}/logging/default_formatter.py (100%) rename {silence => src/silence}/logging/default_logger.py (100%) rename {silence => src/silence}/logging/flask_filter.py (100%) rename {silence => src/silence}/logging/handler.py (100%) rename {silence => src/silence}/logging/utils.py (100%) rename {silence => src/silence}/server/__init__.py (100%) rename {silence => src/silence}/server/api_summary.py (100%) rename {silence => src/silence}/server/default_endpoints.py (100%) rename {silence => src/silence}/server/endpoint.py (100%) rename {silence => src/silence}/server/endpoint_creator.py (100%) rename {silence => src/silence}/server/endpoint_loader.py (100%) rename {silence => src/silence}/server/manager.py (89%) rename {silence => src/silence}/server/test_creator.py (100%) rename {silence => src/silence}/settings/__init__.py (100%) rename {silence => src/silence}/settings/default_settings.py (100%) rename {silence => src/silence}/sql/__init__.py (100%) rename {silence => src/silence}/sql/builder.py (100%) rename {silence => src/silence}/sql/converter.py (100%) rename {silence => src/silence}/sql/tables.py (100%) rename {silence => src/silence}/utils/__init__.py (100%) rename {silence => src/silence}/utils/check_update.py (89%) rename {silence => src/silence}/utils/min_type.py (100%) rename {silence => src/silence}/utils/silence_json_encoder.py (87%) create mode 100644 uv.lock diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..3a532d68bd2ec827a729a1aa3d8303b75a1f8ef8 GIT binary patch literal 6148 zcmeHKO-lnY5Pi`e3Le^{H}eZz{Rg4cn}|?6tJNOV+Lm^=;4MGhH_Dej||A3nI3KQ}$r@o+NM*TNy zUD;Yc>}nUu^gTHP&VV!E4EzfQ_-2drj}*Ok2AlzB;FAHlA0nGzGR%tQ>R?w&0Ai2k zA{R#C_z(+ni{Oc2%1iNw76uL6*V29tju|A<&WYel+|gEB^)6sdhZN4 z18oKlRUOLvf5A_tv&e6!xaJHv1AE3m=#3}i5f5c=>$l^{TN~N#*hC~Q%Yedh>nDJU h+#|=uss1Qq#wEk7D6@#Yq!ax|pb+AnGw=rtyaRzjG8zB? literal 0 HcmV?d00001 diff --git a/.gitignore b/.gitignore index d413eb0..caf1d7a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ # Created by https://www.gitignore.io/api/python # Edit at https://www.gitignore.io/?templates=python +**/.venv + # Just In Case™ Silence-CI-Project/ diff --git a/CHANGELOG.md b/CHANGELOG.md index d3943c7..994d0d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 2.2.1 +- Added `pyproject.toml` according to PEP 518. +- Updated dependencies. +- Fixed removed 'Flask's' `JSONEncoder`. +- Removed unused dependency `cryptography`. +- # 2.2.0 - Autogenerated views do not allow users to view them by a specific primary key argument, as the view might not have access to said arguments, now only GetAll is implemented. - request body parameters now show up on silence console if the corresponding flag is true in settings.py diff --git a/bump_version.py b/bump_version.py index 48d513a..984e10d 100644 --- a/bump_version.py +++ b/bump_version.py @@ -8,7 +8,7 @@ version = sys.argv[1] # Write the version to __init__.py and to the top of the changelog -open("silence/__init__.py", "w").write(f'__version__ = "{version}"\n') +open("silence/__version__.py", "w").write(f'__version__ = "{version}"\n') changelog_lines = open("CHANGELOG.md", "r").readlines() changelog_lines[0] = f"# {version}\n" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0f747bf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,58 @@ +[project] +name = "Silence" +dynamic = ["version"] +description = "An educational API+Web framework." +authors = [{ name = "Agustín Borrego", email = "borrego@us.es" }] +maintainers = [{ name = "Miguel Bermudo", email = "mbermudo@us.es" }] +license = "MIT" +dependencies = [ + "colorama == 0.4.6", + "Flask-Cors==6.0.2", + "Flask==3.1.2", + "itsdangerous==2.2.0", + "PyMySQL~=1.1.2", + "pypika @ git+https://github.com/kayak/pypika", + "requests~=2.32.5", + "Werkzeug~=3.1.5", +] +requires-python = ">=3.9" + +[project.urls] +Repository = "http://github.com/DEAL-US/Silence" + +[build-system] +requires = ["hatchling>=1.18.0"] +build-backend = "hatchling.build" + +[project.scripts] +silence = "silence.cli.manager:run_from_command_line" + +[tool.hatch.build.targets.wheel] +packages = ["src/silence"] + +[tool.hatch.version] +path = "src/silence/__version__.py" + +[tool.hatch.build.targets.sdist] +exclude = ["/.github"] + +[tool.hatch.envs.default] +dependencies = ["black"] + +[tool.hatch.envs.default.scripts] +lint = "ruff check ." +format = "black ." + +[tool.hatch.envs.lint] +detached = true +dependencies = ["black>=23.0.0", "ruff>=0.1.0"] + +[tool.hatch.envs.lint.scripts] +check = "ruff check ." +format = ["black .", "ruff check --fix ."] + +[tool.hatch.metadata] +allow-direct-references = true + +[tool.ruff.lint.isort] +lines-after-imports = 1 diff --git a/setup.py b/setup.py deleted file mode 100644 index f672068..0000000 --- a/setup.py +++ /dev/null @@ -1,47 +0,0 @@ -import os -import re - -from setuptools import setup, find_packages - -with open("README.md", "r") as f: - long_description = f.read() - -# Borrowed from urllib3 (which is in turn borrowed from SQLAlchemy) -base_path = os.path.dirname(__file__) -ver_path = os.path.join(base_path, "silence", "__init__.py") - -with open(ver_path, "r") as f: - version = re.compile(r""".*__version__ = ["'](.*?)['"]""", re.S).match(f.read()).group(1) - -setup( - name="Silence", - version=version, - description="An educational API+Web framework.", - long_description=long_description, - long_description_content_type="text/markdown", - url="http://github.com/DEAL-US/Silence", - author="Agustín Borrego", - author_email="borrego@us.es", - maintainer="Miguel Bermudo", - maintainer_email="mbermudo@us.es", - license="MIT", - packages=find_packages(), - entry_points={ - "console_scripts": [ - "silence = silence.cli.manager:run_from_command_line", - ], - }, - install_requires=[ - "colorama~=0.4.4", - "cryptography~=36.0.2", - "Flask-Cors==3.0.10", - "Flask==2.0.3", - "itsdangerous~=2.0.1", - "PyMySQL~=1.0.2", - "pypika==0.48.9", - "requests~=2.27.1", - "Werkzeug~=2.0.3", - ], - python_requires="~=3.8", - zip_safe=False -) \ No newline at end of file diff --git a/silence/__init__.py b/silence/__init__.py deleted file mode 100644 index 8a124bf..0000000 --- a/silence/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__version__ = "2.2.0" diff --git a/src/silence/__version__.py b/src/silence/__version__.py new file mode 100644 index 0000000..303bd43 --- /dev/null +++ b/src/silence/__version__.py @@ -0,0 +1 @@ +__version__ = "2.2.1-dev" diff --git a/silence/auth/__init__.py b/src/silence/auth/__init__.py similarity index 100% rename from silence/auth/__init__.py rename to src/silence/auth/__init__.py diff --git a/silence/auth/tokens.py b/src/silence/auth/tokens.py similarity index 100% rename from silence/auth/tokens.py rename to src/silence/auth/tokens.py diff --git a/silence/cli/__init__.py b/src/silence/cli/__init__.py similarity index 100% rename from silence/cli/__init__.py rename to src/silence/cli/__init__.py diff --git a/silence/cli/commands/__init__.py b/src/silence/cli/commands/__init__.py similarity index 100% rename from silence/cli/commands/__init__.py rename to src/silence/cli/commands/__init__.py diff --git a/silence/cli/commands/createapi.py b/src/silence/cli/commands/createapi.py similarity index 100% rename from silence/cli/commands/createapi.py rename to src/silence/cli/commands/createapi.py diff --git a/silence/cli/commands/createdb.py b/src/silence/cli/commands/createdb.py similarity index 100% rename from silence/cli/commands/createdb.py rename to src/silence/cli/commands/createdb.py diff --git a/silence/cli/commands/createtests.py b/src/silence/cli/commands/createtests.py similarity index 100% rename from silence/cli/commands/createtests.py rename to src/silence/cli/commands/createtests.py diff --git a/silence/cli/commands/list_templates.py b/src/silence/cli/commands/list_templates.py similarity index 100% rename from silence/cli/commands/list_templates.py rename to src/silence/cli/commands/list_templates.py diff --git a/silence/cli/commands/new.py b/src/silence/cli/commands/new.py similarity index 100% rename from silence/cli/commands/new.py rename to src/silence/cli/commands/new.py diff --git a/silence/cli/commands/run.py b/src/silence/cli/commands/run.py similarity index 52% rename from silence/cli/commands/run.py rename to src/silence/cli/commands/run.py index ddfcc8e..c291509 100644 --- a/silence/cli/commands/run.py +++ b/src/silence/cli/commands/run.py @@ -1,19 +1,24 @@ from silence.logging.default_logger import logger from silence.settings import settings from silence.utils.check_update import check_for_new_version -from silence import __version__ +from silence.__version__ import __version__ def handle(args): from silence.server import manager as server_manager - + logger.info("Silence v%s", __version__) logger.debug("Current settings:\n%s", str(settings)) new_ver = check_for_new_version() if new_ver: - logger.warning("A new Silence version (v%s) is available. Run 'pip install --upgrade Silence' to upgrade.", new_ver) - logger.warning("To see what's new, visit: https://github.com/DEAL-US/Silence/blob/master/CHANGELOG.md") + logger.warning( + "A new Silence version (v%s) is available. Run 'pip install --upgrade Silence' to upgrade.", + new_ver, + ) + logger.warning( + "To see what's new, visit: https://github.com/DEAL-US/Silence/blob/master/CHANGELOG.md" + ) server_manager.setup() - server_manager.run() \ No newline at end of file + server_manager.run() diff --git a/silence/cli/manager.py b/src/silence/cli/manager.py similarity index 65% rename from silence/cli/manager.py rename to src/silence/cli/manager.py index 5db23b2..ff194bf 100644 --- a/silence/cli/manager.py +++ b/src/silence/cli/manager.py @@ -2,10 +2,17 @@ import sys import logging -from silence import __version__ +from silence.__version__ import __version__ from silence.settings import settings from silence.logging.default_logger import logger -from silence.cli.commands import run, createdb, new, list_templates, createapi, createtests +from silence.cli.commands import ( + run, + createdb, + new, + list_templates, + createapi, + createtests, +) ############################################################################### # Command line interface manager @@ -18,34 +25,57 @@ "new": new.handle, "list-templates": list_templates.handle, "createapi": createapi.handle, - "createtests": createtests.handle + "createtests": createtests.handle, } + def run_from_command_line(): parser = argparse.ArgumentParser( description="Silence: An educational framework for deploying RESTful APIs and Web applications." ) subparsers = parser.add_subparsers(help="Description:", dest="command") - + # Force the user to select one of the available commands, # and allow them to provide additional options after it. - parser.add_argument("-v", "--version", action="version", version=f"Silence v{__version__}") + parser.add_argument( + "-v", + "--version", + action="version", + version=f"Silence v{__version__}", + ) + + parser_list = subparsers.add_parser( + "list-templates", help="Lists the available project templates" + ) + parser_list.add_argument( + "--debug", action="store_true", help="Enables the debug mode" + ) - parser_list = subparsers.add_parser("list-templates", help="Lists the available project templates") - parser_list.add_argument("--debug", action="store_true", help="Enables the debug mode") - parser_new = subparsers.add_parser("new", help="Creates a new project") parser_new.add_argument("name", help="The new project's name") group = parser_new.add_mutually_exclusive_group() - group.add_argument("--template", help="Template name to use when creating the new project") + group.add_argument( + "--template", help="Template name to use when creating the new project" + ) group.add_argument("--url", help="URL to a Git repo containing a project to clone") group.add_argument("--blank", action="store_true", help="Alias to --template blank") - parser_new.add_argument("--debug", action="store_true", help="Enables the debug mode") + parser_new.add_argument( + "--debug", action="store_true", help="Enables the debug mode" + ) - subparsers.add_parser("createdb", help="Runs the provided SQL scripts in the adequate order in the database") + subparsers.add_parser( + "createdb", + help="Runs the provided SQL scripts in the adequate order in the database", + ) subparsers.add_parser("run", help="Starts the web server") - subparsers.add_parser("createapi" , help="Reads the database and generates CRUD operations which aren't defined by the user already. ") - subparsers.add_parser("createtests" , help="Reads the database and generates the main test cases for the entities.") + subparsers.add_parser( + "createapi", + help="Reads the database and generates CRUD operations which aren't defined by the user already. ", + ) + subparsers.add_parser( + "createtests", + help="Reads the database and generates the main test cases for the entities.", + ) # Show the help dialog if the command is issued without any arguments if len(sys.argv) == 1: diff --git a/silence/cli/template_downloader.py b/src/silence/cli/template_downloader.py similarity index 100% rename from silence/cli/template_downloader.py rename to src/silence/cli/template_downloader.py diff --git a/silence/db/__init__.py b/src/silence/db/__init__.py similarity index 100% rename from silence/db/__init__.py rename to src/silence/db/__init__.py diff --git a/silence/db/connector.py b/src/silence/db/connector.py similarity index 100% rename from silence/db/connector.py rename to src/silence/db/connector.py diff --git a/silence/db/dal.py b/src/silence/db/dal.py similarity index 100% rename from silence/db/dal.py rename to src/silence/db/dal.py diff --git a/silence/db/populate.py b/src/silence/db/populate.py similarity index 100% rename from silence/db/populate.py rename to src/silence/db/populate.py diff --git a/silence/decorators/__init__.py b/src/silence/decorators/__init__.py similarity index 100% rename from silence/decorators/__init__.py rename to src/silence/decorators/__init__.py diff --git a/silence/decorators/db_call.py b/src/silence/decorators/db_call.py similarity index 100% rename from silence/decorators/db_call.py rename to src/silence/decorators/db_call.py diff --git a/silence/exceptions/__init__.py b/src/silence/exceptions/__init__.py similarity index 100% rename from silence/exceptions/__init__.py rename to src/silence/exceptions/__init__.py diff --git a/silence/logging/__init__.py b/src/silence/logging/__init__.py similarity index 100% rename from silence/logging/__init__.py rename to src/silence/logging/__init__.py diff --git a/silence/logging/default_formatter.py b/src/silence/logging/default_formatter.py similarity index 100% rename from silence/logging/default_formatter.py rename to src/silence/logging/default_formatter.py diff --git a/silence/logging/default_logger.py b/src/silence/logging/default_logger.py similarity index 100% rename from silence/logging/default_logger.py rename to src/silence/logging/default_logger.py diff --git a/silence/logging/flask_filter.py b/src/silence/logging/flask_filter.py similarity index 100% rename from silence/logging/flask_filter.py rename to src/silence/logging/flask_filter.py diff --git a/silence/logging/handler.py b/src/silence/logging/handler.py similarity index 100% rename from silence/logging/handler.py rename to src/silence/logging/handler.py diff --git a/silence/logging/utils.py b/src/silence/logging/utils.py similarity index 100% rename from silence/logging/utils.py rename to src/silence/logging/utils.py diff --git a/silence/server/__init__.py b/src/silence/server/__init__.py similarity index 100% rename from silence/server/__init__.py rename to src/silence/server/__init__.py diff --git a/silence/server/api_summary.py b/src/silence/server/api_summary.py similarity index 100% rename from silence/server/api_summary.py rename to src/silence/server/api_summary.py diff --git a/silence/server/default_endpoints.py b/src/silence/server/default_endpoints.py similarity index 100% rename from silence/server/default_endpoints.py rename to src/silence/server/default_endpoints.py diff --git a/silence/server/endpoint.py b/src/silence/server/endpoint.py similarity index 100% rename from silence/server/endpoint.py rename to src/silence/server/endpoint.py diff --git a/silence/server/endpoint_creator.py b/src/silence/server/endpoint_creator.py similarity index 100% rename from silence/server/endpoint_creator.py rename to src/silence/server/endpoint_creator.py diff --git a/silence/server/endpoint_loader.py b/src/silence/server/endpoint_loader.py similarity index 100% rename from silence/server/endpoint_loader.py rename to src/silence/server/endpoint_loader.py diff --git a/silence/server/manager.py b/src/silence/server/manager.py similarity index 89% rename from silence/server/manager.py rename to src/silence/server/manager.py index 89eebb6..e0ca534 100644 --- a/silence/server/manager.py +++ b/src/silence/server/manager.py @@ -23,17 +23,22 @@ static_folder = join(getcwd(), "web") if settings.RUN_WEB else None APP = Flask(__name__, static_folder=static_folder) -cors = CORS(APP, resources={f"{settings.API_PREFIX}*": {"origins": "*"}}) +cors = CORS( + APP, resources={f"{settings.API_PREFIX}*": {"origins": "*"}} +) # TODO: is this unused API_SUMMARY = APISummary() + def setup(): # Configures the web server - APP.secret_key = settings.SECRET_KEY + APP.secret_key = settings.SECRET_KEY APP.config["SESSION_TYPE"] = "filesystem" - APP.config["SEND_FILE_MAX_AGE_DEFAULT"] = settings.HTTP_CACHE_TIME + APP.config["SEND_FILE_MAX_AGE_DEFAULT"] = settings.HTTP_CACHE_TIME # Mute Flask's startup messages - def noop(*args, **kwargs): pass + def noop(*args, **kwargs): + pass + click.echo = noop click.secho = noop @@ -67,7 +72,7 @@ def handle_generic_error(exc): code = exc.code res = jsonify({"message": exc.description, "code": code}) return res, code - + # We're facing an uncontrolled server exception # Only show the full stack trace in debug mode # Otherwise, just show the exception message @@ -86,9 +91,11 @@ def handle_generic_error(exc): # Check if clear text passwords can be used for login, and show a warning # if that is the case if settings.ALLOW_CLEAR_PASSWORDS: - logger.warning("This project allows clear text passwords in the DB to be used for login\n" + - "(ALLOW_CLEAR_PASSWORDS = True)\n" + - "This is NOT RECOMMENDED except for testing purposes.") + logger.warning( + "This project allows clear text passwords in the DB to be used for login\n" + + "(ALLOW_CLEAR_PASSWORDS = True)\n" + + "This is NOT RECOMMENDED except for testing purposes." + ) # Load the user-provided API endpoints and the default ones if settings.RUN_API: @@ -101,6 +108,7 @@ def handle_generic_error(exc): # Load the web static files if settings.RUN_WEB: logger.debug("Setting up web server") + @APP.route("/") def root(): return APP.send_static_file("index.html") @@ -109,6 +117,7 @@ def root(): def other_path(path): return APP.send_static_file(path) + def run(): APP.run( host=settings.LISTEN_ADDRESS, diff --git a/silence/server/test_creator.py b/src/silence/server/test_creator.py similarity index 100% rename from silence/server/test_creator.py rename to src/silence/server/test_creator.py diff --git a/silence/settings/__init__.py b/src/silence/settings/__init__.py similarity index 100% rename from silence/settings/__init__.py rename to src/silence/settings/__init__.py diff --git a/silence/settings/default_settings.py b/src/silence/settings/default_settings.py similarity index 100% rename from silence/settings/default_settings.py rename to src/silence/settings/default_settings.py diff --git a/silence/sql/__init__.py b/src/silence/sql/__init__.py similarity index 100% rename from silence/sql/__init__.py rename to src/silence/sql/__init__.py diff --git a/silence/sql/builder.py b/src/silence/sql/builder.py similarity index 100% rename from silence/sql/builder.py rename to src/silence/sql/builder.py diff --git a/silence/sql/converter.py b/src/silence/sql/converter.py similarity index 100% rename from silence/sql/converter.py rename to src/silence/sql/converter.py diff --git a/silence/sql/tables.py b/src/silence/sql/tables.py similarity index 100% rename from silence/sql/tables.py rename to src/silence/sql/tables.py diff --git a/silence/utils/__init__.py b/src/silence/utils/__init__.py similarity index 100% rename from silence/utils/__init__.py rename to src/silence/utils/__init__.py diff --git a/silence/utils/check_update.py b/src/silence/utils/check_update.py similarity index 89% rename from silence/utils/check_update.py rename to src/silence/utils/check_update.py index 377e925..ef8cbde 100644 --- a/silence/utils/check_update.py +++ b/src/silence/utils/check_update.py @@ -2,10 +2,11 @@ from silence.settings import settings from silence.logging.default_logger import logger -from silence import __version__ +from silence.__version__ import __version__ + def check_for_new_version(): - if not settings.CHECK_FOR_UPDATES: + if not settings.CHECK_FOR_UPDATES: return False logger.debug("Checking for new updates...") diff --git a/silence/utils/min_type.py b/src/silence/utils/min_type.py similarity index 100% rename from silence/utils/min_type.py rename to src/silence/utils/min_type.py diff --git a/silence/utils/silence_json_encoder.py b/src/silence/utils/silence_json_encoder.py similarity index 87% rename from silence/utils/silence_json_encoder.py rename to src/silence/utils/silence_json_encoder.py index b9f2ecf..521e168 100644 --- a/silence/utils/silence_json_encoder.py +++ b/src/silence/utils/silence_json_encoder.py @@ -1,10 +1,11 @@ # Thanks to https://stackoverflow.com/a/3885198/5604339 :) import decimal -from flask import json +from json import JSONEncoder, dumps, loads from silence.settings import settings -class SilenceJSONEncoder(json.JSONEncoder): + +class SilenceJSONEncoder(JSONEncoder): def default(self, o): if isinstance(o, decimal.Decimal): func = str if settings.DECIMALS_AS_STRINGS else float @@ -24,9 +25,10 @@ def default(self, o): except TypeError: return str(o) + class SilenceJSONSerializer: def dumps(o): - return json.dumps(o, cls=SilenceJSONEncoder) + return dumps(o, cls=SilenceJSONEncoder) def loads(s): - return json.loads(s) \ No newline at end of file + return loads(s) diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..abc6fb2 --- /dev/null +++ b/uv.lock @@ -0,0 +1,340 @@ +version = 1 +revision = 3 +requires-python = ">=3.9" +resolution-markers = [ + "python_full_version >= '3.10'", + "python_full_version < '3.10'", +] + +[[package]] +name = "blinker" +version = "1.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/21/28/9b3f50ce0e048515135495f198351908d99540d69bfdc8c1d15b73dc55ce/blinker-1.9.0.tar.gz", hash = "sha256:b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf", size = 22460, upload-time = "2024-11-08T17:25:47.436Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/10/cb/f2ad4230dc2eb1a74edf38f1a38b9b52277f75bef262d8908e60d957e13c/blinker-1.9.0-py3-none-any.whl", hash = "sha256:ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc", size = 8458, upload-time = "2024-11-08T17:25:46.184Z" }, +] + +[[package]] +name = "certifi" +version = "2026.1.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e0/2d/a891ca51311197f6ad14a7ef42e2399f36cf2f9bd44752b3dc4eab60fdc5/certifi-2026.1.4.tar.gz", hash = "sha256:ac726dd470482006e014ad384921ed6438c457018f4b3d204aea4281258b2120", size = 154268, upload-time = "2026-01-04T02:42:41.825Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e6/ad/3cc14f097111b4de0040c83a525973216457bbeeb63739ef1ed275c1c021/certifi-2026.1.4-py3-none-any.whl", hash = "sha256:9943707519e4add1115f44c2bc244f782c0249876bf51b6599fee1ffbedd685c", size = 152900, upload-time = "2026-01-04T02:42:40.15Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "2.0.12" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/56/31/7bcaf657fafb3c6db8c787a865434290b726653c912085fbd371e9b92e1c/charset-normalizer-2.0.12.tar.gz", hash = "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597", size = 79105, upload-time = "2022-02-12T14:33:13.788Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/06/b3/24afc8868eba069a7f03650ac750a778862dc34941a4bebeb58706715726/charset_normalizer-2.0.12-py3-none-any.whl", hash = "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df", size = 39623, upload-time = "2022-02-12T14:33:12.294Z" }, +] + +[[package]] +name = "click" +version = "8.1.8" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +dependencies = [ + { name = "colorama", marker = "python_full_version < '3.10' and sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593, upload-time = "2024-12-21T18:38:44.339Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188, upload-time = "2024-12-21T18:38:41.666Z" }, +] + +[[package]] +name = "click" +version = "8.3.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.10'", +] +dependencies = [ + { name = "colorama", marker = "python_full_version >= '3.10' and sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "flask" +version = "3.1.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "blinker" }, + { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "click", version = "8.3.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, + { name = "importlib-metadata", marker = "python_full_version < '3.10'" }, + { name = "itsdangerous" }, + { name = "jinja2" }, + { name = "markupsafe" }, + { name = "werkzeug" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/dc/6d/cfe3c0fcc5e477df242b98bfe186a4c34357b4847e87ecaef04507332dab/flask-3.1.2.tar.gz", hash = "sha256:bf656c15c80190ed628ad08cdfd3aaa35beb087855e2f494910aa3774cc4fd87", size = 720160, upload-time = "2025-08-19T21:03:21.205Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/f9/7f9263c5695f4bd0023734af91bedb2ff8209e8de6ead162f35d8dc762fd/flask-3.1.2-py3-none-any.whl", hash = "sha256:ca1d8112ec8a6158cc29ea4858963350011b5c846a414cdb7a954aa9e967d03c", size = 103308, upload-time = "2025-08-19T21:03:19.499Z" }, +] + +[[package]] +name = "flask-cors" +version = "6.0.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "flask" }, + { name = "werkzeug" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/70/74/0fc0fa68d62f21daef41017dafab19ef4b36551521260987eb3a5394c7ba/flask_cors-6.0.2.tar.gz", hash = "sha256:6e118f3698249ae33e429760db98ce032a8bf9913638d085ca0f4c5534ad2423", size = 13472, upload-time = "2025-12-12T20:31:42.861Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4f/af/72ad54402e599152de6d067324c46fe6a4f531c7c65baf7e96c63db55eaf/flask_cors-6.0.2-py3-none-any.whl", hash = "sha256:e57544d415dfd7da89a9564e1e3a9e515042df76e12130641ca6f3f2f03b699a", size = 13257, upload-time = "2025-12-12T20:31:41.3Z" }, +] + +[[package]] +name = "idna" +version = "3.11" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" }, +] + +[[package]] +name = "importlib-metadata" +version = "8.7.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "zipp", marker = "python_full_version < '3.10'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f3/49/3b30cad09e7771a4982d9975a8cbf64f00d4a1ececb53297f1d9a7be1b10/importlib_metadata-8.7.1.tar.gz", hash = "sha256:49fef1ae6440c182052f407c8d34a68f72efc36db9ca90dc0113398f2fdde8bb", size = 57107, upload-time = "2025-12-21T10:00:19.278Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fa/5e/f8e9a1d23b9c20a551a8a02ea3637b4642e22c2626e3a13a9a29cdea99eb/importlib_metadata-8.7.1-py3-none-any.whl", hash = "sha256:5a1f80bf1daa489495071efbb095d75a634cf28a8bc299581244063b53176151", size = 27865, upload-time = "2025-12-21T10:00:18.329Z" }, +] + +[[package]] +name = "itsdangerous" +version = "2.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9c/cb/8ac0172223afbccb63986cc25049b154ecfb5e85932587206f42317be31d/itsdangerous-2.2.0.tar.gz", hash = "sha256:e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173", size = 54410, upload-time = "2024-04-16T21:28:15.614Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/96/92447566d16df59b2a776c0fb82dbc4d9e07cd95062562af01e408583fc4/itsdangerous-2.2.0-py3-none-any.whl", hash = "sha256:c6242fc49e35958c8b15141343aa660db5fc54d4f13a1db01a3f5891b98700ef", size = 16234, upload-time = "2024-04-16T21:28:14.499Z" }, +] + +[[package]] +name = "jinja2" +version = "3.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d", size = 245115, upload-time = "2025-03-05T20:05:02.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899, upload-time = "2025-03-05T20:05:00.369Z" }, +] + +[[package]] +name = "markupsafe" +version = "3.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698", size = 80313, upload-time = "2025-09-27T18:37:40.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/4b/3541d44f3937ba468b75da9eebcae497dcf67adb65caa16760b0a6807ebb/markupsafe-3.0.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f981d352f04553a7171b8e44369f2af4055f888dfb147d55e42d29e29e74559", size = 11631, upload-time = "2025-09-27T18:36:05.558Z" }, + { url = "https://files.pythonhosted.org/packages/98/1b/fbd8eed11021cabd9226c37342fa6ca4e8a98d8188a8d9b66740494960e4/markupsafe-3.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e1c1493fb6e50ab01d20a22826e57520f1284df32f2d8601fdd90b6304601419", size = 12057, upload-time = "2025-09-27T18:36:07.165Z" }, + { url = "https://files.pythonhosted.org/packages/40/01/e560d658dc0bb8ab762670ece35281dec7b6c1b33f5fbc09ebb57a185519/markupsafe-3.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1ba88449deb3de88bd40044603fafffb7bc2b055d626a330323a9ed736661695", size = 22050, upload-time = "2025-09-27T18:36:08.005Z" }, + { url = "https://files.pythonhosted.org/packages/af/cd/ce6e848bbf2c32314c9b237839119c5a564a59725b53157c856e90937b7a/markupsafe-3.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f42d0984e947b8adf7dd6dde396e720934d12c506ce84eea8476409563607591", size = 20681, upload-time = "2025-09-27T18:36:08.881Z" }, + { url = "https://files.pythonhosted.org/packages/c9/2a/b5c12c809f1c3045c4d580b035a743d12fcde53cf685dbc44660826308da/markupsafe-3.0.3-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c0c0b3ade1c0b13b936d7970b1d37a57acde9199dc2aecc4c336773e1d86049c", size = 20705, upload-time = "2025-09-27T18:36:10.131Z" }, + { url = "https://files.pythonhosted.org/packages/cf/e3/9427a68c82728d0a88c50f890d0fc072a1484de2f3ac1ad0bfc1a7214fd5/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:0303439a41979d9e74d18ff5e2dd8c43ed6c6001fd40e5bf2e43f7bd9bbc523f", size = 21524, upload-time = "2025-09-27T18:36:11.324Z" }, + { url = "https://files.pythonhosted.org/packages/bc/36/23578f29e9e582a4d0278e009b38081dbe363c5e7165113fad546918a232/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:d2ee202e79d8ed691ceebae8e0486bd9a2cd4794cec4824e1c99b6f5009502f6", size = 20282, upload-time = "2025-09-27T18:36:12.573Z" }, + { url = "https://files.pythonhosted.org/packages/56/21/dca11354e756ebd03e036bd8ad58d6d7168c80ce1fe5e75218e4945cbab7/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:177b5253b2834fe3678cb4a5f0059808258584c559193998be2601324fdeafb1", size = 20745, upload-time = "2025-09-27T18:36:13.504Z" }, + { url = "https://files.pythonhosted.org/packages/87/99/faba9369a7ad6e4d10b6a5fbf71fa2a188fe4a593b15f0963b73859a1bbd/markupsafe-3.0.3-cp310-cp310-win32.whl", hash = "sha256:2a15a08b17dd94c53a1da0438822d70ebcd13f8c3a95abe3a9ef9f11a94830aa", size = 14571, upload-time = "2025-09-27T18:36:14.779Z" }, + { url = "https://files.pythonhosted.org/packages/d6/25/55dc3ab959917602c96985cb1253efaa4ff42f71194bddeb61eb7278b8be/markupsafe-3.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:c4ffb7ebf07cfe8931028e3e4c85f0357459a3f9f9490886198848f4fa002ec8", size = 15056, upload-time = "2025-09-27T18:36:16.125Z" }, + { url = "https://files.pythonhosted.org/packages/d0/9e/0a02226640c255d1da0b8d12e24ac2aa6734da68bff14c05dd53b94a0fc3/markupsafe-3.0.3-cp310-cp310-win_arm64.whl", hash = "sha256:e2103a929dfa2fcaf9bb4e7c091983a49c9ac3b19c9061b6d5427dd7d14d81a1", size = 13932, upload-time = "2025-09-27T18:36:17.311Z" }, + { url = "https://files.pythonhosted.org/packages/08/db/fefacb2136439fc8dd20e797950e749aa1f4997ed584c62cfb8ef7c2be0e/markupsafe-3.0.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1cc7ea17a6824959616c525620e387f6dd30fec8cb44f649e31712db02123dad", size = 11631, upload-time = "2025-09-27T18:36:18.185Z" }, + { url = "https://files.pythonhosted.org/packages/e1/2e/5898933336b61975ce9dc04decbc0a7f2fee78c30353c5efba7f2d6ff27a/markupsafe-3.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4bd4cd07944443f5a265608cc6aab442e4f74dff8088b0dfc8238647b8f6ae9a", size = 12058, upload-time = "2025-09-27T18:36:19.444Z" }, + { url = "https://files.pythonhosted.org/packages/1d/09/adf2df3699d87d1d8184038df46a9c80d78c0148492323f4693df54e17bb/markupsafe-3.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b5420a1d9450023228968e7e6a9ce57f65d148ab56d2313fcd589eee96a7a50", size = 24287, upload-time = "2025-09-27T18:36:20.768Z" }, + { url = "https://files.pythonhosted.org/packages/30/ac/0273f6fcb5f42e314c6d8cd99effae6a5354604d461b8d392b5ec9530a54/markupsafe-3.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0bf2a864d67e76e5c9a34dc26ec616a66b9888e25e7b9460e1c76d3293bd9dbf", size = 22940, upload-time = "2025-09-27T18:36:22.249Z" }, + { url = "https://files.pythonhosted.org/packages/19/ae/31c1be199ef767124c042c6c3e904da327a2f7f0cd63a0337e1eca2967a8/markupsafe-3.0.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc51efed119bc9cfdf792cdeaa4d67e8f6fcccab66ed4bfdd6bde3e59bfcbb2f", size = 21887, upload-time = "2025-09-27T18:36:23.535Z" }, + { url = "https://files.pythonhosted.org/packages/b2/76/7edcab99d5349a4532a459e1fe64f0b0467a3365056ae550d3bcf3f79e1e/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:068f375c472b3e7acbe2d5318dea141359e6900156b5b2ba06a30b169086b91a", size = 23692, upload-time = "2025-09-27T18:36:24.823Z" }, + { url = "https://files.pythonhosted.org/packages/a4/28/6e74cdd26d7514849143d69f0bf2399f929c37dc2b31e6829fd2045b2765/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7be7b61bb172e1ed687f1754f8e7484f1c8019780f6f6b0786e76bb01c2ae115", size = 21471, upload-time = "2025-09-27T18:36:25.95Z" }, + { url = "https://files.pythonhosted.org/packages/62/7e/a145f36a5c2945673e590850a6f8014318d5577ed7e5920a4b3448e0865d/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f9e130248f4462aaa8e2552d547f36ddadbeaa573879158d721bbd33dfe4743a", size = 22923, upload-time = "2025-09-27T18:36:27.109Z" }, + { url = "https://files.pythonhosted.org/packages/0f/62/d9c46a7f5c9adbeeeda52f5b8d802e1094e9717705a645efc71b0913a0a8/markupsafe-3.0.3-cp311-cp311-win32.whl", hash = "sha256:0db14f5dafddbb6d9208827849fad01f1a2609380add406671a26386cdf15a19", size = 14572, upload-time = "2025-09-27T18:36:28.045Z" }, + { url = "https://files.pythonhosted.org/packages/83/8a/4414c03d3f891739326e1783338e48fb49781cc915b2e0ee052aa490d586/markupsafe-3.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:de8a88e63464af587c950061a5e6a67d3632e36df62b986892331d4620a35c01", size = 15077, upload-time = "2025-09-27T18:36:29.025Z" }, + { url = "https://files.pythonhosted.org/packages/35/73/893072b42e6862f319b5207adc9ae06070f095b358655f077f69a35601f0/markupsafe-3.0.3-cp311-cp311-win_arm64.whl", hash = "sha256:3b562dd9e9ea93f13d53989d23a7e775fdfd1066c33494ff43f5418bc8c58a5c", size = 13876, upload-time = "2025-09-27T18:36:29.954Z" }, + { url = "https://files.pythonhosted.org/packages/5a/72/147da192e38635ada20e0a2e1a51cf8823d2119ce8883f7053879c2199b5/markupsafe-3.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d53197da72cc091b024dd97249dfc7794d6a56530370992a5e1a08983ad9230e", size = 11615, upload-time = "2025-09-27T18:36:30.854Z" }, + { url = "https://files.pythonhosted.org/packages/9a/81/7e4e08678a1f98521201c3079f77db69fb552acd56067661f8c2f534a718/markupsafe-3.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1872df69a4de6aead3491198eaf13810b565bdbeec3ae2dc8780f14458ec73ce", size = 12020, upload-time = "2025-09-27T18:36:31.971Z" }, + { url = "https://files.pythonhosted.org/packages/1e/2c/799f4742efc39633a1b54a92eec4082e4f815314869865d876824c257c1e/markupsafe-3.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3a7e8ae81ae39e62a41ec302f972ba6ae23a5c5396c8e60113e9066ef893da0d", size = 24332, upload-time = "2025-09-27T18:36:32.813Z" }, + { url = "https://files.pythonhosted.org/packages/3c/2e/8d0c2ab90a8c1d9a24f0399058ab8519a3279d1bd4289511d74e909f060e/markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d6dd0be5b5b189d31db7cda48b91d7e0a9795f31430b7f271219ab30f1d3ac9d", size = 22947, upload-time = "2025-09-27T18:36:33.86Z" }, + { url = "https://files.pythonhosted.org/packages/2c/54/887f3092a85238093a0b2154bd629c89444f395618842e8b0c41783898ea/markupsafe-3.0.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:94c6f0bb423f739146aec64595853541634bde58b2135f27f61c1ffd1cd4d16a", size = 21962, upload-time = "2025-09-27T18:36:35.099Z" }, + { url = "https://files.pythonhosted.org/packages/c9/2f/336b8c7b6f4a4d95e91119dc8521402461b74a485558d8f238a68312f11c/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:be8813b57049a7dc738189df53d69395eba14fb99345e0a5994914a3864c8a4b", size = 23760, upload-time = "2025-09-27T18:36:36.001Z" }, + { url = "https://files.pythonhosted.org/packages/32/43/67935f2b7e4982ffb50a4d169b724d74b62a3964bc1a9a527f5ac4f1ee2b/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:83891d0e9fb81a825d9a6d61e3f07550ca70a076484292a70fde82c4b807286f", size = 21529, upload-time = "2025-09-27T18:36:36.906Z" }, + { url = "https://files.pythonhosted.org/packages/89/e0/4486f11e51bbba8b0c041098859e869e304d1c261e59244baa3d295d47b7/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77f0643abe7495da77fb436f50f8dab76dbc6e5fd25d39589a0f1fe6548bfa2b", size = 23015, upload-time = "2025-09-27T18:36:37.868Z" }, + { url = "https://files.pythonhosted.org/packages/2f/e1/78ee7a023dac597a5825441ebd17170785a9dab23de95d2c7508ade94e0e/markupsafe-3.0.3-cp312-cp312-win32.whl", hash = "sha256:d88b440e37a16e651bda4c7c2b930eb586fd15ca7406cb39e211fcff3bf3017d", size = 14540, upload-time = "2025-09-27T18:36:38.761Z" }, + { url = "https://files.pythonhosted.org/packages/aa/5b/bec5aa9bbbb2c946ca2733ef9c4ca91c91b6a24580193e891b5f7dbe8e1e/markupsafe-3.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:26a5784ded40c9e318cfc2bdb30fe164bdb8665ded9cd64d500a34fb42067b1c", size = 15105, upload-time = "2025-09-27T18:36:39.701Z" }, + { url = "https://files.pythonhosted.org/packages/e5/f1/216fc1bbfd74011693a4fd837e7026152e89c4bcf3e77b6692fba9923123/markupsafe-3.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:35add3b638a5d900e807944a078b51922212fb3dedb01633a8defc4b01a3c85f", size = 13906, upload-time = "2025-09-27T18:36:40.689Z" }, + { url = "https://files.pythonhosted.org/packages/38/2f/907b9c7bbba283e68f20259574b13d005c121a0fa4c175f9bed27c4597ff/markupsafe-3.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e1cf1972137e83c5d4c136c43ced9ac51d0e124706ee1c8aa8532c1287fa8795", size = 11622, upload-time = "2025-09-27T18:36:41.777Z" }, + { url = "https://files.pythonhosted.org/packages/9c/d9/5f7756922cdd676869eca1c4e3c0cd0df60ed30199ffd775e319089cb3ed/markupsafe-3.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:116bb52f642a37c115f517494ea5feb03889e04df47eeff5b130b1808ce7c219", size = 12029, upload-time = "2025-09-27T18:36:43.257Z" }, + { url = "https://files.pythonhosted.org/packages/00/07/575a68c754943058c78f30db02ee03a64b3c638586fba6a6dd56830b30a3/markupsafe-3.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:133a43e73a802c5562be9bbcd03d090aa5a1fe899db609c29e8c8d815c5f6de6", size = 24374, upload-time = "2025-09-27T18:36:44.508Z" }, + { url = "https://files.pythonhosted.org/packages/a9/21/9b05698b46f218fc0e118e1f8168395c65c8a2c750ae2bab54fc4bd4e0e8/markupsafe-3.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ccfcd093f13f0f0b7fdd0f198b90053bf7b2f02a3927a30e63f3ccc9df56b676", size = 22980, upload-time = "2025-09-27T18:36:45.385Z" }, + { url = "https://files.pythonhosted.org/packages/7f/71/544260864f893f18b6827315b988c146b559391e6e7e8f7252839b1b846a/markupsafe-3.0.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:509fa21c6deb7a7a273d629cf5ec029bc209d1a51178615ddf718f5918992ab9", size = 21990, upload-time = "2025-09-27T18:36:46.916Z" }, + { url = "https://files.pythonhosted.org/packages/c2/28/b50fc2f74d1ad761af2f5dcce7492648b983d00a65b8c0e0cb457c82ebbe/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a4afe79fb3de0b7097d81da19090f4df4f8d3a2b3adaa8764138aac2e44f3af1", size = 23784, upload-time = "2025-09-27T18:36:47.884Z" }, + { url = "https://files.pythonhosted.org/packages/ed/76/104b2aa106a208da8b17a2fb72e033a5a9d7073c68f7e508b94916ed47a9/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:795e7751525cae078558e679d646ae45574b47ed6e7771863fcc079a6171a0fc", size = 21588, upload-time = "2025-09-27T18:36:48.82Z" }, + { url = "https://files.pythonhosted.org/packages/b5/99/16a5eb2d140087ebd97180d95249b00a03aa87e29cc224056274f2e45fd6/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8485f406a96febb5140bfeca44a73e3ce5116b2501ac54fe953e488fb1d03b12", size = 23041, upload-time = "2025-09-27T18:36:49.797Z" }, + { url = "https://files.pythonhosted.org/packages/19/bc/e7140ed90c5d61d77cea142eed9f9c303f4c4806f60a1044c13e3f1471d0/markupsafe-3.0.3-cp313-cp313-win32.whl", hash = "sha256:bdd37121970bfd8be76c5fb069c7751683bdf373db1ed6c010162b2a130248ed", size = 14543, upload-time = "2025-09-27T18:36:51.584Z" }, + { url = "https://files.pythonhosted.org/packages/05/73/c4abe620b841b6b791f2edc248f556900667a5a1cf023a6646967ae98335/markupsafe-3.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:9a1abfdc021a164803f4d485104931fb8f8c1efd55bc6b748d2f5774e78b62c5", size = 15113, upload-time = "2025-09-27T18:36:52.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/3a/fa34a0f7cfef23cf9500d68cb7c32dd64ffd58a12b09225fb03dd37d5b80/markupsafe-3.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:7e68f88e5b8799aa49c85cd116c932a1ac15caaa3f5db09087854d218359e485", size = 13911, upload-time = "2025-09-27T18:36:53.513Z" }, + { url = "https://files.pythonhosted.org/packages/e4/d7/e05cd7efe43a88a17a37b3ae96e79a19e846f3f456fe79c57ca61356ef01/markupsafe-3.0.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:218551f6df4868a8d527e3062d0fb968682fe92054e89978594c28e642c43a73", size = 11658, upload-time = "2025-09-27T18:36:54.819Z" }, + { url = "https://files.pythonhosted.org/packages/99/9e/e412117548182ce2148bdeacdda3bb494260c0b0184360fe0d56389b523b/markupsafe-3.0.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3524b778fe5cfb3452a09d31e7b5adefeea8c5be1d43c4f810ba09f2ceb29d37", size = 12066, upload-time = "2025-09-27T18:36:55.714Z" }, + { url = "https://files.pythonhosted.org/packages/bc/e6/fa0ffcda717ef64a5108eaa7b4f5ed28d56122c9a6d70ab8b72f9f715c80/markupsafe-3.0.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4e885a3d1efa2eadc93c894a21770e4bc67899e3543680313b09f139e149ab19", size = 25639, upload-time = "2025-09-27T18:36:56.908Z" }, + { url = "https://files.pythonhosted.org/packages/96/ec/2102e881fe9d25fc16cb4b25d5f5cde50970967ffa5dddafdb771237062d/markupsafe-3.0.3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8709b08f4a89aa7586de0aadc8da56180242ee0ada3999749b183aa23df95025", size = 23569, upload-time = "2025-09-27T18:36:57.913Z" }, + { url = "https://files.pythonhosted.org/packages/4b/30/6f2fce1f1f205fc9323255b216ca8a235b15860c34b6798f810f05828e32/markupsafe-3.0.3-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b8512a91625c9b3da6f127803b166b629725e68af71f8184ae7e7d54686a56d6", size = 23284, upload-time = "2025-09-27T18:36:58.833Z" }, + { url = "https://files.pythonhosted.org/packages/58/47/4a0ccea4ab9f5dcb6f79c0236d954acb382202721e704223a8aafa38b5c8/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9b79b7a16f7fedff2495d684f2b59b0457c3b493778c9eed31111be64d58279f", size = 24801, upload-time = "2025-09-27T18:36:59.739Z" }, + { url = "https://files.pythonhosted.org/packages/6a/70/3780e9b72180b6fecb83a4814d84c3bf4b4ae4bf0b19c27196104149734c/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:12c63dfb4a98206f045aa9563db46507995f7ef6d83b2f68eda65c307c6829eb", size = 22769, upload-time = "2025-09-27T18:37:00.719Z" }, + { url = "https://files.pythonhosted.org/packages/98/c5/c03c7f4125180fc215220c035beac6b9cb684bc7a067c84fc69414d315f5/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:8f71bc33915be5186016f675cd83a1e08523649b0e33efdb898db577ef5bb009", size = 23642, upload-time = "2025-09-27T18:37:01.673Z" }, + { url = "https://files.pythonhosted.org/packages/80/d6/2d1b89f6ca4bff1036499b1e29a1d02d282259f3681540e16563f27ebc23/markupsafe-3.0.3-cp313-cp313t-win32.whl", hash = "sha256:69c0b73548bc525c8cb9a251cddf1931d1db4d2258e9599c28c07ef3580ef354", size = 14612, upload-time = "2025-09-27T18:37:02.639Z" }, + { url = "https://files.pythonhosted.org/packages/2b/98/e48a4bfba0a0ffcf9925fe2d69240bfaa19c6f7507b8cd09c70684a53c1e/markupsafe-3.0.3-cp313-cp313t-win_amd64.whl", hash = "sha256:1b4b79e8ebf6b55351f0d91fe80f893b4743f104bff22e90697db1590e47a218", size = 15200, upload-time = "2025-09-27T18:37:03.582Z" }, + { url = "https://files.pythonhosted.org/packages/0e/72/e3cc540f351f316e9ed0f092757459afbc595824ca724cbc5a5d4263713f/markupsafe-3.0.3-cp313-cp313t-win_arm64.whl", hash = "sha256:ad2cf8aa28b8c020ab2fc8287b0f823d0a7d8630784c31e9ee5edea20f406287", size = 13973, upload-time = "2025-09-27T18:37:04.929Z" }, + { url = "https://files.pythonhosted.org/packages/33/8a/8e42d4838cd89b7dde187011e97fe6c3af66d8c044997d2183fbd6d31352/markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe", size = 11619, upload-time = "2025-09-27T18:37:06.342Z" }, + { url = "https://files.pythonhosted.org/packages/b5/64/7660f8a4a8e53c924d0fa05dc3a55c9cee10bbd82b11c5afb27d44b096ce/markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026", size = 12029, upload-time = "2025-09-27T18:37:07.213Z" }, + { url = "https://files.pythonhosted.org/packages/da/ef/e648bfd021127bef5fa12e1720ffed0c6cbb8310c8d9bea7266337ff06de/markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737", size = 24408, upload-time = "2025-09-27T18:37:09.572Z" }, + { url = "https://files.pythonhosted.org/packages/41/3c/a36c2450754618e62008bf7435ccb0f88053e07592e6028a34776213d877/markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97", size = 23005, upload-time = "2025-09-27T18:37:10.58Z" }, + { url = "https://files.pythonhosted.org/packages/bc/20/b7fdf89a8456b099837cd1dc21974632a02a999ec9bf7ca3e490aacd98e7/markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d", size = 22048, upload-time = "2025-09-27T18:37:11.547Z" }, + { url = "https://files.pythonhosted.org/packages/9a/a7/591f592afdc734f47db08a75793a55d7fbcc6902a723ae4cfbab61010cc5/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda", size = 23821, upload-time = "2025-09-27T18:37:12.48Z" }, + { url = "https://files.pythonhosted.org/packages/7d/33/45b24e4f44195b26521bc6f1a82197118f74df348556594bd2262bda1038/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf", size = 21606, upload-time = "2025-09-27T18:37:13.485Z" }, + { url = "https://files.pythonhosted.org/packages/ff/0e/53dfaca23a69fbfbbf17a4b64072090e70717344c52eaaaa9c5ddff1e5f0/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe", size = 23043, upload-time = "2025-09-27T18:37:14.408Z" }, + { url = "https://files.pythonhosted.org/packages/46/11/f333a06fc16236d5238bfe74daccbca41459dcd8d1fa952e8fbd5dccfb70/markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9", size = 14747, upload-time = "2025-09-27T18:37:15.36Z" }, + { url = "https://files.pythonhosted.org/packages/28/52/182836104b33b444e400b14f797212f720cbc9ed6ba34c800639d154e821/markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581", size = 15341, upload-time = "2025-09-27T18:37:16.496Z" }, + { url = "https://files.pythonhosted.org/packages/6f/18/acf23e91bd94fd7b3031558b1f013adfa21a8e407a3fdb32745538730382/markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4", size = 14073, upload-time = "2025-09-27T18:37:17.476Z" }, + { url = "https://files.pythonhosted.org/packages/3c/f0/57689aa4076e1b43b15fdfa646b04653969d50cf30c32a102762be2485da/markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab", size = 11661, upload-time = "2025-09-27T18:37:18.453Z" }, + { url = "https://files.pythonhosted.org/packages/89/c3/2e67a7ca217c6912985ec766c6393b636fb0c2344443ff9d91404dc4c79f/markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175", size = 12069, upload-time = "2025-09-27T18:37:19.332Z" }, + { url = "https://files.pythonhosted.org/packages/f0/00/be561dce4e6ca66b15276e184ce4b8aec61fe83662cce2f7d72bd3249d28/markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634", size = 25670, upload-time = "2025-09-27T18:37:20.245Z" }, + { url = "https://files.pythonhosted.org/packages/50/09/c419f6f5a92e5fadde27efd190eca90f05e1261b10dbd8cbcb39cd8ea1dc/markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50", size = 23598, upload-time = "2025-09-27T18:37:21.177Z" }, + { url = "https://files.pythonhosted.org/packages/22/44/a0681611106e0b2921b3033fc19bc53323e0b50bc70cffdd19f7d679bb66/markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e", size = 23261, upload-time = "2025-09-27T18:37:22.167Z" }, + { url = "https://files.pythonhosted.org/packages/5f/57/1b0b3f100259dc9fffe780cfb60d4be71375510e435efec3d116b6436d43/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5", size = 24835, upload-time = "2025-09-27T18:37:23.296Z" }, + { url = "https://files.pythonhosted.org/packages/26/6a/4bf6d0c97c4920f1597cc14dd720705eca0bf7c787aebc6bb4d1bead5388/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523", size = 22733, upload-time = "2025-09-27T18:37:24.237Z" }, + { url = "https://files.pythonhosted.org/packages/14/c7/ca723101509b518797fedc2fdf79ba57f886b4aca8a7d31857ba3ee8281f/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc", size = 23672, upload-time = "2025-09-27T18:37:25.271Z" }, + { url = "https://files.pythonhosted.org/packages/fb/df/5bd7a48c256faecd1d36edc13133e51397e41b73bb77e1a69deab746ebac/markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d", size = 14819, upload-time = "2025-09-27T18:37:26.285Z" }, + { url = "https://files.pythonhosted.org/packages/1a/8a/0402ba61a2f16038b48b39bccca271134be00c5c9f0f623208399333c448/markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9", size = 15426, upload-time = "2025-09-27T18:37:27.316Z" }, + { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146, upload-time = "2025-09-27T18:37:28.327Z" }, + { url = "https://files.pythonhosted.org/packages/56/23/0d8c13a44bde9154821586520840643467aee574d8ce79a17da539ee7fed/markupsafe-3.0.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:15d939a21d546304880945ca1ecb8a039db6b4dc49b2c5a400387cdae6a62e26", size = 11623, upload-time = "2025-09-27T18:37:29.296Z" }, + { url = "https://files.pythonhosted.org/packages/fd/23/07a2cb9a8045d5f3f0890a8c3bc0859d7a47bfd9a560b563899bec7b72ed/markupsafe-3.0.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f71a396b3bf33ecaa1626c255855702aca4d3d9fea5e051b41ac59a9c1c41edc", size = 12049, upload-time = "2025-09-27T18:37:30.234Z" }, + { url = "https://files.pythonhosted.org/packages/bc/e4/6be85eb81503f8e11b61c0b6369b6e077dcf0a74adbd9ebf6b349937b4e9/markupsafe-3.0.3-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0f4b68347f8c5eab4a13419215bdfd7f8c9b19f2b25520968adfad23eb0ce60c", size = 21923, upload-time = "2025-09-27T18:37:31.177Z" }, + { url = "https://files.pythonhosted.org/packages/6f/bc/4dc914ead3fe6ddaef035341fee0fc956949bbd27335b611829292b89ee2/markupsafe-3.0.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8fc20152abba6b83724d7ff268c249fa196d8259ff481f3b1476383f8f24e42", size = 20543, upload-time = "2025-09-27T18:37:32.168Z" }, + { url = "https://files.pythonhosted.org/packages/89/6e/5fe81fbcfba4aef4093d5f856e5c774ec2057946052d18d168219b7bd9f9/markupsafe-3.0.3-cp39-cp39-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:949b8d66bc381ee8b007cd945914c721d9aba8e27f71959d750a46f7c282b20b", size = 20585, upload-time = "2025-09-27T18:37:33.166Z" }, + { url = "https://files.pythonhosted.org/packages/f6/f6/e0e5a3d3ae9c4020f696cd055f940ef86b64fe88de26f3a0308b9d3d048c/markupsafe-3.0.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:3537e01efc9d4dccdf77221fb1cb3b8e1a38d5428920e0657ce299b20324d758", size = 21387, upload-time = "2025-09-27T18:37:34.185Z" }, + { url = "https://files.pythonhosted.org/packages/c8/25/651753ef4dea08ea790f4fbb65146a9a44a014986996ca40102e237aa49a/markupsafe-3.0.3-cp39-cp39-musllinux_1_2_riscv64.whl", hash = "sha256:591ae9f2a647529ca990bc681daebdd52c8791ff06c2bfa05b65163e28102ef2", size = 20133, upload-time = "2025-09-27T18:37:35.138Z" }, + { url = "https://files.pythonhosted.org/packages/dc/0a/c3cf2b4fef5f0426e8a6d7fce3cb966a17817c568ce59d76b92a233fdbec/markupsafe-3.0.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:a320721ab5a1aba0a233739394eb907f8c8da5c98c9181d1161e77a0c8e36f2d", size = 20588, upload-time = "2025-09-27T18:37:36.096Z" }, + { url = "https://files.pythonhosted.org/packages/cd/1b/a7782984844bd519ad4ffdbebbba2671ec5d0ebbeac34736c15fb86399e8/markupsafe-3.0.3-cp39-cp39-win32.whl", hash = "sha256:df2449253ef108a379b8b5d6b43f4b1a8e81a061d6537becd5582fba5f9196d7", size = 14566, upload-time = "2025-09-27T18:37:37.09Z" }, + { url = "https://files.pythonhosted.org/packages/18/1f/8d9c20e1c9440e215a44be5ab64359e207fcb4f675543f1cf9a2a7f648d0/markupsafe-3.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:7c3fb7d25180895632e5d3148dbdc29ea38ccb7fd210aa27acbd1201a1902c6e", size = 15053, upload-time = "2025-09-27T18:37:38.054Z" }, + { url = "https://files.pythonhosted.org/packages/4e/d3/fe08482b5cd995033556d45041a4f4e76e7f0521112a9c9991d40d39825f/markupsafe-3.0.3-cp39-cp39-win_arm64.whl", hash = "sha256:38664109c14ffc9e7437e86b4dceb442b0096dfe3541d7864d9cbe1da4cf36c8", size = 13928, upload-time = "2025-09-27T18:37:39.037Z" }, +] + +[[package]] +name = "pymysql" +version = "1.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/ae/1fe3fcd9f959efa0ebe200b8de88b5a5ce3e767e38c7ac32fb179f16a388/pymysql-1.1.2.tar.gz", hash = "sha256:4961d3e165614ae65014e361811a724e2044ad3ea3739de9903ae7c21f539f03", size = 48258, upload-time = "2025-08-24T12:55:55.146Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7c/4c/ad33b92b9864cbde84f259d5df035a6447f91891f5be77788e2a3892bce3/pymysql-1.1.2-py3-none-any.whl", hash = "sha256:e6b1d89711dd51f8f74b1631fe08f039e7d76cf67a42a323d3178f0f25762ed9", size = 45300, upload-time = "2025-08-24T12:55:53.394Z" }, +] + +[[package]] +name = "pypika" +version = "0.50.0" +source = { git = "https://github.com/kayak/pypika#b81d381b533667ede8558bed2600fd05fcf8229f" } +dependencies = [ + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] + +[[package]] +name = "requests" +version = "2.27.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/60/f3/26ff3767f099b73e0efa138a9998da67890793bfa475d8278f84a30fec77/requests-2.27.1.tar.gz", hash = "sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61", size = 106758, upload-time = "2022-01-05T15:40:51.698Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl", hash = "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d", size = 63133, upload-time = "2022-01-05T15:40:49.334Z" }, +] + +[[package]] +name = "silence" +source = { editable = "." } +dependencies = [ + { name = "colorama" }, + { name = "flask" }, + { name = "flask-cors" }, + { name = "itsdangerous" }, + { name = "pymysql" }, + { name = "pypika" }, + { name = "requests" }, + { name = "werkzeug" }, +] + +[package.metadata] +requires-dist = [ + { name = "colorama", specifier = "==0.4.6" }, + { name = "flask", specifier = "==3.1.2" }, + { name = "flask-cors", specifier = "==6.0.2" }, + { name = "itsdangerous", specifier = "==2.2.0" }, + { name = "pymysql", specifier = "~=1.1.2" }, + { name = "pypika", git = "https://github.com/kayak/pypika" }, + { name = "requests", specifier = "~=2.27.1" }, + { name = "werkzeug", specifier = "~=3.1.3" }, +] + +[[package]] +name = "typing-extensions" +version = "4.15.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, +] + +[[package]] +name = "urllib3" +version = "1.26.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/e8/6ff5e6bc22095cfc59b6ea711b687e2b7ed4bdb373f7eeec370a97d7392f/urllib3-1.26.20.tar.gz", hash = "sha256:40c2dc0c681e47eb8f90e7e27bf6ff7df2e677421fd46756da1161c39ca70d32", size = 307380, upload-time = "2024-08-29T15:43:11.37Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/33/cf/8435d5a7159e2a9c83a95896ed596f68cf798005fe107cc655b5c5c14704/urllib3-1.26.20-py2.py3-none-any.whl", hash = "sha256:0ed14ccfbf1c30a9072c7ca157e4319b70d65f623e91e7b32fadb2853431016e", size = 144225, upload-time = "2024-08-29T15:43:08.921Z" }, +] + +[[package]] +name = "werkzeug" +version = "3.1.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5a/70/1469ef1d3542ae7c2c7b72bd5e3a4e6ee69d7978fa8a3af05a38eca5becf/werkzeug-3.1.5.tar.gz", hash = "sha256:6a548b0e88955dd07ccb25539d7d0cc97417ee9e179677d22c7041c8f078ce67", size = 864754, upload-time = "2026-01-08T17:49:23.247Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ad/e4/8d97cca767bcc1be76d16fb76951608305561c6e056811587f36cb1316a8/werkzeug-3.1.5-py3-none-any.whl", hash = "sha256:5111e36e91086ece91f93268bb39b4a35c1e6f1feac762c9c822ded0a4e322dc", size = 225025, upload-time = "2026-01-08T17:49:21.859Z" }, +] + +[[package]] +name = "zipp" +version = "3.23.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/02/0f2892c661036d50ede074e376733dca2ae7c6eb617489437771209d4180/zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166", size = 25547, upload-time = "2025-06-08T17:06:39.4Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e", size = 10276, upload-time = "2025-06-08T17:06:38.034Z" }, +] From e16852242c363846710cc04ace39d5e3037ff8fe Mon Sep 17 00:00:00 2001 From: Oscar <36568572+nv0skar@users.noreply.github.com> Date: Tue, 27 Jan 2026 17:48:38 +0100 Subject: [PATCH 4/7] - Added 'uv.lock' to '.gitignore'. --- .gitignore | 1 + CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index caf1d7a..ae351ad 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ # Edit at https://www.gitignore.io/?templates=python **/.venv +**/uv.lock # Just In Case™ Silence-CI-Project/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 994d0d6..c70f9ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ - Updated dependencies. - Fixed removed 'Flask's' `JSONEncoder`. - Removed unused dependency `cryptography`. -- + # 2.2.0 - Autogenerated views do not allow users to view them by a specific primary key argument, as the view might not have access to said arguments, now only GetAll is implemented. - request body parameters now show up on silence console if the corresponding flag is true in settings.py From 0d867fdeeddebeb6be5007448ef040ebf4b30e56 Mon Sep 17 00:00:00 2001 From: Oscar <36568572+nv0skar@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:05:46 +0100 Subject: [PATCH 5/7] Changed GitHub's workflows. --- .github/workflows/ci_test.yml | 2 +- .github/workflows/create_release.yml | 2 +- .github/workflows/pypi-publish.yml | 27 +++++++++++---------------- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index c1f9749..0c47f28 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] runs-on: ubuntu-20.04 services: diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 04d4562..534df3f 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v2 - name: Set variables run: | - version=$(cat silence/__init__.py | perl -0 -ne 'print $1 if s|.*__version__ = ["'"'"'](.*?)['"'"'"]||') + version=$(cat silence/__version__.py | perl -0 -ne 'print $1 if s|.*__version__ = ["'"'"'](.*?)['"'"'"]||') prerelease=$(if [[ "$version" == 0.* ]] ; then printf "true"; else printf "false"; fi) echo "release_name=$version" >> $GITHUB_ENV version=${version//./\\.} diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 24f353d..2e7e9b9 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,6 +1,3 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - name: Upload Python Package on: @@ -15,18 +12,16 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 + - name: "Set up Python" + uses: actions/setup-python@v6 with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish + python-version-file: "pyproject.toml" + - name: Install uv + uses: astral-sh/setup-uv@v7 + - name: Build + run: uv build + - name: Publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + USERNAME: ${{ secrets.PYPI_USERNAME }} + PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: uv build -u $USERNAME -p $PASSWORD From facbc3abbdce6a373a028800e81d81487d890655 Mon Sep 17 00:00:00 2001 From: Oscar <36568572+nv0skar@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:20:31 +0100 Subject: [PATCH 6/7] - Fixed publish workflow --- .github/workflows/pypi-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 2e7e9b9..0ac4e4b 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -24,4 +24,4 @@ jobs: env: USERNAME: ${{ secrets.PYPI_USERNAME }} PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: uv build -u $USERNAME -p $PASSWORD + run: uv publish -u $USERNAME -p $PASSWORD From 9f9ee92ff1e2b3447af64019f1d8e7bc2a78fb0d Mon Sep 17 00:00:00 2001 From: Oscar <36568572+nv0skar@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:31:57 +0100 Subject: [PATCH 7/7] - Changed workflow to use 'PyPi' token auth. - Changed 'pypika' to specific 'Pypi' version. --- .github/workflows/pypi-publish.yml | 5 ++--- pyproject.toml | 14 +++++++------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 0ac4e4b..3f56152 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -22,6 +22,5 @@ jobs: run: uv build - name: Publish env: - USERNAME: ${{ secrets.PYPI_USERNAME }} - PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: uv publish -u $USERNAME -p $PASSWORD + TOKEN: ${{ secrets.PYPI_TOKEN }} + run: uv publish --token diff --git a/pyproject.toml b/pyproject.toml index 0f747bf..e95f17e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,13 +7,13 @@ maintainers = [{ name = "Miguel Bermudo", email = "mbermudo@us.es" }] license = "MIT" dependencies = [ "colorama == 0.4.6", - "Flask-Cors==6.0.2", - "Flask==3.1.2", - "itsdangerous==2.2.0", - "PyMySQL~=1.1.2", - "pypika @ git+https://github.com/kayak/pypika", - "requests~=2.32.5", - "Werkzeug~=3.1.5", + "Flask-Cors == 6.0.2", + "Flask == 3.1.2", + "itsdangerous == 2.2.0", + "PyMySQL ~= 1.1.2", + "pypika == 0.50.0", + "requests ~= 2.32.5", + "Werkzeug ~= 3.1.5", ] requires-python = ">=3.9"