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.2.tar.gz
(13.9 kB
view details)
Built Distribution
jamlib-1.1.2-py3-none-any.whl
(21.9 kB
view details)
File details
Details for the file jamlib-1.1.2.tar.gz
.
File metadata
- Download URL: jamlib-1.1.2.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ccbeda2903c1d2d14fd8ba7dee4329d44df8ed2fe7a79918406fcb4de712c864
|
|
MD5 |
f18a7785007150fec0e8b321637c08b7
|
|
BLAKE2b-256 |
db77eeccbaf7cccbb656d5dd03c5ed571960d07128f9f5f098c44fc6f4598cd6
|
File details
Details for the file jamlib-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: jamlib-1.1.2-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 |
e9df512433d2da61a1431c9b71918a3abdca4cb0091c530749b7869cae0d175f
|
|
MD5 |
5fb4c9789104800ee08cd37713ba2b6b
|
|
BLAKE2b-256 |
01c163d1070a4f2ee9759b3ecc473f1cf09bc43a104f5a8a8da17964bd7eb931
|