Simple and univirsal library for authorization.
Project description
Jam
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.0.tar.gz
(13.5 kB
view details)
Built Distribution
jamlib-1.1.0-py3-none-any.whl
(21.3 kB
view details)
File details
Details for the file jamlib-1.1.0.tar.gz
.
File metadata
- Download URL: jamlib-1.1.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
de7de48b94f56462cef43afd550f9bb478c8fd7a3ecbfe5991953de01103fc03
|
|
MD5 |
eedd2263132d81774d2541870179e302
|
|
BLAKE2b-256 |
9f9c9ab138d44f5aff4e025d1e08a6ced1f8d07148727c18e0a79dad76bf7ce7
|
File details
Details for the file jamlib-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: jamlib-1.1.0-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
59207bbc752e2e2b580810117876f79ee75f952d06e7228edb21f531efe6dd08
|
|
MD5 |
b8042dc2b824245ae894beb307aa89df
|
|
BLAKE2b-256 |
952cb750f24443c5e99f2113c5b5ab615477a6b6526e08e47dfa88307d386418
|