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.0b12.tar.gz (66.6 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.0b12-py3-none-any.whl (102.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jamlib-3.0.0b12.tar.gz
  • Upload date:
  • Size: 66.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.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.0.0b12.tar.gz
Algorithm Hash digest
SHA256 8d0fcaff6367b6d227419fa8c5bc6c11047ee9c1255ecd889c0006a1cb14be73
MD5 9d35e3d9fc9566ccfad9c7ad382ebe5b
BLAKE2b-256 efb96571cea214645858c8b725ec6b11b469ea029a20da8d2e8de6b9aa7f1d89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jamlib-3.0.0b12-py3-none-any.whl
  • Upload date:
  • Size: 102.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.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.0.0b12-py3-none-any.whl
Algorithm Hash digest
SHA256 89cf07fdb63b166a28cb1ec7164e9581d6d33da6cacc3f096c0904cd3f302465
MD5 ef60eea5705bcd4b08f4e96eebe8a15e
BLAKE2b-256 0287a2b7ecf1e6c3dbede789d31dcbd6365c2a490393257b53e4e0a486bd8bc6

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