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

Uploaded Source

Built Distribution

jamlib-1.0.5-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jamlib-1.0.5.tar.gz
Algorithm Hash digest
SHA256 cd2cd64e0604b08ca57c8ea995af25536b9e12bae048a758f3180a406746debd
MD5 19b3a883d4b16652824f0716483c32d3
BLAKE2b-256 0904b0eed456ebc138c0860334aae38479fd2235e5c8b9dea107a886d80d2ce0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jamlib-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fb9a5d5ef5b9e7860feea2315d11e7493963710502ca6e9fe17374349d880f9a
MD5 47753ec19d7201d1ddeb83b0259b2436
BLAKE2b-256 915a64ebd0a7c9cdc18b0421ae89768c1d28e2e7cda3bad56331a48db13140dc

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