Files
purepycrypto/pyproject.toml
T
dvs 0d69391aa9 Release v3.2.0: pure-Python cryptography library (English docs/comments/errors)
- Zero-dependency pure-Python cryptography: SHA-2 / SHA-3 / SHAKE / BLAKE2b,
  HMAC, PBKDF2 / HKDF / scrypt / Argon2id, AES (ECB/CBC/CTR/CFB/OFB/GCM),
  AES-GCM-SIV, ChaCha20-Poly1305 / XChaCha20-Poly1305, X25519, Ed25519,
  RSA (keygen / OAEP / PSS / PEM), ASN.1 DER
- Unified error system: PPYC_ERR fatal exception vs (code, message, suggestion)
  non-fatal 3-tuple return
- Interactive TUI (Chinese / English i18n) + non-interactive CLI
- v3.2.0 adds the encoding, rand and kdf2 modules
- Documentation, code comments and error messages fully in English;
  the interactive TUI keeps its Chinese interface
- Tests: RFC / FIPS / NIST test vectors, 639 passing
2026-09-27 09:40:12 +08:00

87 lines
3.0 KiB
TOML

[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "purepycrypto"
version = "3.2.0"
description = "Pure-Python cryptography library (zero dependencies): SHA-2/SHA-3/BLAKE2b, AES-GCM(-SIV), ChaCha20-Poly1305, X25519/Ed25519, RSA-OAEP/PSS, with built-in TUI and command-line tool"
readme = "README.md"
requires-python = ">=3.7"
license = { text = "MIT" }
authors = [
{ name = "Dvs(DvsXT)", email = "dvs6666@163.com" },
]
keywords = [
"cryptography", "crypto", "pure-python", "aes", "aes-gcm", "aes-gcm-siv",
"chacha20", "poly1305", "x25519", "ed25519", "rsa", "oaep", "pss",
"sha256", "sha512", "sha3", "keccak", "shake", "blake2b",
"argon2", "scrypt", "hkdf", "pbkdf2", "hmac", "cli", "tui",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = []
[project.optional-dependencies]
test = ["pytest>=7.0"]
dev = ["pytest>=7.0", "build", "twine"]
# Cross-verification / comparison (optional; test-only, not a runtime dependency)
compare = ["pycryptodome", "cryptography>=45"]
[project.urls]
Homepage = "https://apds.top"
Documentation = "https://apds.top"
Source = "https://apds.top"
[project.scripts]
# ----------------------------------------------------------------------
# Executable command (installed into Python's Scripts directory)
# ----------------------------------------------------------------------
# Register only ONE command, `purepycrypto`, targeting `purepycrypto:main`:
# * no arguments -> launch the interactive TUI
# * with arguments -> command-line mode (hash/aes/rsa/x25519/kdf/...)
#
# After installation it can be used directly:
# purepycrypto # TUI
# purepycrypto hash --text abc --hex # command line
# purepycrypto --help # help
#
# As a library: import purepycrypto
# Without installation, the equivalent is: python -m purepycrypto [subcommand]
purepycrypto = "purepycrypto:main"
[tool.setuptools]
packages = [
"purepycrypto",
"purepycrypto.tests",
"purepycrypto.examples",
"purepycrypto.scripts",
"purepycrypto.single",
]
[tool.setuptools.package-data]
"purepycrypto" = ["py.typed"]
"purepycrypto.tests" = ["vectors/*.json"]
# Single-file bundle (if generated)
"purepycrypto.single" = ["*.py"]
[tool.pytest.ini_options]
testpaths = ["purepycrypto/tests"]
python_files = ["test_*.py"]
addopts = "-v --tb=short"