Skip to main content

A Python library to manage a Zebra printer fleet and an API for ZPL print requests.

Project description

zebra_day

zebra_day is a Python library, CLI, simulator, and FastAPI web service for managing Zebra printer fleets and serving ZPL print workflows. Shared fleet state, templates, label profiles, observations, and print jobs now live in daylily-tapdb only.

What Changed

  • TapDB is the only supported shared datastore.
  • source ./activate <deploy-name> is the only supported repo activation path.
  • The service/admin runtime uses direct TapDB access through ZebraDayClient.
  • Downstream Python applications should use ZebraDayApiClient against a running zebra_day API.
  • Cognito is the default auth mode. --no-auth remains the explicit runtime override.

Removed in this major cut:

  • local fleet/config files as runtime state
  • DynamoDB and S3 runtime support
  • print_mgr.zpl() and package-root helper shims
  • zday_start, zday_quickstart, and zday dynamo

Quickstart

source ./activate local
zday config init
zday config status
zday gui start

The default GUI port is 8118. HTTPS is enabled automatically when local certs are available.

Runtime Model

flowchart LR
    CLI["zday CLI"] --> Service["zebra_day service/runtime"]
    GUI["FastAPI + Jinja UI"] --> Service
    APIClient["ZebraDayApiClient"] --> API["zebra_day HTTP API"]
    API --> Service
    Service --> TapDB["daylily-tapdb namespace"]
    Service --> Printers["Zebra printers over TCP 9100"]
    Simulator["simulator"] --> Printers

Python Usage

Direct service/admin usage:

from zebra_day import ZebraDayClient, ZebraDaySettings

settings = ZebraDaySettings.from_context("local")
client = ZebraDayClient(settings)
printers = client.list_printers("default")

Downstream app usage:

from zebra_day import ZebraDayApiClient

with ZebraDayApiClient("https://localhost:8118", api_key="internal-token") as client:
    printers = client.list_printers("default")
    client.submit_print_job(
        lab="default",
        printer="printer-1",
        label_zpl_style="tube_2inX1in",
        uid_barcode="SAMPLE-001",
    )

CLI Surface

  • zday gui ...: start, stop, restart, and inspect the GUI server
  • zday printer ...: list, scan, and sync printers
  • zday template ...: list, show, save, preview, and delete templates
  • zday tapdb ...: pass through to TapDB lifecycle commands
  • zday cognito ...: inspect or validate the daycog-backed auth contract
  • zday users ...: manage Cognito group membership for operator/admin roles
  • zday logs ...: inspect zebra_day GUI logs

Docs

Development Checks

ruff check zebra_day tests
ruff format --check zebra_day tests
mypy zebra_day --ignore-missing-imports
pytest tests/ -v --tb=short

Project details


Release history Release notifications | RSS feed

This version

5.1.0

Download files

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

Source Distribution

zebra_day-5.1.0.tar.gz (20.4 MB view details)

Uploaded Source

Built Distribution

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

zebra_day-5.1.0-py3-none-any.whl (20.6 MB view details)

Uploaded Python 3

File details

Details for the file zebra_day-5.1.0.tar.gz.

File metadata

  • Download URL: zebra_day-5.1.0.tar.gz
  • Upload date:
  • Size: 20.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for zebra_day-5.1.0.tar.gz
Algorithm Hash digest
SHA256 d7d067b853f0189315f960e0b4ca8964c9e9bca235af7da73607c15184526c22
MD5 ce5e7ae48034fd5eea042f2a31e6c341
BLAKE2b-256 4611b427b557adcc88d0031dfb37243e04e813d29783b728a4b1cd1e43cce294

See more details on using hashes here.

File details

Details for the file zebra_day-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: zebra_day-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for zebra_day-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a27b2b4b5cedfc957fc3887e269bdc1f904604734c81fcbc2d943d6f71ad060a
MD5 b9f37cdd4a180cf5b3dd88c067cc5563
BLAKE2b-256 a989a2f9d52fed7deeb34b0bb29401b7e3ac8eb0591960f3a7e9261846d95819

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