Skip to main content

Python bindings for ggtag.

Installation

pip install ggtag

Usage

The GGTag class provides a simple interface for creating and rendering tags. The tag can be rendered as a bitmap or encoded as byte array.

Here is an example how to create a tag and encode it to byte array:

tag = ggtag.GGTag()
tag.text(204, 122, 3, "ggtag")
tag.icon(212, 81, 34, "wifi")
tag.rect(198, 74, 70, 70)
tag.rect(68, 74, 82, 82)
tag.qrcode(71, 77, 3, "https://ggtag.io/demo.html")
tag.text(43, 186, 5, "https://ggtag.io")
data = bytes(tag)

The byte array can be programmed into a ggtag device using either:

  • data over sound and the the ggwave library
  • serial USB connection and the pyserial library.

See demo.py for a complete demo.

Metadata

Release files for ggtag 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ggtag 1.1.0
File Size Uploaded Provenance Actions
ggtag-1.1.0.tar.gz 419.4 kB Without provenance Details for ggtag-1.1.0.tar.gz

Release files / ggtag-1.1.0.tar.gz

Download URL ggtag-1.1.0.tar.gz
Size 419.4 kB
Tags Source
SHA-256 checksum
How to use checksums
24a8ab8833eac0eb383f78022c37bc3e53982b93b1469d72502eb14bda4edac0
BLAKE2b-256 checksum
How to use checksums
80c152e7f8ce7b55cb0bc7b3a774feb5f54010ca8d0db161534172eec6240607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for ggtag 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page