Skip to main content

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

Project description

AdmitiQ (Python)

PyPI License: MIT

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.3.tar.gz (11.5 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.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: admitiq-0.3.3.tar.gz
  • Upload date:
  • Size: 11.5 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.3.tar.gz
Algorithm Hash digest
SHA256 7dbb8a3d38d0e976b740870933b45bb6b9dadaff93cdac20fccc7923829347d3
MD5 c43ee9e2086770b3e878b9d46727e207
BLAKE2b-256 d0dac650c1c2b4e54eb817606cb801ab3059bcdecce6f3c99bf2be1824fd6920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: admitiq-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 12.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed84211da24e765df39412a0f880d6ae88dc3668d2d5a27a7d6961200981030
MD5 ecd034dfc774dbf51915394b917da532
BLAKE2b-256 2fa4fcca6b5cf30f8cb26381dbb4a0575cd505dd89b00010ff9618807d7cd380

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