Skip to main content

Simple and univirsal library for authorization.

Project description

Jam

logo

Static Badge tests License

Install

pip install jamlib

Getting start

# -*- coding: utf-8 -*-

from jam import Jam
from jam.utils import make_jwt_config

config = make_jwt_config(
    alg="HS256",
    secret_key="some-key",
    expire=36000,
)

jam = Jam(auth_type="jwt", config=config)
token = jam.gen_jwt_token({"user_id": 1})

Roadmap

Roadmap

© Adrian Makridenko 2025

Project details


Download files

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

Source Distribution

jamlib-1.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

jamlib-1.1.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jamlib-1.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.8

File hashes

Hashes for jamlib-1.1.0.tar.gz
Algorithm Hash digest
SHA256 de7de48b94f56462cef43afd550f9bb478c8fd7a3ecbfe5991953de01103fc03
MD5 eedd2263132d81774d2541870179e302
BLAKE2b-256 9f9c9ab138d44f5aff4e025d1e08a6ced1f8d07148727c18e0a79dad76bf7ce7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jamlib-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.8

File hashes

Hashes for jamlib-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59207bbc752e2e2b580810117876f79ee75f952d06e7228edb21f531efe6dd08
MD5 b8042dc2b824245ae894beb307aa89df
BLAKE2b-256 952cb750f24443c5e99f2113c5b5ab615477a6b6526e08e47dfa88307d386418

See more details on using hashes here.

Supported by

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