Skip to main content

Simple and univirsal library for authorization

Project description

Jam

Static Badge tests License jam

[!CAUTION] In active development! Cannot be used in real projects!

Install

pip install jamlib

Getting start

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

from typing import Any

from jam import Jam

config: dict[str, Any] = {
        "jwt_secret_key": "some-secret",
        "expire": 3600
    }

data = {
    "user_id": 1,
    "role": "admin"
}

jam = Jam(auth_type="jwt", config=config)

payload = jam.make_payload(**data)
token = jam.gen_jwt_token(**payload)

Roadma

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-3.0.0a0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

jamlib-3.0.0a0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jamlib-3.0.0a0.tar.gz
Algorithm Hash digest
SHA256 786036aa0cd387cb65a12d50de5700f647e85d2cb9975f8d0d6a454047bed98a
MD5 3442a26e66a356da8230321cbe02d48b
BLAKE2b-256 32b473a83dd23df3c7c1e4537f0d9ec5e246acaf24d5d1f7cd5c5842a9b51c2a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jamlib-3.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b363d7ca975463499de9443336b12195e4f6647c34fe3212b81ee90451df9b5
MD5 a7c9219679f8bd9c6a12812d0dfff5d0
BLAKE2b-256 58eba0e3581405945b390509d2093789c046f4177c1c7e24abb977c11b58c54a

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