Simple and univirsal library for authorization.
Project description
Jam
Documentation: jam.makridenko.ru
Install
pip install jamlib
Getting start
# -*- coding: utf-8 -*-
from jam import Jam
from jam.utils import make_jwt_config
config = make_jwt_config(
alg="HS256",
secret_key="some-key",
expire=36000,
)
jam = Jam(auth_type="jwt", config=config)
token = jam.gen_jwt_token({"user_id": 1})
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-1.1.4.tar.gz
(14.0 kB
view details)
Built Distribution
jamlib-1.1.4-py3-none-any.whl
(21.9 kB
view details)
File details
Details for the file jamlib-1.1.4.tar.gz
.
File metadata
- Download URL: jamlib-1.1.4.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
94694077c43e981e54af35cece0cd2f6a07e1a104efff44a36e646a469e3f763
|
|
MD5 |
5f70cf2c223f3a109637cc6f3d6e726b
|
|
BLAKE2b-256 |
de0e894d2889567a6133c8cab2183f5ff0ca021d97db444cdc5c4ae350dd2a2c
|
File details
Details for the file jamlib-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: jamlib-1.1.4-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d3177a4a5657c62d42ab1203f5205887c6b0953a0f6cf13d7b8f5f6925d817cc
|
|
MD5 |
2e70cadf4d5f25ad3f73b18d271f9ab9
|
|
BLAKE2b-256 |
7064baef40c691ab99430fcf98ed0b1e7d4b9b5c3402b7d531bd764cb3dec5af
|