Skip to main content

Simple and universal library for authorization.

Project description

Jam

logo

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

Install

pip install jamlib

Quick example

from jam import Jam

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

jwt = jam.jwt_create({"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
JWT
JWT black/white lists
PASETO
Server side sessions
OTP
OAuth2
Flexible config
Modularity

Project details


Release history Release notifications | RSS feed

This version

3.1.1

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.1.1.tar.gz (70.3 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.1.1-py3-none-any.whl (108.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jamlib-3.1.1.tar.gz
  • Upload date:
  • Size: 70.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","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-3.1.1.tar.gz
Algorithm Hash digest
SHA256 62ad41da01c180c6b922ddaa5f5823250c06047610b0c3839bc54d2c366ff775
MD5 a467b891ac69c4ac83ef3c46da98e111
BLAKE2b-256 f442c612851c1765fd0a0c1d2f09158b4fda01aae677d2b77999ce4e938bcf63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jamlib-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 108.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","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-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f60babd9b0e9c9c93ec9cc07edc19142acbe78017b3e178e588c114173b1f4f
MD5 4d35cc6b5036822ee6379d2c9dccc1f3
BLAKE2b-256 30bedabf27fb7167fab6a073081403d0e7a6a61b0ce17236cfd363709e2e34a9

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