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.4.tar.gz (12.2 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.4-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: admitiq-0.3.4.tar.gz
  • Upload date:
  • Size: 12.2 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.4.tar.gz
Algorithm Hash digest
SHA256 89124c87278c072e7b8aa4db8f1acf598d3f9160ec2bb5bdad4ca0537fe51e8d
MD5 811dd3b683c82325d580278ba8c75db8
BLAKE2b-256 280ea96c3a483bd2a0c3c921a8318ceb4a56b5d83af2040ce42296e830f01a4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: admitiq-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2fa4183473f0c28ef7f249cec680d61a62bd62b020ef2d1cd5fb1d3e45450fb1
MD5 191ce1869622c318e84489ee5ba19f52
BLAKE2b-256 a77c72509ee0a7ab44bf45edc12b968d8f4bdf9337dc36e1daadd67bb2875e7f

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