Simple and univirsal library for authorization.
Project description
Jam
Install
pip install jamlib
Getting start
# -*- coding: utf-8 -*-
from typing import Any
from jam import Jam
config: dict[str, Any] = {
"jwt_secret_key": "some-secret",
"expire": 3600
}
data = {
"user_id": 1,
"role": "admin"
}
jam = Jam(auth_type="jwt", config=config)
payload = jam.make_payload(**data)
token = jam.gen_jwt_token(**payload)
Roadmap
© Adrian Makridenko 2025
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
jamlib-0.0.0.tar.gz
(9.8 kB
view details)
Built Distribution
jamlib-0.0.0-py3-none-any.whl
(12.9 kB
view details)
File details
Details for the file jamlib-0.0.0.tar.gz
.
File metadata
- Download URL: jamlib-0.0.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1415c64c3fb848de5189aa5eabb826482e5c8622c442045e73a48a19d615a25d
|
|
MD5 |
7e8bb800f978e86e1de2e8dc1a86a152
|
|
BLAKE2b-256 |
d81b871255339cbd87e062ed7ae53c48a242fdfed8655eaf09f0bcb8eaef99bf
|
File details
Details for the file jamlib-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: jamlib-0.0.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
58b439ea05fc2433ba5eb27f3714ce384e84d6ac1dc1358b3f35600eb1d1baa4
|
|
MD5 |
e6a8a34d9f7b87c8d5f3ac684430b64d
|
|
BLAKE2b-256 |
e94e04260425306ea55ce249fbfaf9aa5999d1b6def7e550087813f1fbc36dcf
|