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
config = {
"auth_type": "jwt",
"secret_key": "secret",
"expire": 3600
}
jam = Jam(config=config)
token = jam.gen_jwt_token({"user_id": 1}) # eyJhbGciOiAiSFMyN...
Roadmap
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-2.0.0.tar.gz
(19.8 kB
view details)
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
jamlib-2.0.0-py3-none-any.whl
(31.0 kB
view details)
File details
Details for the file jamlib-2.0.0.tar.gz.
File metadata
- Download URL: jamlib-2.0.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4291ed9b8f658e08b89e47bf7f9e4115af628c08b5b7b12ec3e0b6d228dcad41
|
|
| MD5 |
19bde00ae9921c8e877d5272fda40ab2
|
|
| BLAKE2b-256 |
7f0f70fdbd4ad786f3f5e3d45afe8cbd316a180f56ca458d61ecb91f3327ec27
|
File details
Details for the file jamlib-2.0.0-py3-none-any.whl.
File metadata
- Download URL: jamlib-2.0.0-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b85e1abf34b1678241788513246c9636ec4dcda3c42f48325e7e569775a8994
|
|
| MD5 |
69f9cd404487cb0291878b686e946e7f
|
|
| BLAKE2b-256 |
8416705aab0349985609f9b3fae7ae4c12a41320ce85d7da23cd312d8fa0b9f7
|