Skip to main content

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= to HovercodeClient.

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


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

Uploaded Source

Built Distribution

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

hovercode-0.1.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file hovercode-0.1.0.tar.gz.

File metadata

  • Download URL: hovercode-0.1.0.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for hovercode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df8a1d723d048343c181da3af3a802ecbcf1f466353e64a789df1dfd74efd965
MD5 0c96c6e9c8c76a264099c2a700e88ed1
BLAKE2b-256 f6c494c03df9f63be8d0ad6a118566c345cb25f831128dc3d4054dcd93b62101

See more details on using hashes here.

File details

Details for the file hovercode-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hovercode-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for hovercode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1af3d7591f395696704247e2d4248b023ae18da07e0452a1b67b63f08ac04723
MD5 629c58f0e20e8120ae2f466ee21bf906
BLAKE2b-256 a03e55ad6394c09054621ad409c5498ee1a45140ef79f0b72a6df645fe9e6cc8

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