Skip to main content

Simple and universal library for authorization.

Project description

Jam

logo

Python Version PyPI - Version PyPI Downloads tests GitHub License

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.0b11.tar.gz (65.9 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.0b11-py3-none-any.whl (99.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jamlib-3.0.0b11.tar.gz
  • Upload date:
  • Size: 65.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jamlib-3.0.0b11.tar.gz
Algorithm Hash digest
SHA256 3ed82a6bde0bbc1c6e110c03b9970289840b91b750522b0eb26242a324a8dc77
MD5 bc5cf71a589b77114cf3c220af5972ba
BLAKE2b-256 1ac64a863bfa603287144c95acf9690fb0100bf3569a520a95ea3460b212fa25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jamlib-3.0.0b11-py3-none-any.whl
  • Upload date:
  • Size: 99.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jamlib-3.0.0b11-py3-none-any.whl
Algorithm Hash digest
SHA256 915b1c898634f0878d00a8eab0db13e52049287523e6e46e9a8aad0aec896b50
MD5 e82195a946648b1610d417991fdd5f99
BLAKE2b-256 b1059a9018a40a687d63f65eddc32aed8d241462f35a8cc922b20a601da3a20e

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