├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitmodules ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── NOTICE ├── README.md ├── SECURITY.md ├── build.py ├── compile.py ├── document.py ├── media └── pqcrypto.png ├── pqcrypto └── .gitkeep ├── pyproject.toml ├── templates ├── definitions_kem.c.j2 ├── definitions_sign.c.j2 ├── wrapper_kem.py.j2 └── wrapper_sign.py.j2 ├── tests ├── conftest.py ├── test_kem.py └── test_sign.py └── uv.lock /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | - experimentation 8 | pull_request: 9 | 10 | jobs: 11 | check: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v4 16 | with: 17 | submodules: true 18 | 19 | - name: Setup UV 20 | uses: astral-sh/setup-uv@v5 21 | with: 22 | python-version: 3.13 23 | 24 | - name: Install dependencies 25 | run: uv sync --frozen --extra dev 26 | 27 | - name: Check code style 28 | run: uvx ruff check 29 | 30 | - name: Compile binaries 31 | run: uv run compile.py 32 | 33 | - name: Run tests 34 | run: uv run pytest tests 35 | 36 | # Reference: https://cibuildwheel.pypa.io/en/stable/setup/#github-actions 37 | build-wheels: 38 | name: build-wheels-${{ matrix.os }} 39 | needs: 40 | - check 41 | runs-on: ${{ matrix.os }} 42 | strategy: 43 | matrix: 44 | os: [ubuntu-latest, windows-latest, macos-13, macos-14, ubuntu-24.04-arm] 45 | steps: 46 | - name: Checkout code 47 | uses: actions/checkout@v4 48 | with: 49 | submodules: true 50 | 51 | - name: Setup UV 52 | uses: astral-sh/setup-uv@v5 53 | with: 54 | python-version: 3.13 55 | 56 | - name: Install dependencies 57 | run: uv sync --frozen --extra dev 58 | 59 | - name: Build wheels 60 | uses: pypa/cibuildwheel@v2.23.2 61 | with: 62 | output-dir: dist 63 | 64 | - name: Upload artifacts 65 | uses: actions/upload-artifact@v4 66 | with: 67 | name: artifact-wheel-${{ matrix.os }}-${{ strategy.job-index }} 68 | path: ./dist/*.whl 69 | retention-days: 1 70 | 71 | publish: 72 | needs: 73 | - build-wheels 74 | runs-on: ubuntu-latest 75 | 76 | environment: release 77 | permissions: 78 | id-token: write 79 | 80 | steps: 81 | - name: Download built packages 82 | uses: actions/download-artifact@v4 83 | with: 84 | path: dist 85 | merge-multiple: true 86 | 87 | - name: Publish package to PyPI 88 | uses: pypa/gh-action-pypi-publish@release/v1 89 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # Distribution / packaging 7 | .Python 8 | build/ 9 | develop-eggs/ 10 | dist/ 11 | downloads/ 12 | eggs/ 13 | .eggs/ 14 | lib/ 15 | lib64/ 16 | parts/ 17 | sdist/ 18 | var/ 19 | wheels/ 20 | *.egg-info/ 21 | .installed.cfg 22 | *.egg 23 | MANIFEST 24 | 25 | # PyInstaller 26 | # Usually these files are written by a python script from a template 27 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 28 | *.manifest 29 | *.spec 30 | 31 | # Installer logs 32 | pip-log.txt 33 | pip-delete-this-directory.txt 34 | 35 | # Unit test / coverage reports 36 | htmlcov/ 37 | .tox/ 38 | .coverage 39 | .coverage.* 40 | .cache 41 | nosetests.xml 42 | coverage.xml 43 | *.cover 44 | .hypothesis/ 45 | .pytest_cache/ 46 | 47 | # Translations 48 | *.mo 49 | *.pot 50 | 51 | # Django stuff: 52 | *.log 53 | local_settings.py 54 | db.sqlite3 55 | 56 | # Flask stuff: 57 | instance/ 58 | .webassets-cache 59 | 60 | # Scrapy stuff: 61 | .scrapy 62 | 63 | # Sphinx documentation 64 | docs/_build/ 65 | 66 | # PyBuilder 67 | target/ 68 | 69 | # Jupyter Notebook 70 | .ipynb_checkpoints 71 | 72 | # pyenv 73 | .python-version 74 | 75 | # celery beat schedule file 76 | celerybeat-schedule 77 | 78 | # SageMath parsed files 79 | *.sage.py 80 | 81 | # Environments 82 | .env 83 | .venv 84 | env/ 85 | venv/ 86 | ENV/ 87 | env.bak/ 88 | venv.bak/ 89 | 90 | # Spyder project settings 91 | .spyderproject 92 | .spyproject 93 | 94 | # Rope project settings 95 | .ropeproject 96 | 97 | # mkdocs documentation 98 | /site 99 | 100 | # mypy 101 | .mypy_cache/ 102 | 103 | # ruff 104 | .ruff_cache/ 105 | 106 | # Compiled source code 107 | pqcrypto/* 108 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "pqclean"] 2 | path = pqclean 3 | url = https://github.com/PQClean/PQClean 4 | branch = master 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ### ♻ Contributing 2 | 3 | We appreciate your interest in contributing to PQCrypto. The best way to get started is to file issues and participate in discussions on GitHub. You're likewise welcome to contribute by submitting pull requests to address open issues, improve the test suite, code readability or improve the project's documentation. 4 | 5 | If you're looking to discuss the direction of the project, we'd prefer if you email us at [root@backbone.dev](mailto:root@backbone.dev). 6 | 7 | --- 8 | 9 | This module is maintained with 🦴 by [Backbone](https://backbone.dev) 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | uv run pytest tests 3 | 4 | clean: 5 | rm -rf ./dist || true 6 | rm -r ./pqcrypto/* || true 7 | 8 | compile: 9 | uv run python3 compile.py 10 | 11 | format: 12 | uvx ruff format 13 | 14 | build: 15 | make clean 16 | cibuildwheel --output-dir dist 17 | 18 | update: 19 | git submodule update --init --recursive 20 | uv run python document.py 21 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2025-present Backbone Technologies Ltd. 2 | 3 | This product includes software developed by Backbone (https://www.backbone.dev/). 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ![PQCrypto](https://github.com/backbone-hq/pqcrypto/blob/master/media/pqcrypto.png?raw=true) 2 | 3 | ![PyPI Version](https://img.shields.io/pypi/v/pqcrypto) 4 | ![Build Status](https://img.shields.io/github/actions/workflow/status/backbone-hq/pqcrypto/ci.yml?branch=master) 5 | ![GitHub License](https://img.shields.io/github/license/backbone-hq/pqcrypto) 6 | ![Python Version](https://img.shields.io/pypi/pyversions/pqcrypto) 7 | 8 | # 👻 Post-Quantum Cryptography 9 | 10 | In recent years, there has been a substantial amount of research on quantum computers – machines that exploit quantum mechanical phenomena to solve mathematical problems that are difficult or intractable for conventional computers. If large-scale quantum computers are ever built, they will be able to break many of the public-key cryptosystems currently in use. This would seriously compromise the confidentiality and integrity of digital communications on the Internet and elsewhere. The goal of post-quantum cryptography (also called quantum-resistant cryptography) is to develop cryptographic systems that are secure against both quantum and classical computers, and can interoperate with existing communications protocols and networks. 11 | 12 | ## 🎯 Purpose 13 | 14 | PQCrypto provides tested, ergonomic **Python 3** CFFI bindings to implementations of quantum-resistant cryptographic algorithms that were submitted to the [NIST Post-Quantum Cryptography Standardization](https://csrc.nist.gov/projects/post-quantum-cryptography/post-quantum-cryptography-standardization) process. 15 | 16 | This library focuses exclusively on post-quantum cryptography for Python, adhering to the Unix philosophy of doing one thing well. The cryptographic primitives are designed to be composable with existing cryptographic libraries, enabling simple integration of post-quantum cryptography into existing applications without sacrificing security or performance. 17 | 18 | ## 💾 Installation 19 | 20 | You can install PQCrypto using your package manager of choice. 21 | Pre-compiled wheels are available for common platforms and Python versions. 22 | 23 | Using `uv`: 24 | ```bash 25 | uv add pqcrypto 26 | ``` 27 | 28 | Using `poetry`: 29 | ```bash 30 | poetry add pqcrypto 31 | ``` 32 | 33 | Using `pip`: 34 | ```bash 35 | pip install pqcrypto 36 | ``` 37 | 38 | ## 🔐 Key Encapsulation 39 | 40 | A Key Encapsulation Mechanism (KEM) is a cryptographic primitive used to securely establish a shared secret key between two parties over an insecure channel. Unlike traditional asymmetric encryption, which focuses on encrypting arbitrary messages, a KEM is specifically designed for the secure transmission of symmetric keys. 41 | 42 | ```python 43 | from secrets import compare_digest 44 | from pqcrypto.kem.mceliece8192128 import generate_keypair, encrypt, decrypt 45 | 46 | # Alice generates a (public, secret) key pair 47 | public_key, secret_key = generate_keypair() 48 | 49 | # Bob derives a secret (the plaintext) and encrypts it with Alice's public key to produce a ciphertext 50 | ciphertext, plaintext_original = encrypt(public_key) 51 | 52 | # Alice decrypts Bob's ciphertext to derive the now shared secret 53 | plaintext_recovered = decrypt(secret_key, ciphertext) 54 | 55 | # Compare the original and recovered secrets in constant time 56 | assert compare_digest(plaintext_original, plaintext_recovered) 57 | ``` 58 | 59 | ## ✒️ Signing 60 | 61 | Digital signatures are cryptographic mechanisms that provide authentication, non-repudiation, and integrity to digital messages or documents. They allow the recipient to verify that a message was created by a known sender and hasn't been altered during transmission. 62 | 63 | ```python 64 | from pqcrypto.sign.sphincs_shake_256s_simple import generate_keypair, sign, verify 65 | 66 | # Alice generates a (public, secret) key pair 67 | public_key, secret_key = generate_keypair() 68 | 69 | # Alice signs her message using her secret key 70 | signature = sign(secret_key, b"Hello world") 71 | 72 | # Bob uses Alice's public key to validate her signature 73 | assert verify(public_key, b"Hello world", signature) 74 | ``` 75 | 76 | ## 📋 Available Algorithms 77 | 78 | ### Key Encapsulation Mechanisms 79 | 80 | ``` 81 | - hqc_128 82 | - hqc_192 83 | - hqc_256 84 | - mceliece348864 85 | - mceliece348864f 86 | - mceliece460896 87 | - mceliece460896f 88 | - mceliece6688128 89 | - mceliece6688128f 90 | - mceliece6960119 91 | - mceliece6960119f 92 | - mceliece8192128 93 | - mceliece8192128f 94 | - ml_kem_1024 95 | - ml_kem_512 96 | - ml_kem_768 97 | ``` 98 | 99 | ### Signature Algorithms 100 | 101 | ``` 102 | - falcon_1024 103 | - falcon_512 104 | - falcon_padded_1024 105 | - falcon_padded_512 106 | - ml_dsa_44 107 | - ml_dsa_65 108 | - ml_dsa_87 109 | - sphincs_sha2_128f_simple 110 | - sphincs_sha2_128s_simple 111 | - sphincs_sha2_192f_simple 112 | - sphincs_sha2_192s_simple 113 | - sphincs_sha2_256f_simple 114 | - sphincs_sha2_256s_simple 115 | - sphincs_shake_128f_simple 116 | - sphincs_shake_128s_simple 117 | - sphincs_shake_192f_simple 118 | - sphincs_shake_192s_simple 119 | - sphincs_shake_256f_simple 120 | - sphincs_shake_256s_simple 121 | ``` 122 | 123 | 124 | ## 🙏 Credits 125 | 126 | The C implementations used herein are derived from the [PQClean](https://github.com/pqclean/pqclean/) project. 127 | 128 | --- 129 | 130 | Built with ❤️ by [Backbone](https://backbone.dev) 131 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # 🔒 Security Policy 2 | 3 | ## 🔭 Scope 4 | 5 | The post-quantum cryptographic algorithms included from the PQClean project are academic and should be considered experimental. We recommend reading their [SECURITY.md](https://github.com/PQClean/PQClean/blob/master/SECURITY.md) for more details. 6 | 7 | As a quick summary: 8 | > It is important to understand that these implementations have not been subjected to rigorous security audits or formal security validations. PQClean does not modify or alter the algorithms provided by their upstream sources. 9 | 10 | > Users should be aware that while PQClean aims to provide accurate and secure implementations, the project does not make explicit security claims. 11 | 12 | > Any use in a production environment should be preceded by a detailed expert security review. 13 | 14 | ## 🛂 Reporting a Vulnerability 15 | 16 | **Please refrain from reporting security vulnerabilities through public channels such as Github issues or discussions.** 17 | 18 | If you believe you've found a vulnerability, we'd appreciate if you responsibly disclose it by emailing [root@backbone.dev](mailto:root@backbone.dev). Try to be as explicit and detail-oriented as possible when describing how to reproduce the issue. 19 | 20 | Providing code snippets, error messages, screenshots and other auxiliary information will go a long way in helping us prepare a fix. 21 | 22 | ## 📢 Public Disclosure 23 | 24 | We hold ourselves to a strict 30-day public disclosure policy for non-critical vulnerabilities and a 60-day policy for critical vulnerabilities to ensure sufficient uptake of a patch prior to disclosure. 25 | 26 | With your permission, we're happy to support you by co-authoring or disseminating blog posts and other technical material to educate and notify PQCrypto users. 27 | -------------------------------------------------------------------------------- /build.py: -------------------------------------------------------------------------------- 1 | """ 2 | A custom build hook for Hatchling to modify the build tag. 3 | This is important for packages built for specific platforms, architectures and python versions. 4 | 5 | For clarity: 6 | This hook results in wheels like `pqcrypto--cp313-cp313-manylinux_2_35_x86_64` instead of the generic `pqcrypto--py3-none-any` 7 | """ 8 | 9 | from hatchling.builders.hooks.plugin.interface import BuildHookInterface 10 | from packaging.tags import sys_tags 11 | 12 | 13 | class BuildHook(BuildHookInterface): 14 | def initialize(self, version, build_data): 15 | tag = next(sys_tags()) 16 | build_data["tag"] = "-".join([tag.interpreter, tag.abi, tag.platform]) 17 | return build_data 18 | -------------------------------------------------------------------------------- /compile.py: -------------------------------------------------------------------------------- 1 | import platform 2 | from cffi import FFI 3 | from pathlib import Path 4 | from jinja2 import Environment, FileSystemLoader 5 | from typing import Literal, List, Dict, Tuple 6 | 7 | AlgorithmType = Literal["kem", "sign"] 8 | 9 | PATH_ROOT = Path(__file__).parent 10 | PATH_PQCLEAN = PATH_ROOT / "pqclean" 11 | PATH_PQCRYPTO = PATH_ROOT / "pqcrypto" 12 | PATH_TEMPLATES = PATH_ROOT / "templates" 13 | 14 | PQCLEAN_COMMON = PATH_PQCLEAN / "common" 15 | PQCLEAN_KEM = PATH_PQCLEAN / "crypto_kem" 16 | PQCLEAN_SIGN = PATH_PQCLEAN / "crypto_sign" 17 | 18 | PQCRYPTO_KEM_C = PATH_PQCRYPTO / "_kem" 19 | PQCRYPTO_SIGN_C = PATH_PQCRYPTO / "_sign" 20 | PQCRYPTO_KEM_PY = PATH_PQCRYPTO / "kem" 21 | PQCRYPTO_SIGN_PY = PATH_PQCRYPTO / "sign" 22 | 23 | for directory in [PQCRYPTO_KEM_C, PQCRYPTO_SIGN_C, PQCRYPTO_KEM_PY, PQCRYPTO_SIGN_PY]: 24 | directory.mkdir(parents=True, exist_ok=True) 25 | 26 | for directory in [PATH_PQCRYPTO, PQCRYPTO_KEM_PY, PQCRYPTO_SIGN_PY]: 27 | package_file = directory / "__init__.py" 28 | package_file.touch(exist_ok=True) 29 | 30 | jinja_environment = Environment(loader=FileSystemLoader(PATH_TEMPLATES)) 31 | 32 | common_sources: List[Path] = [ 33 | file 34 | for file in PQCLEAN_COMMON.glob("**/*") 35 | if file.is_file() 36 | and file.name.endswith(".c") 37 | and "keccak" not in str(file.resolve()) 38 | ] 39 | 40 | 41 | def prepare_build_args() -> Tuple[List[str], List[str], List[str]]: 42 | compiler_args, linker_args, libraries = [], [], [] 43 | 44 | if platform.system().lower() == "windows": 45 | compiler_args += ["/O2", "/MD", "/nologo"] 46 | linker_args += ["/NODEFAULTLIB:MSVCRTD"] 47 | libraries += ["advapi32"] 48 | else: 49 | compiler_args += ["-O3", "-std=c99"] 50 | 51 | return compiler_args, linker_args, libraries 52 | 53 | 54 | def create_algorithm_ffi(algorithm_name: str, path: str, type: AlgorithmType) -> None: 55 | base_dir = PQCLEAN_KEM if type == "kem" else PQCLEAN_SIGN 56 | algorithm_path = base_dir / path 57 | compiler_args, linker_args, libraries = prepare_build_args() 58 | 59 | variant = "clean" 60 | variant_path = algorithm_path / variant 61 | header_path = variant_path / "api.h" 62 | 63 | ffi = FFI() 64 | template_name = f"definitions_{type}.c.j2" 65 | template = jinja_environment.get_template(template_name) 66 | algorithm_id = f"pqclean_{algorithm_name.replace('_', '')}_{variant}".upper() 67 | definitions = template.render(algorithm=algorithm_id) 68 | ffi.cdef(definitions) 69 | 70 | variant_sources = [ 71 | file 72 | for file in variant_path.glob("**/*") 73 | if file.is_file() and file.name.endswith(".c") 74 | ] 75 | 76 | ffi.set_source( 77 | f"pqcrypto._{type}.{algorithm_name}", 78 | f'#include "{str(header_path.resolve())}"', 79 | sources=[ 80 | str(source.relative_to(Path.cwd())) 81 | for source in (*common_sources, *variant_sources) 82 | ], 83 | include_dirs=[str(PQCLEAN_COMMON), str(variant_path.resolve())], 84 | extra_compile_args=compiler_args, 85 | extra_link_args=linker_args, 86 | libraries=libraries, 87 | ) 88 | ffi.compile(verbose=True) 89 | 90 | 91 | def define_constants(algorithm_name: str, type: AlgorithmType) -> str: 92 | variant = "clean" 93 | algorithm_id = f"pqclean_{algorithm_name.replace('_', '')}_{variant}".upper() 94 | library_constants: Dict[str, str] = { 95 | "PUBLIC_KEY_SIZE": f"{algorithm_id}_CRYPTO_PUBLICKEYBYTES", 96 | "SECRET_KEY_SIZE": f"{algorithm_id}_CRYPTO_SECRETKEYBYTES", 97 | } 98 | 99 | if type == "kem": 100 | library_constants.update( 101 | { 102 | "CIPHERTEXT_SIZE": f"{algorithm_id}_CRYPTO_CIPHERTEXTBYTES", 103 | "PLAINTEXT_SIZE": f"{algorithm_id}_CRYPTO_BYTES", 104 | } 105 | ) 106 | elif type == "sign": 107 | library_constants.update( 108 | { 109 | "SIGNATURE_SIZE": f"{algorithm_id}_CRYPTO_BYTES", 110 | } 111 | ) 112 | 113 | lines = [f'ALGORITHM = "{algorithm_name}"'] 114 | lines += [ 115 | f"{const_name} = __lib.{const_value}" 116 | for const_name, const_value in library_constants.items() 117 | ] 118 | return "\n".join(lines) 119 | 120 | 121 | def create_algorithm_wrapper(algorithm_name: str, type: AlgorithmType) -> None: 122 | wrapper_dir = PQCRYPTO_KEM_PY if type == "kem" else PQCRYPTO_SIGN_PY 123 | wrapper_path = wrapper_dir / f"{algorithm_name}.py" 124 | module_name = f".._{type}.{algorithm_name}" 125 | 126 | variant = "clean" 127 | algorithm_id = f"pqclean_{algorithm_name.replace('_', '')}_{variant}".upper() 128 | const_defs: str = define_constants(algorithm_name, type) 129 | 130 | template_name = f"wrapper_{type}.py.j2" 131 | template = jinja_environment.get_template(template_name) 132 | 133 | wrapper_code = template.render( 134 | algorithm=algorithm_id, module=module_name, const_defs=const_defs 135 | ) 136 | 137 | with open(wrapper_path, "w") as f: 138 | f.write(wrapper_code) 139 | 140 | 141 | def main() -> None: 142 | for alg_path in PQCLEAN_KEM.iterdir(): 143 | if alg_path.is_dir(): 144 | alg_name = f"{alg_path.name}".replace("-", "_") 145 | path = alg_path.name 146 | create_algorithm_ffi(alg_name, path, "kem") 147 | create_algorithm_wrapper(alg_name, "kem") 148 | 149 | for alg_path in PQCLEAN_SIGN.iterdir(): 150 | if alg_path.is_dir(): 151 | alg_name = f"{alg_path.name}".replace("-", "_") 152 | path = alg_path.name 153 | create_algorithm_ffi(alg_name, path, "sign") 154 | create_algorithm_wrapper(alg_name, "sign") 155 | 156 | 157 | if __name__ == "__main__": 158 | main() 159 | -------------------------------------------------------------------------------- /document.py: -------------------------------------------------------------------------------- 1 | """ 2 | This script updates the README.md file with the list of available algorithms. 3 | """ 4 | 5 | import re 6 | from pathlib import Path 7 | 8 | PATH_ROOT = Path(__file__).parent 9 | PATH_PQCLEAN = PATH_ROOT / "pqclean" 10 | PATH_README = PATH_ROOT / "README.md" 11 | 12 | PQCLEAN_KEM = PATH_PQCLEAN / "crypto_kem" 13 | PQCLEAN_SIGN = PATH_PQCLEAN / "crypto_sign" 14 | 15 | 16 | def get_algorithms(directory: Path) -> list[str]: 17 | if not directory.exists(): 18 | return [] 19 | 20 | return [ 21 | alg_path.name.replace("-", "_") 22 | for alg_path in directory.iterdir() 23 | if alg_path.is_dir() 24 | ] 25 | 26 | 27 | def format_algorithm_section(title: str, algorithms: list[str]) -> str: 28 | if not algorithms: 29 | return "" 30 | 31 | algorithms.sort() 32 | 33 | section = f"### {title}\n\n" 34 | section += "```\n" 35 | for algo in algorithms: 36 | section += f"- {algo}\n" 37 | section += "```\n\n" 38 | 39 | return section 40 | 41 | 42 | def update_readme( 43 | readme_path: Path, kem_algos: list[str], sign_algos: list[str] 44 | ) -> None: 45 | if not readme_path.exists(): 46 | print(f"README file not found at {readme_path}") 47 | return 48 | 49 | with open(readme_path, "r") as f: 50 | content = f.read() 51 | 52 | has_algorithms_section = "## 📋 Available Algorithms" in content 53 | 54 | kem_section = format_algorithm_section("Key Encapsulation Mechanisms", kem_algos) 55 | sign_section = format_algorithm_section("Signature Algorithms", sign_algos) 56 | 57 | algorithms_section = f"## 📋 Available Algorithms\n\n{kem_section}{sign_section}" 58 | 59 | if has_algorithms_section: 60 | pattern = r"## 📋 Available Algorithms\n\n(.*?)(?=\n## |$)" 61 | updated_content = re.sub(pattern, algorithms_section, content, flags=re.DOTALL) 62 | else: 63 | pattern = r"(## 🙏 Credits)" 64 | updated_content = re.sub(pattern, f"{algorithms_section}\\1", content) 65 | 66 | with open(readme_path, "w") as f: 67 | f.write(updated_content) 68 | 69 | print( 70 | f"README updated with {len(kem_algos)} KEM and {len(sign_algos)} signature algorithms." 71 | ) 72 | 73 | 74 | def main() -> None: 75 | kem_algorithms = get_algorithms(PQCLEAN_KEM) 76 | sign_algorithms = get_algorithms(PQCLEAN_SIGN) 77 | 78 | if not kem_algorithms and not sign_algorithms: 79 | print("No algorithms found. Make sure the PQClean directories exist.") 80 | return 81 | 82 | update_readme(PATH_README, kem_algorithms, sign_algorithms) 83 | 84 | 85 | if __name__ == "__main__": 86 | main() 87 | -------------------------------------------------------------------------------- /media/pqcrypto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/backbone-hq/pqcrypto/76bff83168b39dfc6ce4f2e7d3b8f5efd3414867/media/pqcrypto.png -------------------------------------------------------------------------------- /pqcrypto/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/backbone-hq/pqcrypto/76bff83168b39dfc6ce4f2e7d3b8f5efd3414867/pqcrypto/.gitkeep -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [project] 2 | name = "pqcrypto" 3 | version = "0.3.1" 4 | description = "Post-quantum cryptography for Python." 5 | authors = [{ name = "Backbone Authors", email = "root@backbone.dev" }] 6 | license = "Apache-2.0" 7 | readme = "README.md" 8 | keywords = ["post-quantum", "cryptography", "security", "pqclean"] 9 | classifiers = [ 10 | "Development Status :: 4 - Beta", 11 | "Intended Audience :: Developers", 12 | "Intended Audience :: Science/Research", 13 | "Intended Audience :: System Administrators", 14 | "Intended Audience :: Telecommunications Industry", 15 | "Programming Language :: C", 16 | "Programming Language :: Python :: 3", 17 | "Topic :: Security", 18 | "Topic :: Security :: Cryptography", 19 | "Topic :: Software Development", 20 | "Topic :: Software Development :: Libraries", 21 | "Topic :: Utilities", 22 | ] 23 | requires-python = ">=3.9" 24 | 25 | [project.urls] 26 | "Repository" = "https://github.com/backbone-hq/pqcrypto" 27 | "Bug Tracker" = "https://github.com/backbone-hq/pqcrypto/issues" 28 | 29 | [dependency-groups] 30 | dev = [ 31 | "cffi>=1.17.1", 32 | "cibuildwheel>=2.23.2", 33 | "hatchling>=1.27.0", 34 | "jinja2>=3.1.6", 35 | "pytest>=8.3.5", 36 | "setuptools>=78.1.0", 37 | ] 38 | 39 | [build-system] 40 | requires = ["hatchling", "cffi", "jinja2", "setuptools"] 41 | build-backend = "hatchling.build" 42 | 43 | [tool.ruff] 44 | exclude = ["pqclean"] 45 | 46 | [tool.cibuildwheel] 47 | before-build = "rm -r ./pqcrypto/* || true && pip install cffi jinja2 setuptools && python compile.py" 48 | skip = "pp*" 49 | 50 | [tool.setuptools] 51 | py-modules = ["pqcrypto"] 52 | 53 | [tool.hatch.build] 54 | pure-python = false 55 | include = ["pqcrypto"] 56 | exclude = ["pqcrypto/**/*.c", "pqcrypto/**/*.o"] 57 | ignore-vcs = true 58 | 59 | [tool.hatch.build.hooks.custom] 60 | path = "build.py" 61 | -------------------------------------------------------------------------------- /templates/definitions_kem.c.j2: -------------------------------------------------------------------------------- 1 | int {{ algorithm }}_crypto_kem_keypair(uint8_t *pk, uint8_t *sk); 2 | int {{ algorithm }}_crypto_kem_enc(uint8_t *c, uint8_t *key, const uint8_t *pk); 3 | int {{ algorithm }}_crypto_kem_dec(uint8_t *key, const uint8_t *c, const uint8_t *sk); 4 | 5 | #define {{ algorithm }}_CRYPTO_PUBLICKEYBYTES ... 6 | #define {{ algorithm }}_CRYPTO_SECRETKEYBYTES ... 7 | #define {{ algorithm }}_CRYPTO_CIPHERTEXTBYTES ... 8 | #define {{ algorithm }}_CRYPTO_BYTES ... 9 | -------------------------------------------------------------------------------- /templates/definitions_sign.c.j2: -------------------------------------------------------------------------------- 1 | int {{ algorithm }}_crypto_sign_keypair(uint8_t *pk, uint8_t *sk); 2 | int {{ algorithm }}_crypto_sign_signature(uint8_t *sig, size_t *siglen, const uint8_t *m, size_t mlen, const uint8_t *sk); 3 | int {{ algorithm }}_crypto_sign_verify(const uint8_t *sig, size_t siglen, const uint8_t *m, size_t mlen, const uint8_t *pk); 4 | int {{ algorithm }}_crypto_sign(uint8_t *sm, size_t *smlen, const uint8_t *m, size_t mlen, const uint8_t *sk); 5 | int {{ algorithm }}_crypto_sign_open(uint8_t *m, size_t *mlen, const uint8_t *sm, size_t smlen, const uint8_t *pk); 6 | 7 | #define {{ algorithm }}_CRYPTO_PUBLICKEYBYTES ... 8 | #define {{ algorithm }}_CRYPTO_SECRETKEYBYTES ... 9 | #define {{ algorithm }}_CRYPTO_BYTES ... 10 | -------------------------------------------------------------------------------- /templates/wrapper_kem.py.j2: -------------------------------------------------------------------------------- 1 | from {{ module }} import ffi as __ffi, lib as __lib 2 | 3 | {{ const_defs }} 4 | 5 | 6 | def kem_generate_keypair_factory(ffi, lib): 7 | def generate_keypair(): 8 | public_key_buf = ffi.new("uint8_t [{}]".format(lib.{{ algorithm }}_CRYPTO_PUBLICKEYBYTES)) 9 | secret_key_buf = ffi.new("uint8_t [{}]".format(lib.{{ algorithm }}_CRYPTO_SECRETKEYBYTES)) 10 | if 0 != lib.{{ algorithm }}_crypto_kem_keypair(public_key_buf, secret_key_buf): 11 | raise RuntimeError("KEM keypair generation failed") 12 | public_key = bytes(ffi.buffer(public_key_buf, lib.{{ algorithm }}_CRYPTO_PUBLICKEYBYTES)) 13 | secret_key = bytes(ffi.buffer(secret_key_buf, lib.{{ algorithm }}_CRYPTO_SECRETKEYBYTES)) 14 | return public_key, secret_key 15 | return generate_keypair 16 | 17 | 18 | def kem_encrypt_factory(ffi, lib): 19 | def encrypt(public_key): 20 | if not isinstance(public_key, bytes): 21 | raise TypeError("'public_key' must be of type 'bytes'") 22 | if len(public_key) != lib.{{ algorithm }}_CRYPTO_PUBLICKEYBYTES: 23 | raise ValueError( 24 | f"'public_key' must be of length '{lib.{{ algorithm }}_CRYPTO_PUBLICKEYBYTES}'" 25 | ) 26 | ciphertext_buf = ffi.new("uint8_t [{}]".format(lib.{{ algorithm }}_CRYPTO_CIPHERTEXTBYTES)) 27 | plaintext_buf = ffi.new("uint8_t [{}]".format(lib.{{ algorithm }}_CRYPTO_BYTES)) 28 | if 0 != lib.{{ algorithm }}_crypto_kem_enc(ciphertext_buf, plaintext_buf, public_key): 29 | raise RuntimeError("KEM encryption failed") 30 | ciphertext = bytes(ffi.buffer(ciphertext_buf, lib.{{ algorithm }}_CRYPTO_CIPHERTEXTBYTES)) 31 | plaintext = bytes(ffi.buffer(plaintext_buf, lib.{{ algorithm }}_CRYPTO_BYTES)) 32 | return ciphertext, plaintext 33 | return encrypt 34 | 35 | 36 | def kem_decrypt_factory(ffi, lib): 37 | def decrypt(secret_key, ciphertext): 38 | if not isinstance(secret_key, bytes): 39 | raise TypeError("'secret_key' must be of type 'bytes'") 40 | if not isinstance(ciphertext, bytes): 41 | raise TypeError("'ciphertext' must be of type 'bytes'") 42 | if len(secret_key) != lib.{{ algorithm }}_CRYPTO_SECRETKEYBYTES: 43 | raise ValueError( 44 | f"'secret_key' must be of length '{lib.{{ algorithm }}_CRYPTO_SECRETKEYBYTES}'" 45 | ) 46 | if len(ciphertext) != lib.{{ algorithm }}_CRYPTO_CIPHERTEXTBYTES: 47 | raise ValueError( 48 | f"'ciphertext' must be of length '{lib.{{ algorithm }}_CRYPTO_CIPHERTEXTBYTES}'" 49 | ) 50 | plaintext_buf = ffi.new("uint8_t [{}]".format(lib.{{ algorithm }}_CRYPTO_BYTES)) 51 | if 0 != lib.{{ algorithm }}_crypto_kem_dec(plaintext_buf, ciphertext, secret_key): 52 | raise RuntimeError("KEM decryption failed") 53 | return bytes(ffi.buffer(plaintext_buf, lib.{{ algorithm }}_CRYPTO_BYTES)) 54 | return decrypt 55 | 56 | 57 | generate_keypair = kem_generate_keypair_factory(__ffi, __lib) 58 | encrypt = kem_encrypt_factory(__ffi, __lib) 59 | decrypt = kem_decrypt_factory(__ffi, __lib) 60 | -------------------------------------------------------------------------------- /templates/wrapper_sign.py.j2: -------------------------------------------------------------------------------- 1 | import struct 2 | from {{ module }} import ffi as __ffi, lib as __lib 3 | 4 | {{ const_defs }} 5 | 6 | def sign_generate_keypair_factory(ffi, lib): 7 | def generate_keypair(): 8 | public_key_buf = ffi.new("uint8_t [{}]".format(lib.{{ algorithm }}_CRYPTO_PUBLICKEYBYTES)) 9 | secret_key_buf = ffi.new("uint8_t [{}]".format(lib.{{ algorithm }}_CRYPTO_SECRETKEYBYTES)) 10 | if 0 != lib.{{ algorithm }}_crypto_sign_keypair(public_key_buf, secret_key_buf): 11 | raise RuntimeError("Keypair generation failed") 12 | public_key = bytes(ffi.buffer(public_key_buf, lib.{{ algorithm }}_CRYPTO_PUBLICKEYBYTES)) 13 | secret_key = bytes(ffi.buffer(secret_key_buf, lib.{{ algorithm }}_CRYPTO_SECRETKEYBYTES)) 14 | return public_key, secret_key 15 | return generate_keypair 16 | 17 | def sign_sign_factory(ffi, lib): 18 | def sign(secret_key, message): 19 | if not isinstance(secret_key, bytes): 20 | raise TypeError("'secret_key' must be of type 'bytes'") 21 | if not isinstance(message, bytes): 22 | raise TypeError("'message' must be of type 'bytes'") 23 | if len(secret_key) != lib.{{ algorithm }}_CRYPTO_SECRETKEYBYTES: 24 | raise ValueError(f"'secret_key' must be of length '{lib.{{ algorithm }}_CRYPTO_SECRETKEYBYTES}'") 25 | signature_buf = ffi.new("uint8_t [{}]".format(lib.{{ algorithm }}_CRYPTO_BYTES)) 26 | signature_len = ffi.new("size_t *", lib.{{ algorithm }}_CRYPTO_BYTES) 27 | if 0 != lib.{{ algorithm }}_crypto_sign_signature(signature_buf, signature_len, message, len(message), secret_key): 28 | raise RuntimeError("Signature generation failed") 29 | signature_len = struct.unpack("Q", ffi.buffer(signature_len, 8))[0] 30 | return bytes(ffi.buffer(signature_buf, signature_len)) 31 | return sign 32 | 33 | def sign_verify_factory(ffi, lib): 34 | def verify(public_key, message, signature): 35 | if not isinstance(public_key, bytes): 36 | raise TypeError("'public_key' must be of type 'bytes'") 37 | if not isinstance(message, bytes): 38 | raise TypeError("'message' must be of type 'bytes'") 39 | if not isinstance(signature, bytes): 40 | raise TypeError("'signature' must be of type 'bytes'") 41 | if len(public_key) != lib.{{ algorithm }}_CRYPTO_PUBLICKEYBYTES: 42 | raise ValueError(f"'public_key' must be of length '{lib.{{ algorithm }}_CRYPTO_PUBLICKEYBYTES}'") 43 | if len(signature) > lib.{{ algorithm }}_CRYPTO_BYTES: 44 | raise ValueError(f"'signature' must be of length at most '{lib.{{ algorithm }}_CRYPTO_BYTES}'") 45 | return 0 == lib.{{ algorithm }}_crypto_sign_verify(signature, len(signature), message, len(message), public_key) 46 | return verify 47 | 48 | generate_keypair = sign_generate_keypair_factory(__ffi, __lib) 49 | sign = sign_sign_factory(__ffi, __lib) 50 | verify = sign_verify_factory(__ffi, __lib) 51 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import pathlib 3 | 4 | sys.path.insert(0, str(pathlib.Path(__file__).parent.parent.resolve())) 5 | -------------------------------------------------------------------------------- /tests/test_kem.py: -------------------------------------------------------------------------------- 1 | import pytest 2 | import pkgutil 3 | import importlib 4 | import pqcrypto.kem 5 | from secrets import compare_digest 6 | 7 | finders = [ 8 | finder 9 | for finder in pkgutil.iter_modules(pqcrypto.kem.__path__) 10 | if not finder.name.startswith("_") 11 | ] 12 | modules = [importlib.import_module(f"pqcrypto.kem.{module.name}") for module in finders] 13 | 14 | 15 | @pytest.mark.parametrize("variant", modules) 16 | def test_generate_keypair(variant): 17 | variant.generate_keypair() 18 | 19 | 20 | @pytest.mark.parametrize("variant", modules) 21 | def test_integration(variant): 22 | # Alice generates a public key 23 | public_key, secret_key = variant.generate_keypair() 24 | 25 | # Bob derives a secret (the plaintext) and encrypts it with Alice's public key to produce a ciphertext 26 | ciphertext, plaintext_original = variant.encrypt(public_key) 27 | 28 | # Alice decrypts Bob's ciphertext to derive the now shared secret 29 | plaintext_recovered = variant.decrypt(secret_key, ciphertext) 30 | 31 | # Compare the original and recovered secrets in constant time 32 | assert compare_digest(plaintext_original, plaintext_recovered) 33 | -------------------------------------------------------------------------------- /tests/test_sign.py: -------------------------------------------------------------------------------- 1 | import pytest 2 | import pkgutil 3 | import importlib 4 | import pqcrypto.sign 5 | 6 | finders = [ 7 | finder 8 | for finder in pkgutil.iter_modules(pqcrypto.sign.__path__) 9 | if not finder.name.startswith("_") 10 | ] 11 | modules = [ 12 | importlib.import_module(f"pqcrypto.sign.{module.name}") for module in finders 13 | ] 14 | 15 | 16 | @pytest.mark.parametrize("variant", modules) 17 | def test_generate_keypair(variant): 18 | variant.generate_keypair() 19 | 20 | 21 | @pytest.mark.parametrize("variant", modules) 22 | def test_integration(variant): 23 | # Alice generates a public key 24 | public_key, secret_key = variant.generate_keypair() 25 | 26 | # Bob derives a secret (the plaintext) and encrypts it with Alice's public key to produce a ciphertext 27 | message = b"Hello World" 28 | signature = variant.sign(secret_key, message) 29 | 30 | # Alice decrypts Bob's ciphertext to derive the now shared secret 31 | assert variant.verify(public_key, message, signature) 32 | -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- 1 | version = 1 2 | requires-python = ">=3.9" 3 | 4 | [[package]] 5 | name = "bashlex" 6 | version = "0.18" 7 | source = { registry = "https://pypi.org/simple" } 8 | sdist = { url = "https://files.pythonhosted.org/packages/76/60/aae0bb54f9af5e0128ba90eb83d8d0d506ee8f0475c4fdda3deeda20b1d2/bashlex-0.18.tar.gz", hash = "sha256:5bb03a01c6d5676338c36fd1028009c8ad07e7d61d8a1ce3f513b7fff52796ee", size = 68742 } 9 | wheels = [ 10 | { url = "https://files.pythonhosted.org/packages/f4/be/6985abb1011fda8a523cfe21ed9629e397d6e06fb5bae99750402b25c95b/bashlex-0.18-py2.py3-none-any.whl", hash = "sha256:91d73a23a3e51711919c1c899083890cdecffc91d8c088942725ac13e9dcfffa", size = 69539 }, 11 | ] 12 | 13 | [[package]] 14 | name = "bracex" 15 | version = "2.5.post1" 16 | source = { registry = "https://pypi.org/simple" } 17 | sdist = { url = "https://files.pythonhosted.org/packages/d6/6c/57418c4404cd22fe6275b8301ca2b46a8cdaa8157938017a9ae0b3edf363/bracex-2.5.post1.tar.gz", hash = "sha256:12c50952415bfa773d2d9ccb8e79651b8cdb1f31a42f6091b804f6ba2b4a66b6", size = 26641 } 18 | wheels = [ 19 | { url = "https://files.pythonhosted.org/packages/4b/02/8db98cdc1a58e0abd6716d5e63244658e6e63513c65f469f34b6f1053fd0/bracex-2.5.post1-py3-none-any.whl", hash = "sha256:13e5732fec27828d6af308628285ad358047cec36801598368cb28bc631dbaf6", size = 11558 }, 20 | ] 21 | 22 | [[package]] 23 | name = "certifi" 24 | version = "2025.1.31" 25 | source = { registry = "https://pypi.org/simple" } 26 | sdist = { url = "https://files.pythonhosted.org/packages/1c/ab/c9f1e32b7b1bf505bf26f0ef697775960db7932abeb7b516de930ba2705f/certifi-2025.1.31.tar.gz", hash = "sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651", size = 167577 } 27 | wheels = [ 28 | { url = "https://files.pythonhosted.org/packages/38/fc/bce832fd4fd99766c04d1ee0eead6b0ec6486fb100ae5e74c1d91292b982/certifi-2025.1.31-py3-none-any.whl", hash = "sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe", size = 166393 }, 29 | ] 30 | 31 | [[package]] 32 | name = "cffi" 33 | version = "1.17.1" 34 | source = { registry = "https://pypi.org/simple" } 35 | dependencies = [ 36 | { name = "pycparser" }, 37 | ] 38 | sdist = { url = "https://files.pythonhosted.org/packages/fc/97/c783634659c2920c3fc70419e3af40972dbaf758daa229a7d6ea6135c90d/cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824", size = 516621 } 39 | wheels = [ 40 | { url = "https://files.pythonhosted.org/packages/90/07/f44ca684db4e4f08a3fdc6eeb9a0d15dc6883efc7b8c90357fdbf74e186c/cffi-1.17.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:df8b1c11f177bc2313ec4b2d46baec87a5f3e71fc8b45dab2ee7cae86d9aba14", size = 182191 }, 41 | { url = "https://files.pythonhosted.org/packages/08/fd/cc2fedbd887223f9f5d170c96e57cbf655df9831a6546c1727ae13fa977a/cffi-1.17.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8f2cdc858323644ab277e9bb925ad72ae0e67f69e804f4898c070998d50b1a67", size = 178592 }, 42 | { url = "https://files.pythonhosted.org/packages/de/cc/4635c320081c78d6ffc2cab0a76025b691a91204f4aa317d568ff9280a2d/cffi-1.17.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:edae79245293e15384b51f88b00613ba9f7198016a5948b5dddf4917d4d26382", size = 426024 }, 43 | { url = "https://files.pythonhosted.org/packages/b6/7b/3b2b250f3aab91abe5f8a51ada1b717935fdaec53f790ad4100fe2ec64d1/cffi-1.17.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:45398b671ac6d70e67da8e4224a065cec6a93541bb7aebe1b198a61b58c7b702", size = 448188 }, 44 | { url = "https://files.pythonhosted.org/packages/d3/48/1b9283ebbf0ec065148d8de05d647a986c5f22586b18120020452fff8f5d/cffi-1.17.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ad9413ccdeda48c5afdae7e4fa2192157e991ff761e7ab8fdd8926f40b160cc3", size = 455571 }, 45 | { url = "https://files.pythonhosted.org/packages/40/87/3b8452525437b40f39ca7ff70276679772ee7e8b394934ff60e63b7b090c/cffi-1.17.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5da5719280082ac6bd9aa7becb3938dc9f9cbd57fac7d2871717b1feb0902ab6", size = 436687 }, 46 | { url = "https://files.pythonhosted.org/packages/8d/fb/4da72871d177d63649ac449aec2e8a29efe0274035880c7af59101ca2232/cffi-1.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bb1a08b8008b281856e5971307cc386a8e9c5b625ac297e853d36da6efe9c17", size = 446211 }, 47 | { url = "https://files.pythonhosted.org/packages/ab/a0/62f00bcb411332106c02b663b26f3545a9ef136f80d5df746c05878f8c4b/cffi-1.17.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:045d61c734659cc045141be4bae381a41d89b741f795af1dd018bfb532fd0df8", size = 461325 }, 48 | { url = "https://files.pythonhosted.org/packages/36/83/76127035ed2e7e27b0787604d99da630ac3123bfb02d8e80c633f218a11d/cffi-1.17.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:6883e737d7d9e4899a8a695e00ec36bd4e5e4f18fabe0aca0efe0a4b44cdb13e", size = 438784 }, 49 | { url = "https://files.pythonhosted.org/packages/21/81/a6cd025db2f08ac88b901b745c163d884641909641f9b826e8cb87645942/cffi-1.17.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:6b8b4a92e1c65048ff98cfe1f735ef8f1ceb72e3d5f0c25fdb12087a23da22be", size = 461564 }, 50 | { url = "https://files.pythonhosted.org/packages/f8/fe/4d41c2f200c4a457933dbd98d3cf4e911870877bd94d9656cc0fcb390681/cffi-1.17.1-cp310-cp310-win32.whl", hash = "sha256:c9c3d058ebabb74db66e431095118094d06abf53284d9c81f27300d0e0d8bc7c", size = 171804 }, 51 | { url = "https://files.pythonhosted.org/packages/d1/b6/0b0f5ab93b0df4acc49cae758c81fe4e5ef26c3ae2e10cc69249dfd8b3ab/cffi-1.17.1-cp310-cp310-win_amd64.whl", hash = "sha256:0f048dcf80db46f0098ccac01132761580d28e28bc0f78ae0d58048063317e15", size = 181299 }, 52 | { url = "https://files.pythonhosted.org/packages/6b/f4/927e3a8899e52a27fa57a48607ff7dc91a9ebe97399b357b85a0c7892e00/cffi-1.17.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a45e3c6913c5b87b3ff120dcdc03f6131fa0065027d0ed7ee6190736a74cd401", size = 182264 }, 53 | { url = "https://files.pythonhosted.org/packages/6c/f5/6c3a8efe5f503175aaddcbea6ad0d2c96dad6f5abb205750d1b3df44ef29/cffi-1.17.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:30c5e0cb5ae493c04c8b42916e52ca38079f1b235c2f8ae5f4527b963c401caf", size = 178651 }, 54 | { url = "https://files.pythonhosted.org/packages/94/dd/a3f0118e688d1b1a57553da23b16bdade96d2f9bcda4d32e7d2838047ff7/cffi-1.17.1-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f75c7ab1f9e4aca5414ed4d8e5c0e303a34f4421f8a0d47a4d019ceff0ab6af4", size = 445259 }, 55 | { url = "https://files.pythonhosted.org/packages/2e/ea/70ce63780f096e16ce8588efe039d3c4f91deb1dc01e9c73a287939c79a6/cffi-1.17.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a1ed2dd2972641495a3ec98445e09766f077aee98a1c896dcb4ad0d303628e41", size = 469200 }, 56 | { url = "https://files.pythonhosted.org/packages/1c/a0/a4fa9f4f781bda074c3ddd57a572b060fa0df7655d2a4247bbe277200146/cffi-1.17.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:46bf43160c1a35f7ec506d254e5c890f3c03648a4dbac12d624e4490a7046cd1", size = 477235 }, 57 | { url = "https://files.pythonhosted.org/packages/62/12/ce8710b5b8affbcdd5c6e367217c242524ad17a02fe5beec3ee339f69f85/cffi-1.17.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a24ed04c8ffd54b0729c07cee15a81d964e6fee0e3d4d342a27b020d22959dc6", size = 459721 }, 58 | { url = "https://files.pythonhosted.org/packages/ff/6b/d45873c5e0242196f042d555526f92aa9e0c32355a1be1ff8c27f077fd37/cffi-1.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:610faea79c43e44c71e1ec53a554553fa22321b65fae24889706c0a84d4ad86d", size = 467242 }, 59 | { url = "https://files.pythonhosted.org/packages/1a/52/d9a0e523a572fbccf2955f5abe883cfa8bcc570d7faeee06336fbd50c9fc/cffi-1.17.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:a9b15d491f3ad5d692e11f6b71f7857e7835eb677955c00cc0aefcd0669adaf6", size = 477999 }, 60 | { url = "https://files.pythonhosted.org/packages/44/74/f2a2460684a1a2d00ca799ad880d54652841a780c4c97b87754f660c7603/cffi-1.17.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:de2ea4b5833625383e464549fec1bc395c1bdeeb5f25c4a3a82b5a8c756ec22f", size = 454242 }, 61 | { url = "https://files.pythonhosted.org/packages/f8/4a/34599cac7dfcd888ff54e801afe06a19c17787dfd94495ab0c8d35fe99fb/cffi-1.17.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:fc48c783f9c87e60831201f2cce7f3b2e4846bf4d8728eabe54d60700b318a0b", size = 478604 }, 62 | { url = "https://files.pythonhosted.org/packages/34/33/e1b8a1ba29025adbdcda5fb3a36f94c03d771c1b7b12f726ff7fef2ebe36/cffi-1.17.1-cp311-cp311-win32.whl", hash = "sha256:85a950a4ac9c359340d5963966e3e0a94a676bd6245a4b55bc43949eee26a655", size = 171727 }, 63 | { url = "https://files.pythonhosted.org/packages/3d/97/50228be003bb2802627d28ec0627837ac0bf35c90cf769812056f235b2d1/cffi-1.17.1-cp311-cp311-win_amd64.whl", hash = "sha256:caaf0640ef5f5517f49bc275eca1406b0ffa6aa184892812030f04c2abf589a0", size = 181400 }, 64 | { url = "https://files.pythonhosted.org/packages/5a/84/e94227139ee5fb4d600a7a4927f322e1d4aea6fdc50bd3fca8493caba23f/cffi-1.17.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:805b4371bf7197c329fcb3ead37e710d1bca9da5d583f5073b799d5c5bd1eee4", size = 183178 }, 65 | { url = "https://files.pythonhosted.org/packages/da/ee/fb72c2b48656111c4ef27f0f91da355e130a923473bf5ee75c5643d00cca/cffi-1.17.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:733e99bc2df47476e3848417c5a4540522f234dfd4ef3ab7fafdf555b082ec0c", size = 178840 }, 66 | { url = "https://files.pythonhosted.org/packages/cc/b6/db007700f67d151abadf508cbfd6a1884f57eab90b1bb985c4c8c02b0f28/cffi-1.17.1-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1257bdabf294dceb59f5e70c64a3e2f462c30c7ad68092d01bbbfb1c16b1ba36", size = 454803 }, 67 | { url = "https://files.pythonhosted.org/packages/1a/df/f8d151540d8c200eb1c6fba8cd0dfd40904f1b0682ea705c36e6c2e97ab3/cffi-1.17.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:da95af8214998d77a98cc14e3a3bd00aa191526343078b530ceb0bd710fb48a5", size = 478850 }, 68 | { url = "https://files.pythonhosted.org/packages/28/c0/b31116332a547fd2677ae5b78a2ef662dfc8023d67f41b2a83f7c2aa78b1/cffi-1.17.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d63afe322132c194cf832bfec0dc69a99fb9bb6bbd550f161a49e9e855cc78ff", size = 485729 }, 69 | { url = "https://files.pythonhosted.org/packages/91/2b/9a1ddfa5c7f13cab007a2c9cc295b70fbbda7cb10a286aa6810338e60ea1/cffi-1.17.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f79fc4fc25f1c8698ff97788206bb3c2598949bfe0fef03d299eb1b5356ada99", size = 471256 }, 70 | { url = "https://files.pythonhosted.org/packages/b2/d5/da47df7004cb17e4955df6a43d14b3b4ae77737dff8bf7f8f333196717bf/cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b62ce867176a75d03a665bad002af8e6d54644fad99a3c70905c543130e39d93", size = 479424 }, 71 | { url = "https://files.pythonhosted.org/packages/0b/ac/2a28bcf513e93a219c8a4e8e125534f4f6db03e3179ba1c45e949b76212c/cffi-1.17.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:386c8bf53c502fff58903061338ce4f4950cbdcb23e2902d86c0f722b786bbe3", size = 484568 }, 72 | { url = "https://files.pythonhosted.org/packages/d4/38/ca8a4f639065f14ae0f1d9751e70447a261f1a30fa7547a828ae08142465/cffi-1.17.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:4ceb10419a9adf4460ea14cfd6bc43d08701f0835e979bf821052f1805850fe8", size = 488736 }, 73 | { url = "https://files.pythonhosted.org/packages/86/c5/28b2d6f799ec0bdecf44dced2ec5ed43e0eb63097b0f58c293583b406582/cffi-1.17.1-cp312-cp312-win32.whl", hash = "sha256:a08d7e755f8ed21095a310a693525137cfe756ce62d066e53f502a83dc550f65", size = 172448 }, 74 | { url = "https://files.pythonhosted.org/packages/50/b9/db34c4755a7bd1cb2d1603ac3863f22bcecbd1ba29e5ee841a4bc510b294/cffi-1.17.1-cp312-cp312-win_amd64.whl", hash = "sha256:51392eae71afec0d0c8fb1a53b204dbb3bcabcb3c9b807eedf3e1e6ccf2de903", size = 181976 }, 75 | { url = "https://files.pythonhosted.org/packages/8d/f8/dd6c246b148639254dad4d6803eb6a54e8c85c6e11ec9df2cffa87571dbe/cffi-1.17.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f3a2b4222ce6b60e2e8b337bb9596923045681d71e5a082783484d845390938e", size = 182989 }, 76 | { url = "https://files.pythonhosted.org/packages/8b/f1/672d303ddf17c24fc83afd712316fda78dc6fce1cd53011b839483e1ecc8/cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0984a4925a435b1da406122d4d7968dd861c1385afe3b45ba82b750f229811e2", size = 178802 }, 77 | { url = "https://files.pythonhosted.org/packages/0e/2d/eab2e858a91fdff70533cab61dcff4a1f55ec60425832ddfdc9cd36bc8af/cffi-1.17.1-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d01b12eeeb4427d3110de311e1774046ad344f5b1a7403101878976ecd7a10f3", size = 454792 }, 78 | { url = "https://files.pythonhosted.org/packages/75/b2/fbaec7c4455c604e29388d55599b99ebcc250a60050610fadde58932b7ee/cffi-1.17.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:706510fe141c86a69c8ddc029c7910003a17353970cff3b904ff0686a5927683", size = 478893 }, 79 | { url = "https://files.pythonhosted.org/packages/4f/b7/6e4a2162178bf1935c336d4da8a9352cccab4d3a5d7914065490f08c0690/cffi-1.17.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de55b766c7aa2e2a3092c51e0483d700341182f08e67c63630d5b6f200bb28e5", size = 485810 }, 80 | { url = "https://files.pythonhosted.org/packages/c7/8a/1d0e4a9c26e54746dc08c2c6c037889124d4f59dffd853a659fa545f1b40/cffi-1.17.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c59d6e989d07460165cc5ad3c61f9fd8f1b4796eacbd81cee78957842b834af4", size = 471200 }, 81 | { url = "https://files.pythonhosted.org/packages/26/9f/1aab65a6c0db35f43c4d1b4f580e8df53914310afc10ae0397d29d697af4/cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd398dbc6773384a17fe0d3e7eeb8d1a21c2200473ee6806bb5e6a8e62bb73dd", size = 479447 }, 82 | { url = "https://files.pythonhosted.org/packages/5f/e4/fb8b3dd8dc0e98edf1135ff067ae070bb32ef9d509d6cb0f538cd6f7483f/cffi-1.17.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:3edc8d958eb099c634dace3c7e16560ae474aa3803a5df240542b305d14e14ed", size = 484358 }, 83 | { url = "https://files.pythonhosted.org/packages/f1/47/d7145bf2dc04684935d57d67dff9d6d795b2ba2796806bb109864be3a151/cffi-1.17.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:72e72408cad3d5419375fc87d289076ee319835bdfa2caad331e377589aebba9", size = 488469 }, 84 | { url = "https://files.pythonhosted.org/packages/bf/ee/f94057fa6426481d663b88637a9a10e859e492c73d0384514a17d78ee205/cffi-1.17.1-cp313-cp313-win32.whl", hash = "sha256:e03eab0a8677fa80d646b5ddece1cbeaf556c313dcfac435ba11f107ba117b5d", size = 172475 }, 85 | { url = "https://files.pythonhosted.org/packages/7c/fc/6a8cb64e5f0324877d503c854da15d76c1e50eb722e320b15345c4d0c6de/cffi-1.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:f6a16c31041f09ead72d69f583767292f750d24913dadacf5756b966aacb3f1a", size = 182009 }, 86 | { url = "https://files.pythonhosted.org/packages/b9/ea/8bb50596b8ffbc49ddd7a1ad305035daa770202a6b782fc164647c2673ad/cffi-1.17.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b2ab587605f4ba0bf81dc0cb08a41bd1c0a5906bd59243d56bad7668a6fc6c16", size = 182220 }, 87 | { url = "https://files.pythonhosted.org/packages/ae/11/e77c8cd24f58285a82c23af484cf5b124a376b32644e445960d1a4654c3a/cffi-1.17.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:28b16024becceed8c6dfbc75629e27788d8a3f9030691a1dbf9821a128b22c36", size = 178605 }, 88 | { url = "https://files.pythonhosted.org/packages/ed/65/25a8dc32c53bf5b7b6c2686b42ae2ad58743f7ff644844af7cdb29b49361/cffi-1.17.1-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1d599671f396c4723d016dbddb72fe8e0397082b0a77a4fab8028923bec050e8", size = 424910 }, 89 | { url = "https://files.pythonhosted.org/packages/42/7a/9d086fab7c66bd7c4d0f27c57a1b6b068ced810afc498cc8c49e0088661c/cffi-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca74b8dbe6e8e8263c0ffd60277de77dcee6c837a3d0881d8c1ead7268c9e576", size = 447200 }, 90 | { url = "https://files.pythonhosted.org/packages/da/63/1785ced118ce92a993b0ec9e0d0ac8dc3e5dbfbcaa81135be56c69cabbb6/cffi-1.17.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f7f5baafcc48261359e14bcd6d9bff6d4b28d9103847c9e136694cb0501aef87", size = 454565 }, 91 | { url = "https://files.pythonhosted.org/packages/74/06/90b8a44abf3556599cdec107f7290277ae8901a58f75e6fe8f970cd72418/cffi-1.17.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:98e3969bcff97cae1b2def8ba499ea3d6f31ddfdb7635374834cf89a1a08ecf0", size = 435635 }, 92 | { url = "https://files.pythonhosted.org/packages/bd/62/a1f468e5708a70b1d86ead5bab5520861d9c7eacce4a885ded9faa7729c3/cffi-1.17.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cdf5ce3acdfd1661132f2a9c19cac174758dc2352bfe37d98aa7512c6b7178b3", size = 445218 }, 93 | { url = "https://files.pythonhosted.org/packages/5b/95/b34462f3ccb09c2594aa782d90a90b045de4ff1f70148ee79c69d37a0a5a/cffi-1.17.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:9755e4345d1ec879e3849e62222a18c7174d65a6a92d5b346b1863912168b595", size = 460486 }, 94 | { url = "https://files.pythonhosted.org/packages/fc/fc/a1e4bebd8d680febd29cf6c8a40067182b64f00c7d105f8f26b5bc54317b/cffi-1.17.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:f1e22e8c4419538cb197e4dd60acc919d7696e5ef98ee4da4e01d3f8cfa4cc5a", size = 437911 }, 95 | { url = "https://files.pythonhosted.org/packages/e6/c3/21cab7a6154b6a5ea330ae80de386e7665254835b9e98ecc1340b3a7de9a/cffi-1.17.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:c03e868a0b3bc35839ba98e74211ed2b05d2119be4e8a0f224fba9384f1fe02e", size = 460632 }, 96 | { url = "https://files.pythonhosted.org/packages/cb/b5/fd9f8b5a84010ca169ee49f4e4ad6f8c05f4e3545b72ee041dbbcb159882/cffi-1.17.1-cp39-cp39-win32.whl", hash = "sha256:e31ae45bc2e29f6b2abd0de1cc3b9d5205aa847cafaecb8af1476a609a2f6eb7", size = 171820 }, 97 | { url = "https://files.pythonhosted.org/packages/8c/52/b08750ce0bce45c143e1b5d7357ee8c55341b52bdef4b0f081af1eb248c2/cffi-1.17.1-cp39-cp39-win_amd64.whl", hash = "sha256:d016c76bdd850f3c626af19b0542c9677ba156e4ee4fccfdd7848803533ef662", size = 181290 }, 98 | ] 99 | 100 | [[package]] 101 | name = "cibuildwheel" 102 | version = "2.23.2" 103 | source = { registry = "https://pypi.org/simple" } 104 | dependencies = [ 105 | { name = "bashlex" }, 106 | { name = "bracex" }, 107 | { name = "certifi" }, 108 | { name = "dependency-groups" }, 109 | { name = "filelock" }, 110 | { name = "packaging" }, 111 | { name = "platformdirs" }, 112 | { name = "tomli", marker = "python_full_version < '3.11'" }, 113 | { name = "typing-extensions", marker = "python_full_version < '3.11'" }, 114 | ] 115 | sdist = { url = "https://files.pythonhosted.org/packages/ff/1a/15faea666182187ea7a67668dcbee8a069e5ac3eff01568a44fbb7cc544f/cibuildwheel-2.23.2.tar.gz", hash = "sha256:fba11162a4c0b3c4f0f5302661abb2dccdb26b0e9449ea0389c5ff18d4ef0c55", size = 295372 } 116 | wheels = [ 117 | { url = "https://files.pythonhosted.org/packages/4e/a6/97cc386f4ac8d4f3af9cc8a97668a0f50110f19f3e9ddbe48caec300fa66/cibuildwheel-2.23.2-py3-none-any.whl", hash = "sha256:aebe67a0d8463e16a4709763ee8b16a2cadc9f4fe8c040b7fedae8fdbb6443dd", size = 91830 }, 118 | ] 119 | 120 | [[package]] 121 | name = "colorama" 122 | version = "0.4.6" 123 | source = { registry = "https://pypi.org/simple" } 124 | sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } 125 | wheels = [ 126 | { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, 127 | ] 128 | 129 | [[package]] 130 | name = "dependency-groups" 131 | version = "1.3.0" 132 | source = { registry = "https://pypi.org/simple" } 133 | dependencies = [ 134 | { name = "packaging" }, 135 | { name = "tomli", marker = "python_full_version < '3.11'" }, 136 | ] 137 | sdist = { url = "https://files.pythonhosted.org/packages/b4/57/cd53c3e335eafbb0894449af078e2b71db47e9939ce2b45013e5a9fe89b7/dependency_groups-1.3.0.tar.gz", hash = "sha256:5b9751d5d98fbd6dfd038a560a69c8382e41afcbf7ffdbcc28a2a3f85498830f", size = 9832 } 138 | wheels = [ 139 | { url = "https://files.pythonhosted.org/packages/99/2c/3e3afb1df3dc8a8deeb143f6ac41acbfdfae4f03a54c760871c56832a554/dependency_groups-1.3.0-py3-none-any.whl", hash = "sha256:1abf34d712deda5581e80d507512664d52b35d1c2d7caf16c85e58ca508547e0", size = 8597 }, 140 | ] 141 | 142 | [[package]] 143 | name = "exceptiongroup" 144 | version = "1.2.2" 145 | source = { registry = "https://pypi.org/simple" } 146 | sdist = { url = "https://files.pythonhosted.org/packages/09/35/2495c4ac46b980e4ca1f6ad6db102322ef3ad2410b79fdde159a4b0f3b92/exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc", size = 28883 } 147 | wheels = [ 148 | { url = "https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b", size = 16453 }, 149 | ] 150 | 151 | [[package]] 152 | name = "filelock" 153 | version = "3.18.0" 154 | source = { registry = "https://pypi.org/simple" } 155 | sdist = { url = "https://files.pythonhosted.org/packages/0a/10/c23352565a6544bdc5353e0b15fc1c563352101f30e24bf500207a54df9a/filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2", size = 18075 } 156 | wheels = [ 157 | { url = "https://files.pythonhosted.org/packages/4d/36/2a115987e2d8c300a974597416d9de88f2444426de9571f4b59b2cca3acc/filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de", size = 16215 }, 158 | ] 159 | 160 | [[package]] 161 | name = "hatchling" 162 | version = "1.27.0" 163 | source = { registry = "https://pypi.org/simple" } 164 | dependencies = [ 165 | { name = "packaging" }, 166 | { name = "pathspec" }, 167 | { name = "pluggy" }, 168 | { name = "tomli", marker = "python_full_version < '3.11'" }, 169 | { name = "trove-classifiers" }, 170 | ] 171 | sdist = { url = "https://files.pythonhosted.org/packages/8f/8a/cc1debe3514da292094f1c3a700e4ca25442489731ef7c0814358816bb03/hatchling-1.27.0.tar.gz", hash = "sha256:971c296d9819abb3811112fc52c7a9751c8d381898f36533bb16f9791e941fd6", size = 54983 } 172 | wheels = [ 173 | { url = "https://files.pythonhosted.org/packages/08/e7/ae38d7a6dfba0533684e0b2136817d667588ae3ec984c1a4e5df5eb88482/hatchling-1.27.0-py3-none-any.whl", hash = "sha256:d3a2f3567c4f926ea39849cdf924c7e99e6686c9c8e288ae1037c8fa2a5d937b", size = 75794 }, 174 | ] 175 | 176 | [[package]] 177 | name = "iniconfig" 178 | version = "2.1.0" 179 | source = { registry = "https://pypi.org/simple" } 180 | sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793 } 181 | wheels = [ 182 | { url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050 }, 183 | ] 184 | 185 | [[package]] 186 | name = "jinja2" 187 | version = "3.1.6" 188 | source = { registry = "https://pypi.org/simple" } 189 | dependencies = [ 190 | { name = "markupsafe" }, 191 | ] 192 | sdist = { url = "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d", size = 245115 } 193 | wheels = [ 194 | { url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899 }, 195 | ] 196 | 197 | [[package]] 198 | name = "markupsafe" 199 | version = "3.0.2" 200 | source = { registry = "https://pypi.org/simple" } 201 | sdist = { url = "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0", size = 20537 } 202 | wheels = [ 203 | { url = "https://files.pythonhosted.org/packages/04/90/d08277ce111dd22f77149fd1a5d4653eeb3b3eaacbdfcbae5afb2600eebd/MarkupSafe-3.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7e94c425039cde14257288fd61dcfb01963e658efbc0ff54f5306b06054700f8", size = 14357 }, 204 | { url = "https://files.pythonhosted.org/packages/04/e1/6e2194baeae0bca1fae6629dc0cbbb968d4d941469cbab11a3872edff374/MarkupSafe-3.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9e2d922824181480953426608b81967de705c3cef4d1af983af849d7bd619158", size = 12393 }, 205 | { url = "https://files.pythonhosted.org/packages/1d/69/35fa85a8ece0a437493dc61ce0bb6d459dcba482c34197e3efc829aa357f/MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:38a9ef736c01fccdd6600705b09dc574584b89bea478200c5fbf112a6b0d5579", size = 21732 }, 206 | { url = "https://files.pythonhosted.org/packages/22/35/137da042dfb4720b638d2937c38a9c2df83fe32d20e8c8f3185dbfef05f7/MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bbcb445fa71794da8f178f0f6d66789a28d7319071af7a496d4d507ed566270d", size = 20866 }, 207 | { url = "https://files.pythonhosted.org/packages/29/28/6d029a903727a1b62edb51863232152fd335d602def598dade38996887f0/MarkupSafe-3.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:57cb5a3cf367aeb1d316576250f65edec5bb3be939e9247ae594b4bcbc317dfb", size = 20964 }, 208 | { url = "https://files.pythonhosted.org/packages/cc/cd/07438f95f83e8bc028279909d9c9bd39e24149b0d60053a97b2bc4f8aa51/MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3809ede931876f5b2ec92eef964286840ed3540dadf803dd570c3b7e13141a3b", size = 21977 }, 209 | { url = "https://files.pythonhosted.org/packages/29/01/84b57395b4cc062f9c4c55ce0df7d3108ca32397299d9df00fedd9117d3d/MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e07c3764494e3776c602c1e78e298937c3315ccc9043ead7e685b7f2b8d47b3c", size = 21366 }, 210 | { url = "https://files.pythonhosted.org/packages/bd/6e/61ebf08d8940553afff20d1fb1ba7294b6f8d279df9fd0c0db911b4bbcfd/MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b424c77b206d63d500bcb69fa55ed8d0e6a3774056bdc4839fc9298a7edca171", size = 21091 }, 211 | { url = "https://files.pythonhosted.org/packages/11/23/ffbf53694e8c94ebd1e7e491de185124277964344733c45481f32ede2499/MarkupSafe-3.0.2-cp310-cp310-win32.whl", hash = "sha256:fcabf5ff6eea076f859677f5f0b6b5c1a51e70a376b0579e0eadef8db48c6b50", size = 15065 }, 212 | { url = "https://files.pythonhosted.org/packages/44/06/e7175d06dd6e9172d4a69a72592cb3f7a996a9c396eee29082826449bbc3/MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:6af100e168aa82a50e186c82875a5893c5597a0c1ccdb0d8b40240b1f28b969a", size = 15514 }, 213 | { url = "https://files.pythonhosted.org/packages/6b/28/bbf83e3f76936960b850435576dd5e67034e200469571be53f69174a2dfd/MarkupSafe-3.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9025b4018f3a1314059769c7bf15441064b2207cb3f065e6ea1e7359cb46db9d", size = 14353 }, 214 | { url = "https://files.pythonhosted.org/packages/6c/30/316d194b093cde57d448a4c3209f22e3046c5bb2fb0820b118292b334be7/MarkupSafe-3.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:93335ca3812df2f366e80509ae119189886b0f3c2b81325d39efdb84a1e2ae93", size = 12392 }, 215 | { url = "https://files.pythonhosted.org/packages/f2/96/9cdafba8445d3a53cae530aaf83c38ec64c4d5427d975c974084af5bc5d2/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8438c3cbb25e220c2ab33bb226559e7afb3baec11c4f218ffa7308603c832", size = 23984 }, 216 | { url = "https://files.pythonhosted.org/packages/f1/a4/aefb044a2cd8d7334c8a47d3fb2c9f328ac48cb349468cc31c20b539305f/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a123e330ef0853c6e822384873bef7507557d8e4a082961e1defa947aa59ba84", size = 23120 }, 217 | { url = "https://files.pythonhosted.org/packages/8d/21/5e4851379f88f3fad1de30361db501300d4f07bcad047d3cb0449fc51f8c/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e084f686b92e5b83186b07e8a17fc09e38fff551f3602b249881fec658d3eca", size = 23032 }, 218 | { url = "https://files.pythonhosted.org/packages/00/7b/e92c64e079b2d0d7ddf69899c98842f3f9a60a1ae72657c89ce2655c999d/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d8213e09c917a951de9d09ecee036d5c7d36cb6cb7dbaece4c71a60d79fb9798", size = 24057 }, 219 | { url = "https://files.pythonhosted.org/packages/f9/ac/46f960ca323037caa0a10662ef97d0a4728e890334fc156b9f9e52bcc4ca/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5b02fb34468b6aaa40dfc198d813a641e3a63b98c2b05a16b9f80b7ec314185e", size = 23359 }, 220 | { url = "https://files.pythonhosted.org/packages/69/84/83439e16197337b8b14b6a5b9c2105fff81d42c2a7c5b58ac7b62ee2c3b1/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4", size = 23306 }, 221 | { url = "https://files.pythonhosted.org/packages/9a/34/a15aa69f01e2181ed8d2b685c0d2f6655d5cca2c4db0ddea775e631918cd/MarkupSafe-3.0.2-cp311-cp311-win32.whl", hash = "sha256:6c89876f41da747c8d3677a2b540fb32ef5715f97b66eeb0c6b66f5e3ef6f59d", size = 15094 }, 222 | { url = "https://files.pythonhosted.org/packages/da/b8/3a3bd761922d416f3dc5d00bfbed11f66b1ab89a0c2b6e887240a30b0f6b/MarkupSafe-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:70a87b411535ccad5ef2f1df5136506a10775d267e197e4cf531ced10537bd6b", size = 15521 }, 223 | { url = "https://files.pythonhosted.org/packages/22/09/d1f21434c97fc42f09d290cbb6350d44eb12f09cc62c9476effdb33a18aa/MarkupSafe-3.0.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:9778bd8ab0a994ebf6f84c2b949e65736d5575320a17ae8984a77fab08db94cf", size = 14274 }, 224 | { url = "https://files.pythonhosted.org/packages/6b/b0/18f76bba336fa5aecf79d45dcd6c806c280ec44538b3c13671d49099fdd0/MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:846ade7b71e3536c4e56b386c2a47adf5741d2d8b94ec9dc3e92e5e1ee1e2225", size = 12348 }, 225 | { url = "https://files.pythonhosted.org/packages/e0/25/dd5c0f6ac1311e9b40f4af06c78efde0f3b5cbf02502f8ef9501294c425b/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c99d261bd2d5f6b59325c92c73df481e05e57f19837bdca8413b9eac4bd8028", size = 24149 }, 226 | { url = "https://files.pythonhosted.org/packages/f3/f0/89e7aadfb3749d0f52234a0c8c7867877876e0a20b60e2188e9850794c17/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e17c96c14e19278594aa4841ec148115f9c7615a47382ecb6b82bd8fea3ab0c8", size = 23118 }, 227 | { url = "https://files.pythonhosted.org/packages/d5/da/f2eeb64c723f5e3777bc081da884b414671982008c47dcc1873d81f625b6/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:88416bd1e65dcea10bc7569faacb2c20ce071dd1f87539ca2ab364bf6231393c", size = 22993 }, 228 | { url = "https://files.pythonhosted.org/packages/da/0e/1f32af846df486dce7c227fe0f2398dc7e2e51d4a370508281f3c1c5cddc/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2181e67807fc2fa785d0592dc2d6206c019b9502410671cc905d132a92866557", size = 24178 }, 229 | { url = "https://files.pythonhosted.org/packages/c4/f6/bb3ca0532de8086cbff5f06d137064c8410d10779c4c127e0e47d17c0b71/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:52305740fe773d09cffb16f8ed0427942901f00adedac82ec8b67752f58a1b22", size = 23319 }, 230 | { url = "https://files.pythonhosted.org/packages/a2/82/8be4c96ffee03c5b4a034e60a31294daf481e12c7c43ab8e34a1453ee48b/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad10d3ded218f1039f11a75f8091880239651b52e9bb592ca27de44eed242a48", size = 23352 }, 231 | { url = "https://files.pythonhosted.org/packages/51/ae/97827349d3fcffee7e184bdf7f41cd6b88d9919c80f0263ba7acd1bbcb18/MarkupSafe-3.0.2-cp312-cp312-win32.whl", hash = "sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30", size = 15097 }, 232 | { url = "https://files.pythonhosted.org/packages/c1/80/a61f99dc3a936413c3ee4e1eecac96c0da5ed07ad56fd975f1a9da5bc630/MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:8e06879fc22a25ca47312fbe7c8264eb0b662f6db27cb2d3bbbc74b1df4b9b87", size = 15601 }, 233 | { url = "https://files.pythonhosted.org/packages/83/0e/67eb10a7ecc77a0c2bbe2b0235765b98d164d81600746914bebada795e97/MarkupSafe-3.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ba9527cdd4c926ed0760bc301f6728ef34d841f405abf9d4f959c478421e4efd", size = 14274 }, 234 | { url = "https://files.pythonhosted.org/packages/2b/6d/9409f3684d3335375d04e5f05744dfe7e9f120062c9857df4ab490a1031a/MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8b3d067f2e40fe93e1ccdd6b2e1d16c43140e76f02fb1319a05cf2b79d99430", size = 12352 }, 235 | { url = "https://files.pythonhosted.org/packages/d2/f5/6eadfcd3885ea85fe2a7c128315cc1bb7241e1987443d78c8fe712d03091/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569511d3b58c8791ab4c2e1285575265991e6d8f8700c7be0e88f86cb0672094", size = 24122 }, 236 | { url = "https://files.pythonhosted.org/packages/0c/91/96cf928db8236f1bfab6ce15ad070dfdd02ed88261c2afafd4b43575e9e9/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15ab75ef81add55874e7ab7055e9c397312385bd9ced94920f2802310c930396", size = 23085 }, 237 | { url = "https://files.pythonhosted.org/packages/c2/cf/c9d56af24d56ea04daae7ac0940232d31d5a8354f2b457c6d856b2057d69/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3818cb119498c0678015754eba762e0d61e5b52d34c8b13d770f0719f7b1d79", size = 22978 }, 238 | { url = "https://files.pythonhosted.org/packages/2a/9f/8619835cd6a711d6272d62abb78c033bda638fdc54c4e7f4272cf1c0962b/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cdb82a876c47801bb54a690c5ae105a46b392ac6099881cdfb9f6e95e4014c6a", size = 24208 }, 239 | { url = "https://files.pythonhosted.org/packages/f9/bf/176950a1792b2cd2102b8ffeb5133e1ed984547b75db47c25a67d3359f77/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cabc348d87e913db6ab4aa100f01b08f481097838bdddf7c7a84b7575b7309ca", size = 23357 }, 240 | { url = "https://files.pythonhosted.org/packages/ce/4f/9a02c1d335caabe5c4efb90e1b6e8ee944aa245c1aaaab8e8a618987d816/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:444dcda765c8a838eaae23112db52f1efaf750daddb2d9ca300bcae1039adc5c", size = 23344 }, 241 | { url = "https://files.pythonhosted.org/packages/ee/55/c271b57db36f748f0e04a759ace9f8f759ccf22b4960c270c78a394f58be/MarkupSafe-3.0.2-cp313-cp313-win32.whl", hash = "sha256:bcf3e58998965654fdaff38e58584d8937aa3096ab5354d493c77d1fdd66d7a1", size = 15101 }, 242 | { url = "https://files.pythonhosted.org/packages/29/88/07df22d2dd4df40aba9f3e402e6dc1b8ee86297dddbad4872bd5e7b0094f/MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:e6a2a455bd412959b57a172ce6328d2dd1f01cb2135efda2e4576e8a23fa3b0f", size = 15603 }, 243 | { url = "https://files.pythonhosted.org/packages/62/6a/8b89d24db2d32d433dffcd6a8779159da109842434f1dd2f6e71f32f738c/MarkupSafe-3.0.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b5a6b3ada725cea8a5e634536b1b01c30bcdcd7f9c6fff4151548d5bf6b3a36c", size = 14510 }, 244 | { url = "https://files.pythonhosted.org/packages/7a/06/a10f955f70a2e5a9bf78d11a161029d278eeacbd35ef806c3fd17b13060d/MarkupSafe-3.0.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a904af0a6162c73e3edcb969eeeb53a63ceeb5d8cf642fade7d39e7963a22ddb", size = 12486 }, 245 | { url = "https://files.pythonhosted.org/packages/34/cf/65d4a571869a1a9078198ca28f39fba5fbb910f952f9dbc5220afff9f5e6/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa4e5faecf353ed117801a068ebab7b7e09ffb6e1d5e412dc852e0da018126c", size = 25480 }, 246 | { url = "https://files.pythonhosted.org/packages/0c/e3/90e9651924c430b885468b56b3d597cabf6d72be4b24a0acd1fa0e12af67/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0ef13eaeee5b615fb07c9a7dadb38eac06a0608b41570d8ade51c56539e509d", size = 23914 }, 247 | { url = "https://files.pythonhosted.org/packages/66/8c/6c7cf61f95d63bb866db39085150df1f2a5bd3335298f14a66b48e92659c/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d16a81a06776313e817c951135cf7340a3e91e8c1ff2fac444cfd75fffa04afe", size = 23796 }, 248 | { url = "https://files.pythonhosted.org/packages/bb/35/cbe9238ec3f47ac9a7c8b3df7a808e7cb50fe149dc7039f5f454b3fba218/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6381026f158fdb7c72a168278597a5e3a5222e83ea18f543112b2662a9b699c5", size = 25473 }, 249 | { url = "https://files.pythonhosted.org/packages/e6/32/7621a4382488aa283cc05e8984a9c219abad3bca087be9ec77e89939ded9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a", size = 24114 }, 250 | { url = "https://files.pythonhosted.org/packages/0d/80/0985960e4b89922cb5a0bac0ed39c5b96cbc1a536a99f30e8c220a996ed9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9", size = 24098 }, 251 | { url = "https://files.pythonhosted.org/packages/82/78/fedb03c7d5380df2427038ec8d973587e90561b2d90cd472ce9254cf348b/MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6", size = 15208 }, 252 | { url = "https://files.pythonhosted.org/packages/4f/65/6079a46068dfceaeabb5dcad6d674f5f5c61a6fa5673746f42a9f4c233b3/MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f", size = 15739 }, 253 | { url = "https://files.pythonhosted.org/packages/a7/ea/9b1530c3fdeeca613faeb0fb5cbcf2389d816072fab72a71b45749ef6062/MarkupSafe-3.0.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:eaa0a10b7f72326f1372a713e73c3f739b524b3af41feb43e4921cb529f5929a", size = 14344 }, 254 | { url = "https://files.pythonhosted.org/packages/4b/c2/fbdbfe48848e7112ab05e627e718e854d20192b674952d9042ebd8c9e5de/MarkupSafe-3.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:48032821bbdf20f5799ff537c7ac3d1fba0ba032cfc06194faffa8cda8b560ff", size = 12389 }, 255 | { url = "https://files.pythonhosted.org/packages/f0/25/7a7c6e4dbd4f867d95d94ca15449e91e52856f6ed1905d58ef1de5e211d0/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a9d3f5f0901fdec14d8d2f66ef7d035f2157240a433441719ac9a3fba440b13", size = 21607 }, 256 | { url = "https://files.pythonhosted.org/packages/53/8f/f339c98a178f3c1e545622206b40986a4c3307fe39f70ccd3d9df9a9e425/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88b49a3b9ff31e19998750c38e030fc7bb937398b1f78cfa599aaef92d693144", size = 20728 }, 257 | { url = "https://files.pythonhosted.org/packages/1a/03/8496a1a78308456dbd50b23a385c69b41f2e9661c67ea1329849a598a8f9/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cfad01eed2c2e0c01fd0ecd2ef42c492f7f93902e39a42fc9ee1692961443a29", size = 20826 }, 258 | { url = "https://files.pythonhosted.org/packages/e6/cf/0a490a4bd363048c3022f2f475c8c05582179bb179defcee4766fb3dcc18/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:1225beacc926f536dc82e45f8a4d68502949dc67eea90eab715dea3a21c1b5f0", size = 21843 }, 259 | { url = "https://files.pythonhosted.org/packages/19/a3/34187a78613920dfd3cdf68ef6ce5e99c4f3417f035694074beb8848cd77/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:3169b1eefae027567d1ce6ee7cae382c57fe26e82775f460f0b2778beaad66c0", size = 21219 }, 260 | { url = "https://files.pythonhosted.org/packages/17/d8/5811082f85bb88410ad7e452263af048d685669bbbfb7b595e8689152498/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:eb7972a85c54febfb25b5c4b4f3af4dcc731994c7da0d8a0b4a6eb0640e1d178", size = 20946 }, 261 | { url = "https://files.pythonhosted.org/packages/7c/31/bd635fb5989440d9365c5e3c47556cfea121c7803f5034ac843e8f37c2f2/MarkupSafe-3.0.2-cp39-cp39-win32.whl", hash = "sha256:8c4e8c3ce11e1f92f6536ff07154f9d49677ebaaafc32db9db4620bc11ed480f", size = 15063 }, 262 | { url = "https://files.pythonhosted.org/packages/b3/73/085399401383ce949f727afec55ec3abd76648d04b9f22e1c0e99cb4bec3/MarkupSafe-3.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:6e296a513ca3d94054c2c881cc913116e90fd030ad1c656b3869762b754f5f8a", size = 15506 }, 263 | ] 264 | 265 | [[package]] 266 | name = "packaging" 267 | version = "24.2" 268 | source = { registry = "https://pypi.org/simple" } 269 | sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950 } 270 | wheels = [ 271 | { url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451 }, 272 | ] 273 | 274 | [[package]] 275 | name = "pathspec" 276 | version = "0.12.1" 277 | source = { registry = "https://pypi.org/simple" } 278 | sdist = { url = "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712", size = 51043 } 279 | wheels = [ 280 | { url = "https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08", size = 31191 }, 281 | ] 282 | 283 | [[package]] 284 | name = "platformdirs" 285 | version = "4.3.7" 286 | source = { registry = "https://pypi.org/simple" } 287 | sdist = { url = "https://files.pythonhosted.org/packages/b6/2d/7d512a3913d60623e7eb945c6d1b4f0bddf1d0b7ada5225274c87e5b53d1/platformdirs-4.3.7.tar.gz", hash = "sha256:eb437d586b6a0986388f0d6f74aa0cde27b48d0e3d66843640bfb6bdcdb6e351", size = 21291 } 288 | wheels = [ 289 | { url = "https://files.pythonhosted.org/packages/6d/45/59578566b3275b8fd9157885918fcd0c4d74162928a5310926887b856a51/platformdirs-4.3.7-py3-none-any.whl", hash = "sha256:a03875334331946f13c549dbd8f4bac7a13a50a895a0eb1e8c6a8ace80d40a94", size = 18499 }, 290 | ] 291 | 292 | [[package]] 293 | name = "pluggy" 294 | version = "1.5.0" 295 | source = { registry = "https://pypi.org/simple" } 296 | sdist = { url = "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1", size = 67955 } 297 | wheels = [ 298 | { url = "https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669", size = 20556 }, 299 | ] 300 | 301 | [[package]] 302 | name = "pqcrypto" 303 | version = "0.3.1" 304 | source = { editable = "." } 305 | 306 | [package.dev-dependencies] 307 | dev = [ 308 | { name = "cffi" }, 309 | { name = "cibuildwheel" }, 310 | { name = "hatchling" }, 311 | { name = "jinja2" }, 312 | { name = "pytest" }, 313 | { name = "setuptools" }, 314 | ] 315 | 316 | [package.metadata] 317 | 318 | [package.metadata.requires-dev] 319 | dev = [ 320 | { name = "cffi", specifier = ">=1.17.1" }, 321 | { name = "cibuildwheel", specifier = ">=2.23.2" }, 322 | { name = "hatchling", specifier = ">=1.27.0" }, 323 | { name = "jinja2", specifier = ">=3.1.6" }, 324 | { name = "pytest", specifier = ">=8.3.5" }, 325 | { name = "setuptools", specifier = ">=78.1.0" }, 326 | ] 327 | 328 | [[package]] 329 | name = "pycparser" 330 | version = "2.22" 331 | source = { registry = "https://pypi.org/simple" } 332 | sdist = { url = "https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6", size = 172736 } 333 | wheels = [ 334 | { url = "https://files.pythonhosted.org/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc", size = 117552 }, 335 | ] 336 | 337 | [[package]] 338 | name = "pytest" 339 | version = "8.3.5" 340 | source = { registry = "https://pypi.org/simple" } 341 | dependencies = [ 342 | { name = "colorama", marker = "sys_platform == 'win32'" }, 343 | { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, 344 | { name = "iniconfig" }, 345 | { name = "packaging" }, 346 | { name = "pluggy" }, 347 | { name = "tomli", marker = "python_full_version < '3.11'" }, 348 | ] 349 | sdist = { url = "https://files.pythonhosted.org/packages/ae/3c/c9d525a414d506893f0cd8a8d0de7706446213181570cdbd766691164e40/pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845", size = 1450891 } 350 | wheels = [ 351 | { url = "https://files.pythonhosted.org/packages/30/3d/64ad57c803f1fa1e963a7946b6e0fea4a70df53c1a7fed304586539c2bac/pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820", size = 343634 }, 352 | ] 353 | 354 | [[package]] 355 | name = "setuptools" 356 | version = "78.1.0" 357 | source = { registry = "https://pypi.org/simple" } 358 | sdist = { url = "https://files.pythonhosted.org/packages/a9/5a/0db4da3bc908df06e5efae42b44e75c81dd52716e10192ff36d0c1c8e379/setuptools-78.1.0.tar.gz", hash = "sha256:18fd474d4a82a5f83dac888df697af65afa82dec7323d09c3e37d1f14288da54", size = 1367827 } 359 | wheels = [ 360 | { url = "https://files.pythonhosted.org/packages/54/21/f43f0a1fa8b06b32812e0975981f4677d28e0f3271601dc88ac5a5b83220/setuptools-78.1.0-py3-none-any.whl", hash = "sha256:3e386e96793c8702ae83d17b853fb93d3e09ef82ec62722e61da5cd22376dcd8", size = 1256108 }, 361 | ] 362 | 363 | [[package]] 364 | name = "tomli" 365 | version = "2.2.1" 366 | source = { registry = "https://pypi.org/simple" } 367 | sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175 } 368 | wheels = [ 369 | { url = "https://files.pythonhosted.org/packages/43/ca/75707e6efa2b37c77dadb324ae7d9571cb424e61ea73fad7c56c2d14527f/tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249", size = 131077 }, 370 | { url = "https://files.pythonhosted.org/packages/c7/16/51ae563a8615d472fdbffc43a3f3d46588c264ac4f024f63f01283becfbb/tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6", size = 123429 }, 371 | { url = "https://files.pythonhosted.org/packages/f1/dd/4f6cd1e7b160041db83c694abc78e100473c15d54620083dbd5aae7b990e/tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a", size = 226067 }, 372 | { url = "https://files.pythonhosted.org/packages/a9/6b/c54ede5dc70d648cc6361eaf429304b02f2871a345bbdd51e993d6cdf550/tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee", size = 236030 }, 373 | { url = "https://files.pythonhosted.org/packages/1f/47/999514fa49cfaf7a92c805a86c3c43f4215621855d151b61c602abb38091/tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e", size = 240898 }, 374 | { url = "https://files.pythonhosted.org/packages/73/41/0a01279a7ae09ee1573b423318e7934674ce06eb33f50936655071d81a24/tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4", size = 229894 }, 375 | { url = "https://files.pythonhosted.org/packages/55/18/5d8bc5b0a0362311ce4d18830a5d28943667599a60d20118074ea1b01bb7/tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106", size = 245319 }, 376 | { url = "https://files.pythonhosted.org/packages/92/a3/7ade0576d17f3cdf5ff44d61390d4b3febb8a9fc2b480c75c47ea048c646/tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8", size = 238273 }, 377 | { url = "https://files.pythonhosted.org/packages/72/6f/fa64ef058ac1446a1e51110c375339b3ec6be245af9d14c87c4a6412dd32/tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff", size = 98310 }, 378 | { url = "https://files.pythonhosted.org/packages/6a/1c/4a2dcde4a51b81be3530565e92eda625d94dafb46dbeb15069df4caffc34/tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b", size = 108309 }, 379 | { url = "https://files.pythonhosted.org/packages/52/e1/f8af4c2fcde17500422858155aeb0d7e93477a0d59a98e56cbfe75070fd0/tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea", size = 132762 }, 380 | { url = "https://files.pythonhosted.org/packages/03/b8/152c68bb84fc00396b83e7bbddd5ec0bd3dd409db4195e2a9b3e398ad2e3/tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8", size = 123453 }, 381 | { url = "https://files.pythonhosted.org/packages/c8/d6/fc9267af9166f79ac528ff7e8c55c8181ded34eb4b0e93daa767b8841573/tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192", size = 233486 }, 382 | { url = "https://files.pythonhosted.org/packages/5c/51/51c3f2884d7bab89af25f678447ea7d297b53b5a3b5730a7cb2ef6069f07/tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222", size = 242349 }, 383 | { url = "https://files.pythonhosted.org/packages/ab/df/bfa89627d13a5cc22402e441e8a931ef2108403db390ff3345c05253935e/tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77", size = 252159 }, 384 | { url = "https://files.pythonhosted.org/packages/9e/6e/fa2b916dced65763a5168c6ccb91066f7639bdc88b48adda990db10c8c0b/tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6", size = 237243 }, 385 | { url = "https://files.pythonhosted.org/packages/b4/04/885d3b1f650e1153cbb93a6a9782c58a972b94ea4483ae4ac5cedd5e4a09/tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd", size = 259645 }, 386 | { url = "https://files.pythonhosted.org/packages/9c/de/6b432d66e986e501586da298e28ebeefd3edc2c780f3ad73d22566034239/tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e", size = 244584 }, 387 | { url = "https://files.pythonhosted.org/packages/1c/9a/47c0449b98e6e7d1be6cbac02f93dd79003234ddc4aaab6ba07a9a7482e2/tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98", size = 98875 }, 388 | { url = "https://files.pythonhosted.org/packages/ef/60/9b9638f081c6f1261e2688bd487625cd1e660d0a85bd469e91d8db969734/tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4", size = 109418 }, 389 | { url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708 }, 390 | { url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582 }, 391 | { url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543 }, 392 | { url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691 }, 393 | { url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170 }, 394 | { url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530 }, 395 | { url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666 }, 396 | { url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954 }, 397 | { url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724 }, 398 | { url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383 }, 399 | { url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257 }, 400 | ] 401 | 402 | [[package]] 403 | name = "trove-classifiers" 404 | version = "2025.3.19.19" 405 | source = { registry = "https://pypi.org/simple" } 406 | sdist = { url = "https://files.pythonhosted.org/packages/23/c6/1bc495f33ab4cd16c1044bde55d5ac76646c6c759df751218c7c2aeb3bba/trove_classifiers-2025.3.19.19.tar.gz", hash = "sha256:98e9d396fe908d5f43b7454fa4c43d17cd0fdadf046f45fb38a5e3af8d959ecd", size = 16280 } 407 | wheels = [ 408 | { url = "https://files.pythonhosted.org/packages/40/f8/9c6d334002e7b4ff34a875d2f6fe76c6c1544bd7fde3e39cb7cd2593488f/trove_classifiers-2025.3.19.19-py3-none-any.whl", hash = "sha256:5fc02770ecd81588a605ac98b9d85d50a5a3f9daa30af2a6b1361a1999d75d07", size = 13678 }, 409 | ] 410 | 411 | [[package]] 412 | name = "typing-extensions" 413 | version = "4.13.2" 414 | source = { registry = "https://pypi.org/simple" } 415 | sdist = { url = "https://files.pythonhosted.org/packages/f6/37/23083fcd6e35492953e8d2aaaa68b860eb422b34627b13f2ce3eb6106061/typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef", size = 106967 } 416 | wheels = [ 417 | { url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806 }, 418 | ] 419 | --------------------------------------------------------------------------------