--- id: xmodem version: "0.5.0" license: MIT license_treatment: permissive maintenance: active --- # xmodem — XMODEM protocol implementation. License: permissive · Maintenance: active · Downloads: 536.4K/mo ## What it is and what it does xmodem is a pure-Python implementation of the XMODEM file transfer protocol, a legacy standard for transferring binary files over serial connections and similar character-based channels. It provides a simple API: you supply callback functions to read from and write to your communication channel, then call send() or recv() to transfer a file. The protocol handles framing, checksums or CRC validation, retries, and flow control—all the low-level details of reliable block-based transfer. The package has no external runtime dependencies and supports Python 3.6 and later. It is commonly used in embedded systems development, firmware updates, and legacy equipment integration where XMODEM remains the standard or only available transfer method. Recent versions have addressed timing issues and improved retry semantics. Use it for: - Upload firmware or configuration files to embedded devices or microcontrollers that speak XMODEM. - Download diagnostic logs or data from legacy industrial equipment over serial connections. - Implement file transfer in Python-based device management or terminal tools. - Test or validate XMODEM protocol implementations in other systems. - Integrate file transfer capability into embedded projects without external runtime dependencies. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Implements the XMODEM file transfer protocol for sending and receiving files over character-based communication channels. Yes. xmodem is a stable, actively maintained, dependency-free implementation of a protocol you need if working with serial devices or legacy systems. MIT license, low install friction, and no known vulnerabilities make it a straightforward choice for projects requiring XMODEM support. ## Install pip install xmodem uv add xmodem poetry add xmodem ## Installing xmodem Before you install: Low install friction with no runtime dependencies. Active maintenance as of 2026-03-04, with recent bug fixes and enhancements addressing timing and retry logic. License in practice: MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and proprietary projects. Quickstart: from xmodem import XMODEM def getc(size, timeout=1): return data_source.read(size) or None def putc(data, timeout=1): return data_sink.write(data) modem = XMODEM(getc, putc) with open('file.bin', 'rb') as f: modem.send(f) Requires a communication channel (typically serial port) and external library to provide getc/putc callbacks for reading and writing character data. Verify before relying: - Whether the package supports XMODEM-1K or only standard 128-byte blocks. - Performance characteristics on high-speed or modern communication interfaces. - Availability of active community support or response time for bug reports. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 536.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags xmodem file transfer, serial protocol implementation, binary file transfer protocol, xmodem send receive, character stream protocol, embedded device file transfer, modem protocol python, serial-protocol, embedded-systems, legacy-support [View on SkillFed](https://skillfed.io/packages/xmodem) · [View on PyPI](https://pypi.org/project/xmodem/)