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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ggtag-1.1.0.tar.gz (419.4 kB view details)

Uploaded Source

File details

Details for the file ggtag-1.1.0.tar.gz.

File metadata

  • Download URL: ggtag-1.1.0.tar.gz
  • Upload date:
  • Size: 419.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ggtag-1.1.0.tar.gz
Algorithm Hash digest
SHA256 24a8ab8833eac0eb383f78022c37bc3e53982b93b1469d72502eb14bda4edac0
MD5 5c47a0cd10f9947af0480aee4b741757
BLAKE2b-256 80c152e7f8ce7b55cb0bc7b3a774feb5f54010ca8d0db161534172eec6240607

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.5

1 file

0.0.4

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page