Skip to main content

Simple and univirsal library for authorization.

Project description

Jam

logo

Static Badge tests License jam

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jamlib-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ee1c92a3493c04d0489dea35c671f6acdd97c915931de5e2efbc3330595e47d4
MD5 40964f43ffe4de46d7367a4108399a51
BLAKE2b-256 db1b04f89a9067473765dedb1dea901a138002ecbaf16e40b738ef45136283ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jamlib-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6be79a76156867c5baecaec233acf2f3b78aa3890db2599878a76b4efd6607f0
MD5 cd11daf55fc95a8f2f5fa5c09d3448c6
BLAKE2b-256 b61b1808dff9cba94c4518f89c7c239ab72aae740703b0e0e7c480199dfa409e

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