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.0a4.tar.gz (55.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.0a4-py3-none-any.whl (86.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jamlib-3.0.0a4.tar.gz
Algorithm Hash digest
SHA256 00f974c274ec51a27b6b97c8e4d091c90a3b4b8cbfd7f7b259661aca3f3aa704
MD5 d2aa9063eb180fe7ac066f55cf197ee3
BLAKE2b-256 26219561f78e8a975ed2f36e5bd9352eff175ffa6f09fde09e2364cd26f6fbe5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jamlib-3.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 1314ca7ea8de861459d761d20d01814fa8fe02e2446e9b707a286e3c566b044c
MD5 0e374d084bb76243972b6a6046c50b29
BLAKE2b-256 0c4ed52a707de63e51842fe5af2747ecae31eeb2e5e39cf5351ca88cbd462f51

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