This release is a pre-release and may not be stable for production use.
Jam
Jam (Jam Auth Module) - A universal auth* framework that provides popular auth mechanisms strictly according to the specification.
- Documentation: jam.makridenko.ru
- Changelog: CHANGELOG.md
Install
pip install jamlib
Quick example
from jam import Jam
jam = Jam(config="config.toml")
jwt = jam.issue({"id": "user-1"}, via="jwt")
principal = jam.authenticate(jwt)
allowed = jam.authorize(principal, "profile:read")
Why Jam?
Jam is a library that provides the most popular AUTH* mechanisms right out of the box.
Framework integrations
Jam provides ready-to-use integrations for the most popular frameworks:
Each integration offers built-in middleware or plugin support for JWT and session-based authentication.
Why choose Jam?
Jam supports many authentication methods out of the box with minimal dependencies. Here is a comparison with other libraries:
| Features / Library | Jam | Authx | PyJWT | AuthLib | OTP Auth |
|---|---|---|---|---|---|
| JOSE | ✅ | ❌ only JWT | ❌ only JWT | ✅ | ❌ |
| JWT black/white lists | ✅ | ❌ | ❌ | ❌ | ❌ |
| PASETO | ✅ | ❌ | ❌ | ❌ | ❌ |
| Server side sessions | ✅ | ✅ | ❌ | ❌ | ❌ |
| OTP | ✅ | ❌ | ❌ | ❌ | ✅ |
| OAuth2 | ✅ | ✅ | ❌ | ✅ | ❌ |
| SAML 2.0 | ✅ | ❌ | ❌ | ❌ | ❌ |
| Flexible config | ✅ | ❌ | ❌ | ❌ | ❌ |
| Modularity | ✅ | ❌ | ❌ | ❌ | ❌ |
Metadata
Release files for jamlib 4.0.0b5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jamlib-4.0.0b5.tar.gz | 116.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jamlib-4.0.0b5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 281.6 kB
Release files / jamlib-4.0.0b5.tar.gz
| Download URL | jamlib-4.0.0b5.tar.gz |
|---|---|
| Size | 116.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46cbc6f76618c1245de76906a84671e539f01a4724769030a37672b044d5a99f
|
|
BLAKE2b-256 checksum How to use checksums |
1af2fccf8d605fde952a6b5a1df96141e532b96b03d9af4c7a0a87cf5bc07991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / jamlib-4.0.0b5-py3-none-any.whl
| Download URL | jamlib-4.0.0b5-py3-none-any.whl |
|---|---|
| Size | 164.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b03eb594c91b4b9ada34ed0ebc3a8ddffd16ba6357a9ebe721c0643cc061c72a
|
|
BLAKE2b-256 checksum How to use checksums |
eb9af3c3960a8628f3675e7be2bd0b7a26555431eaa129d4994ff07c291f10b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|