Simple and universal library for authorization.
Project description
Jam
- Documentation: jam.makridenko.ru
- Changelog: CHANGELOG.md
Install
pip install jamlib
Quick example
from jam import Jam
jam = Jam()
jwt = jam.jwt_create_token({"user": 1})
session_id = jam.session_create(session_key="username", data={"user": 1})
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 |
|---|---|---|---|---|---|
| JWT | ✅ | ✅ | ✅ | ✅ | ❌ |
| JWT black/white lists | ✅ | ❌ | ❌ | ❌ | ❌ |
| Server side sessions | ✅ | ✅ | ❌ | ❌ | ❌ |
| OTP | ✅ | ❌ | ❌ | ❌ | ✅ |
| OAuth2 | ✅ | ✅ | ❌ | ✅ | ❌ |
| PASETO | ✅ | ❌ | ❌ | ❌ | ❌ |
| Flexible config | ✅ | ❌ | ❌ | ❌ | ❌ |
| Modularity | ✅ | ❌ | ❌ | ❌ | ❌ |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jamlib-3.0.0b13.dev2.tar.gz.
File metadata
- Download URL: jamlib-3.0.0b13.dev2.tar.gz
- Upload date:
- Size: 67.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ce34886d83070e71dd9377a53b2c1e4d6b092d8b55bd8efb036c741e4c8e996
|
|
| MD5 |
090a20b818a64c4c96d1385478f0fd6d
|
|
| BLAKE2b-256 |
0581ecadcfd21ba3cb3847b9b2283e22bf0a31ba84b9ad5cc942a18093b44aa0
|
File details
Details for the file jamlib-3.0.0b13.dev2-py3-none-any.whl.
File metadata
- Download URL: jamlib-3.0.0b13.dev2-py3-none-any.whl
- Upload date:
- Size: 102.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c5ec2c5f27dcfca1a03823bedf4e2625edacdac333aa7466c945658ab9947f6
|
|
| MD5 |
efb75fa547ef7ffbe48a2f12663f920b
|
|
| BLAKE2b-256 |
82dd2b4585a93aeaee23c2ec622d2016a47628e98cd18820c99f357eda469ad0
|