Skip to main content

Simple and universal library for authorization.

Project description

Jam

logo

Python Version PyPI - Version PyPI Downloads tests GitHub License

Documentation: jam.makridenko.ru

Install

pip install jamlib

Quick example

from jam import Jam

jam = Jam()

jwt = jam.jwt_create_token({"user": 1})
session_id = jam.session_create(session_key="username", data={"user": 1})

Why Jam?

Jam is a library that provides the most popular AUTH* mechanisms right out of the box.

Framework integrations

Jam provides ready-to-use integrations for the most popular frameworks:

Each integration offers built-in middleware or plugin support for JWT and session-based authentication.

Why choose Jam?

Jam supports many authentication methods out of the box with minimal dependencies. Here is a comparison with other libraries:

Features / Library Jam Authx PyJWT AuthLib OTP Auth
JWT
JWT black/white lists
Server side sessions
OTP
OAuth2
PASETO
Flexible config
Modularity

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-3.0.0a5.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jamlib-3.0.0a5-py3-none-any.whl (85.7 kB view details)

Uploaded Python 3

File details

Details for the file jamlib-3.0.0a5.tar.gz.

File metadata

  • Download URL: jamlib-3.0.0a5.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.2

File hashes

Hashes for jamlib-3.0.0a5.tar.gz
Algorithm Hash digest
SHA256 b657a6d0bbf34e3b304c8e018bf7235d4a834d66e2b9ec09b013092a51e0fd5c
MD5 d6b2b51badc5927940633a80e3f44b97
BLAKE2b-256 ca544206a772066b3f8e0ed683399290bfcb7108a0318ff1cfbd2a44a31c0f77

See more details on using hashes here.

File details

Details for the file jamlib-3.0.0a5-py3-none-any.whl.

File metadata

  • Download URL: jamlib-3.0.0a5-py3-none-any.whl
  • Upload date:
  • Size: 85.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.2

File hashes

Hashes for jamlib-3.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 0e369e24c2f4d607ba0ba13cb0469304bf74bd7e3b6768b2d33bf2a00328eb97
MD5 bc1b665be12f97ea190f866854b4ac28
BLAKE2b-256 f2aa9b1fca6ed473e84ab320e524528338dccc7a966eb1c80de1f5a445ad683d

See more details on using hashes here.

Supported by

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