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

Uploaded Source

Built Distribution

jamlib-1.0.4-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jamlib-1.0.4.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.12

File hashes

Hashes for jamlib-1.0.4.tar.gz
Algorithm Hash digest
SHA256 bffc266db994a8264150f2c32989198e97adab608cb53e444ea5af6abbef4f06
MD5 5ac3ed75e42f65badea8ecb99b881777
BLAKE2b-256 c4822d673c64790df0b8ace49750afbbf2fca6bb8890f85cf69ef2f092dd11f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jamlib-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.12

File hashes

Hashes for jamlib-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c867bf2ec0af0404a8b21d763acc68979931de05940f870780f1023143ee9b5c
MD5 fdbd04e035746cae5dfac52b015c8c00
BLAKE2b-256 167558e608997bfb010af9d8273735dc2162ade389e9dff7f4022c0e5fdf1b35

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