Skip to main content

Simple and univirsal library for authorization.

Project description

Jam

logo

Static Badge tests License

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

Roadmap

© Adrian Makridenko 2025

Project details


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.0.3.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

jamlib-1.0.3-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file jamlib-1.0.3.tar.gz.

File metadata

  • Download URL: jamlib-1.0.3.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for jamlib-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6f6c45f99eb15b522255ad67b05248b4476131aeace2a14f752fcc219ff61202
MD5 be1178309b3d07f417650204627b5442
BLAKE2b-256 438a1af12d86ea4d874c77f2750d9d3aad57c3b87267bc1731772a92ef2f7470

See more details on using hashes here.

File details

Details for the file jamlib-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: jamlib-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for jamlib-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 345bb9fdc5ca7a3032a97ea3aea2d1ff4126be5c830121fbe9779f46d3124740
MD5 ec5e9722c33c1200a0591a1060f62db6
BLAKE2b-256 68901209e63dca2d0f25f143b2f43343139af87469e7961be910e6626b4a2037

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page