Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Jam

logo

Python Version PyPI - Version PyPI Downloads tests Ask DeepWiki GitHub License

Jam (Jam Auth Module) - A universal auth* combine that provides popular auth mechanisms strictly according to the specification.

Install

pip install jamlib

Quick example

from jam import Jam

jam = Jam(config="config.toml")

jwt = jam.jwt_encode(payload={"user": 1})
session_id = jam.session_create(session_key="username", data={"user": 1})
otp_code = jam.otp_code(secret="3DB7FOAOFBCI3WFDRE7EPF43CA")

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
JOSE ❌ only JWT ❌ only JWT
JWT black/white lists
PASETO
Server side sessions
OTP
OAuth2
SAML 2.0
Flexible config
Modularity

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jamlib-4.0.0b0.tar.gz (108.5 kB view details)

Uploaded Source

Built Distribution

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

jamlib-4.0.0b0-py3-none-any.whl (154.2 kB view details)

Uploaded Python 3

File details

Details for the file jamlib-4.0.0b0.tar.gz.

File metadata

  • Download URL: jamlib-4.0.0b0.tar.gz
  • Upload date:
  • Size: 108.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jamlib-4.0.0b0.tar.gz
Algorithm Hash digest
SHA256 d8590516f9d3b8189630496a9ad2dd1cdc178d6fba5fd62838305c33b60c7a6c
MD5 6b3a6fc0f90055d7081abd018a611e5f
BLAKE2b-256 a5fe3cdd83bcaaef8793ed6bdb4330a3f020644b8c100208ba541b029fe28ade

See more details on using hashes here.

File details

Details for the file jamlib-4.0.0b0-py3-none-any.whl.

File metadata

  • Download URL: jamlib-4.0.0b0-py3-none-any.whl
  • Upload date:
  • Size: 154.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jamlib-4.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fc0e28aaa715a6d14896c53b0f932f5815ce4392f8e0fb11aebdcafb6f884d2
MD5 1d8528dbd41c21d8066ef01446b3650c
BLAKE2b-256 706dc9d34a841067a5f276856a7a059e214f78c1eef3d05507d9d8254f27345d

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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