Skip to main content

Yesterwind XYZ-modem

CI PyPI Python Coverage

Pure-Python async implementation of the X-, Y-, and Z-Modem file transfer protocols. No subprocesses, no external tools — everything is implemented in Python 3.9+.

Installation

pip install yesterwind-xyzmodem

Usage

ZModem receive (from any transport)

from yesterwind_xyzmodem.transport import StreamTransport
from yesterwind_xyzmodem.zmodem import ZModem

transport = StreamTransport(reader, writer)
zmodem = ZModem(transport)
received_paths = await zmodem.receive("./downloads")

ZModem send

zmodem = ZModem(transport)
await zmodem.send(["file1.bin", "file2.txt"])

XModem / YModem

from yesterwind_xyzmodem.xmodem import XModem
from yesterwind_xyzmodem.ymodem import YModem

xmodem = XModem(transport)
await xmodem.send("file.bin")
await xmodem.receive("file.bin")

ymodem = YModem(transport)
await ymodem.send(["a.bin", "b.txt"])
paths = await ymodem.receive("./downloads")

Progress callbacks

from yesterwind_xyzmodem.callbacks import EventType

def on_progress(p):
    if p.event == EventType.BLOCK_RECEIVED:
        print(f"{p.filename}: {p.bytes_transferred}/{p.total_bytes}")

zmodem = ZModem(transport, callback=on_progress)

Demos

rz — download via ZModem over TCP

Equivalent to rz --tcp-client, works against sz --tcp-server:

# On the sending machine (using our sz demo):
uv run demos/sz.py myfile.bin
# Prints the port, e.g.: Listening on 0.0.0.0:12345

# Or using the reference implementation:
sz --tcp-server myfile.bin

# On the receiving machine:
uv run demos/rz.py <host> <PORT> [-d download_dir]

sz — ZModem TCP server (send files to any rz client)

Sends one or more files to any connecting ZModem receiver. Mirrors sz --tcp-server. The OS assigns a free port automatically unless you specify one with --port.

# Single-shot: accept one client, send file, exit
uv run demos/sz.py myfile.bin

# Serve forever: keep listening, handle clients in parallel
uv run demos/sz.py --serve-forever -p 12345 file1.bin file2.bin

# Connect with the reference rz or our own client:
rz --tcp-client <host>:12345
uv run demos/rz.py <host> 12345

bbs — telnet BBS client with auto ZModem receive

Connects to any telnet BBS. ZModem transfers are detected automatically and a retro progress panel appears, just like PCPlus or XTalk4:

uv run demos/bbs.py bbs.fozztexx.com
uv run demos/bbs.py bbs.fozztexx.com 23 -d ~/Downloads/bbs

Press Ctrl+] to disconnect.

Development

uv sync
uv run pytest

Tests require 100% branch coverage.

Metadata

Release files for yesterwind-xyzmodem 0.1.2

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

Source distribution (sdist)

Source distribution for yesterwind-xyzmodem 0.1.2
File Size Uploaded Provenance Actions
yesterwind_xyzmodem-0.1.2.tar.gz 44.2 kB With provenance Details for yesterwind_xyzmodem-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yesterwind-xyzmodem 0.1.2
File Interpreter ABI Platform Actions
yesterwind_xyzmodem-0.1.2-py3-none-any.whl Python 3 none any Details for yesterwind_xyzmodem-0.1.2-py3-none-any.whl

Total release size: 76.1 kB

Release files / yesterwind_xyzmodem-0.1.2.tar.gz

Download URL yesterwind_xyzmodem-0.1.2.tar.gz
Size 44.2 kB
Tags Source
SHA-256 checksum
How to use checksums
76abd1fa75fc03fd134e613cf4fb39769436dbf9a3f25e4903a2f28836c2b611
BLAKE2b-256 checksum
How to use checksums
0ecd02a0302212c1df2ddcb10badc5b48f237ccfa841d3870d86321d9390017a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 13, 2026.

Transparency log

Release files / yesterwind_xyzmodem-0.1.2-py3-none-any.whl

Download URL yesterwind_xyzmodem-0.1.2-py3-none-any.whl
Size 31.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37de09daf67591669282718f09f9e019b40216456996c97da02f7845b67be343
BLAKE2b-256 checksum
How to use checksums
819cb5c83c84264523aa4cf19bb491b2422486d4fa5b5c89298f0150bc95223b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 13, 2026.

Transparency log

Security for yesterwind-xyzmodem 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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for yesterwind_xyzmodem-0.1.2.tar.gz

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 Jun 13, 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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

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