Skip to main content

superroute-sprint

sPrint for Python: Superroute's printing SDK. Find network, USB and Bluetooth printers, detect their command language (ZPL, TSPL, ESC/POS, CPCL and the vendor dialects), print labels, PDF, HTML, images and raw bytes, and turn the machine into a Superroute print node. The wheels carry the native sPrint library for Linux (x86-64, arm64, armv7; glibc 2.17+), macOS 13+ (arm64, x86-64) and Windows (x64, arm64); nothing is compiled when installing.

from superroute_sprint import (PrinterRegistry, TargetPrinter, LabelJob, PrintJob, Discovery,
                               PrintNode, NodeState, Languages, Transports, JobTypes)

with PrinterRegistry("printers.json") as printers:
    printers.save(TargetPrinter(name="Labels", host="192.168.1.40", transport=Transports.NETWORK,
                                language=Languages.ZPL))
    result = printers.print(PrintJob(type=JobTypes.LABEL, label=LabelJob.parse(label_json)))
    if not result.ok:
        print(result.reason, result.message)

for p in Discovery.scan_network():
    print(p.name, p.host)

node = PrintNode(printers, state=saved_state, on_event=lambda e: save_if_state(e))
node.pair("K2M9XY")          # the code from the Print Nodes page
node.start()

LAN peer printing

Two devices on the same network print to each other's shared printers with no server in between (the SuperPrinter apps' peer-direct protocol). A host shares nothing until it names its printers, and admits peers in approval mode unless told otherwise; sPrint keeps no files for peers, so store the state it hands over.

from superroute_sprint import (PeerHost, PeerHostState, PeerIdentity, PeerSession, PeerModes,
                               Discovery, PrintJob, JobTypes)

# The printer owner
def on_peer(e):
    if e.kind == "peer_state":
        save(e.state.json)                      # identity, mode, shared printers, trust list
    elif e.kind == "peer_pending":
        host.decide(e.pending.id, ask_owner(e.pending.name, e.pending.fingerprint, e.pending.note))

host = PeerHost(printers, state=PeerHostState(saved_json), name="Front desk", on_event=on_peer)
host.set_shared(["Labels"])
host.set_discoverable(True)                     # advertised over mDNS
host.start()

# The printer user
me = PeerIdentity.from_seed(saved_seed)
peer = Discovery.browse_peers()[0]
session = PeerSession.connect(me, peer.addr, fingerprint=peer.fingerprint, note="Packing desk",
                              on_event=lambda e: print("ended:", e.reason))
if session.status.status == "pending":
    session.wait_approval()                     # SPrintError code "denied" / "timeout"
result = session.print("Labels", PrintJob(type=JobTypes.LABEL, label=label))
printers.attach_peer(session)                   # or route jobs to "peer:<fingerprint>/Labels"

Licensed under the Superroute SDK License.

Metadata

Release files for superroute-sprint 0.1.2

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

Built distributions (wheels)

Table of built distributions (wheels) for superroute-sprint 0.1.2
File Actions
superroute_sprint-0.1.2-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for superroute_sprint-0.1.2-py3-none-win_arm64.whl
superroute_sprint-0.1.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for superroute_sprint-0.1.2-py3-none-win_amd64.whl
superroute_sprint-0.1.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for superroute_sprint-0.1.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
superroute_sprint-0.1.2-py3-none-manylinux2014_armv7l.manylinux_2_17_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details for superroute_sprint-0.1.2-py3-none-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
superroute_sprint-0.1.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for superroute_sprint-0.1.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
superroute_sprint-0.1.2-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for superroute_sprint-0.1.2-py3-none-macosx_13_0_x86_64.whl
superroute_sprint-0.1.2-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for superroute_sprint-0.1.2-py3-none-macosx_13_0_arm64.whl

Total release size: 44.2 MB

Release files / superroute_sprint-0.1.2-py3-none-win_arm64.whl

Download URL superroute_sprint-0.1.2-py3-none-win_arm64.whl
Size 6.0 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
1aed93665e1eb3263fbd54b623c4429d6ddde27c2ca7a661708259080597966a
BLAKE2b-256 checksum
How to use checksums
06591ce32963766ebf6c30c1dd4aea953bf861aa34e86fddb8ebfd24a4001b6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / superroute_sprint-0.1.2-py3-none-win_amd64.whl

Download URL superroute_sprint-0.1.2-py3-none-win_amd64.whl
Size 6.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
350bf86f70cd6abea22f465b842733a8694bd4707f981411a7de46925071f750
BLAKE2b-256 checksum
How to use checksums
811f5bf6db15728df80d7a7bcc19b76e58bd10561533e83819353156d89e57a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / superroute_sprint-0.1.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL superroute_sprint-0.1.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
018f613b9e244507bb8f25192100a59da8c97213c4db15039cf67a909a6b742d
BLAKE2b-256 checksum
How to use checksums
134577c9faf083736ca7dd3f562dee8815c7cdb44c578846e5d812c308437792
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / superroute_sprint-0.1.2-py3-none-manylinux2014_armv7l.manylinux_2_17_armv7l.whl

Download URL superroute_sprint-0.1.2-py3-none-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
Size 6.5 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
8ecbc0172cbf1542a656ea04883bd0bba4e5fb1c427d4807e552a01e34371f20
BLAKE2b-256 checksum
How to use checksums
14990785544b9820fd796fbaebed01987d3ccd3842adce0b0f2f4a38df6352c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / superroute_sprint-0.1.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL superroute_sprint-0.1.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
006b3c2dd1f1f45024ffe35a65ec263f18d810bb2db4761a21260ab34a056fbd
BLAKE2b-256 checksum
How to use checksums
88094d941ee52c1a6bdbd1b0eb9d52119dc485d8375b4d1615927fa03184bcbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / superroute_sprint-0.1.2-py3-none-macosx_13_0_x86_64.whl

Download URL superroute_sprint-0.1.2-py3-none-macosx_13_0_x86_64.whl
Size 6.4 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
4ba468d41d98ca2a8e3eff319a15b1126a273504d914a6d530f63a5d76970042
BLAKE2b-256 checksum
How to use checksums
69c8e146bd33eda1072656a56504318498e2d85d8c7e56259bfd36d5cb3f74b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / superroute_sprint-0.1.2-py3-none-macosx_13_0_arm64.whl

Download URL superroute_sprint-0.1.2-py3-none-macosx_13_0_arm64.whl
Size 6.1 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
6d110d1eedcfc33d0e2c420f632ab92756ab94acc53bc6239efc2f99a2c558dd
BLAKE2b-256 checksum
How to use checksums
0c887201e3713deb5518947419ede260b4af1554478d05a66a537c981b3e9e5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for superroute-sprint 0.1.2

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.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for superroute_sprint-0.1.2-py3-none-win_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

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