Skip to main content

AdmitiQ: signed, expiring, revocable tokens for QR codes and ticket links. https://admitiq.logiclitz.org

Project description

AdmitiQ (Python)

A LogicLitz open-source project.

Signed, expiring, revocable tokens for QR codes and links.

New here? Start with the interactive tutorial or ../docs/what-is-admitiq.md.

Install

pip install admitiq
pip install "admitiq[qr]"     # optional: QR images
pip install "admitiq[ec]"     # optional: ES256
pip install "admitiq[redis]"  # optional: Redis single-use store

Tiny example

from admitiq import issue, verify, issue_url, issue_qr

token = issue({"ticket_id": "abc123"}, ttl_seconds=3600, secret="your-secret-key")
url = issue_url("https://example.com/scan", {"ticket_id": "abc123"}, ttl_seconds=3600, secret="your-secret-key")
# issue_qr(..., output_path="ticket.png")  # needs: pip install "admitiq[qr]"

payload = verify(token, secret="your-secret-key")
print(payload["data"])

A Node app can verify this same token with the same secret (npm install admitiq).

More

Topic Link
Full Python guide docs/python.md
Getting started docs/getting-started.md
Landing / tutorial docs/landing.md
QR & URL delivery docs/delivering-tokens.md
Key rotation docs/key-rotation.md
Security SECURITY.md
Publish to PyPI PUBLISH.md
Flask demo examples/flask-attendance
PyPI https://pypi.org/project/admitiq/

License

MIT — LogicLitz

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

admitiq-0.3.2.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

admitiq-0.3.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file admitiq-0.3.2.tar.gz.

File metadata

  • Download URL: admitiq-0.3.2.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for admitiq-0.3.2.tar.gz
Algorithm Hash digest
SHA256 158e05c25502063c79abbd34e9c92049b48d89cf608275b401ceef1e857abb23
MD5 71b24323bfb6a97e9ea04a1290b459ad
BLAKE2b-256 ecec9f4152a8480e7dc707614779a6d13dc00cee357be3f0194adb3504bdad10

See more details on using hashes here.

File details

Details for the file admitiq-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: admitiq-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for admitiq-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e3061df1b9ff23e36f8e4e820222aec9c4003e16845f67318dd012e06e63130
MD5 e3a9111c0235e8911414f32ea8fbd0eb
BLAKE2b-256 71556e3ea72e3e97dd9721f546901d02ebd14804ab0ef4adef1f2e80ff5cd427

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