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 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)

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.0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

jamlib-1.0.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jamlib-1.0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for jamlib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 22cf481b83ca9950a31738cdcd33909feb2700d04f459526a5f297faf90982f8
MD5 e4b5715db8fa7e50971e10afde483176
BLAKE2b-256 9a070a2fb032d59568716c6f7316fd5f6d28b462e77cfab36b4ef7f241c88149

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jamlib-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for jamlib-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e8883faac1883dea8ba05325b34248ce4415197e835c39f2731d4fad27744e4
MD5 c8d81d1512a3489123bacd24d4c6e964
BLAKE2b-256 1bb4e93bb37ee361ea9cb9fabf1b56e6e2f5abc1b98360332acdec919f51fc49

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