core-auth
This project/library contains common elements related to authentication & authorization…
Installation
Install from PyPI using pip:
pip install core-auth
uv pip install core-auth # Or using UV...
Features
JWT Token Wrapper - Simplified interface for JSON Web Token operations
Multiple Cryptographic Algorithms - Support for HMAC (HS256, HS384, HS512), RSA (RS256, RS384, RS512, PS256, PS384, PS512), ECDSA (ES256, ES256K, ES384, ES512), and EdDSA algorithms
Token Encoding - Create JWT tokens with customizable claims, headers, and expiration times
Token Decoding & Validation - Decode and verify JWT tokens with comprehensive validation options (signature, expiration, audience, issuer, etc.)
Authorization Header Parsing - Extract Bearer tokens from HTTP Authorization headers
Public/Private Key Support - Compatible with RSA, Elliptic Curve (EC), Ed25519, and Ed448 key pairs
Custom Claims - Add standardized or custom claims to JWT payloads
Type-Safe - Full type hints support for better IDE integration and code safety
Quick Start
Installation
Install the package:
pip install core-auth
uv pip install core-auth # Or using UV...
pip install -e ".[dev]" # For development...
Setting Up Environment
Install required libraries:
pip install --upgrade pip
pip install virtualenv
Create Python virtual environment:
virtualenv --python=python3.12 .venv
Activate the virtual environment:
source .venv/bin/activate
Install packages
pip install .
pip install -e ".[dev]"
Check tests and coverage
python manager.py run-tests
python manager.py run-coverage
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Write tests for new functionality
Ensure all tests pass: pytest -n auto
Run linting: pylint core_auth
Run security checks: bandit -r core_auth
Submit a pull request
License
This project is licensed under the MIT License. See the LICENSE file for details.
Links
Support
For questions or support, please open an issue on GitLab or contact the maintainers.
Metadata
Release files for core-auth 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| core_auth-1.2.2.tar.gz | 8.7 kB | With provenance | Details for core_auth-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| core_auth-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for core_auth-1.2.2-py3-none-any.whl |
Total release size: 16.5 kB
Release files / core_auth-1.2.2.tar.gz
| Download URL | core_auth-1.2.2.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a5c78dc638e26a298e30e0d81fa3755de319e41e84468f4385103fc2cdd19ca
|
|
BLAKE2b-256 checksum How to use checksums |
77d4909d884f318c5405a5e108691d5b3bb4dab301913c0639991381acb82aaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitLab CI/CD, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / core_auth-1.2.2-py3-none-any.whl
| Download URL | core_auth-1.2.2-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07dec355dc76211a548fadca69252d8516c06bda88847acf724e2ec054377527
|
|
BLAKE2b-256 checksum How to use checksums |
935b70cf74d91d28d4a2a27d048aa042674f25786662f1ee450dc9d9aa315ad1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitLab CI/CD, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for core-auth 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for core_auth-1.2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitLab CI/CD, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.