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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| core_auth-1.2.1.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| core_auth-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.3 kB
Release files / core_auth-1.2.1.tar.gz
| Download URL | core_auth-1.2.1.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd0f4cce3bc03b8bffd137bd4955f84e1eeb13110496e26d9e80030624cb2516
|
|
BLAKE2b-256 checksum How to use checksums |
f5de78ce1ccb60ee6b8a02e1bb2d5becfceda13058659fd8a1baac08b04cfb28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / core_auth-1.2.1-py3-none-any.whl
| Download URL | core_auth-1.2.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04b0f7d60414b4d9276afb6d9ec684d7c441498126ec6b6c92e835369d070ded
|
|
BLAKE2b-256 checksum How to use checksums |
65c91fc657b717fa3811a776fc4ac021e0b6345fcc43461814b03d37bcca2070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|