Typed Python client for the Hovercode QR code API.
Project description
Hovercode Python SDK
Typed Python client for the Hovercode API (dynamic and static QR codes).
Documentation
Project documentation is published on GitHub Pages: https://theperrygroup.github.io/hovercode/
Installation
python -m pip install hovercode
Authentication
Hovercode uses token authentication. Provide your token either:
- Via environment variable
HOVERCODE_API_TOKEN, or - By passing
api_token=toHovercodeClient.
Quickstart
from hovercode import HovercodeClient
client = HovercodeClient() # reads HOVERCODE_API_TOKEN
qr = client.hovercodes.create(
workspace="YOUR-WORKSPACE-ID",
qr_data="https://twitter.com/hovercodeHQ",
primary_color="#1DA1F2",
)
print(qr["id"])
print(qr["svg"][:80])
Common operations
qr_full = client.hovercodes.get_hovercode(qr["id"])
activity = client.hovercodes.get_activity(qr["id"], page_size=50)
client.hovercodes.update(qr["id"], display_name="New name")
client.hovercodes.delete_hovercode(qr["id"])
Notes
- Do not call the Hovercode API from a browser client (it would expose your token).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hovercode-0.1.1.tar.gz
(20.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hovercode-0.1.1-py3-none-any.whl
(17.0 kB
view details)
File details
Details for the file hovercode-0.1.1.tar.gz.
File metadata
- Download URL: hovercode-0.1.1.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a004a8a4ec4d6872e9b4f8e4d4f1ac2185a6f5012a490cb908cf5bc0b880348
|
|
| MD5 |
2a458933d4991c60d33aa9e67cedeb78
|
|
| BLAKE2b-256 |
dd6a052cb072b60cc4ff2abdd934c28640334492c317d70844b1866403324ebf
|
File details
Details for the file hovercode-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hovercode-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6427299ef6c2b5b53452e971de4b27d10426628e4c07158764c9dcb9713da617
|
|
| MD5 |
ca5ba71c7d661f24e2b57b6cbe60c7f5
|
|
| BLAKE2b-256 |
f9b912614b9b026d543a3e9c47def5911f7b69a7c8d4ff45e38c237232a666cb
|