Skip to main content

chainway-serial

Check PyPI version Python versions License: MIT

Unofficial asynchronous Python library to interact with Chainway UR4 fixed UHF RFID readers over RS-232 and TCP, built on serialx. Requires Python >= 3.14.

Unofficial and reverse-engineered: not endorsed by Chainway, and it may break without notice whenever Chainway changes their firmware.

The library has been tested with a UR4 running UHF module firmware 7.40.1 over RS-232 and TCP.

Install

uv add chainway-serial

Documentation

The documentation is hosted at chainway-serial.readthedocs.io.

Usage

import asyncio

from chainway_serial import ChainwayClient


async def main() -> None:
    async with ChainwayClient("/dev/ttyUSB0") as client:
        print(await client.get_version())

        async for tag in client.inventory():
            print(tag.epc.hex(), tag.rssi)


asyncio.run(main())

ChainwayClient takes any serialx URL: a serial device path, or socket://host:8888 for a reader on the network.

Development

See CONTRIBUTING.md for setup, the gate and the live hardware tests.

uv sync
uv run python -m scripts.check

License

MIT. See LICENSE.

Metadata

Release files for chainway-serial 0.2.1

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

Source distribution (sdist)

Source distribution for chainway-serial 0.2.1
File Size Uploaded
chainway_serial-0.2.1.tar.gz 36.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chainway-serial 0.2.1
File Interpreter ABI Platform
chainway_serial-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 76.7 kB

Release files / chainway_serial-0.2.1.tar.gz

Download URL chainway_serial-0.2.1.tar.gz
Size 36.2 kB
Tags Source
SHA-256 checksum
How to use checksums
818581e07568d19832e82991283892851ddff8e0c1f45926a29d4a42d301bfe6
BLAKE2b-256 checksum
How to use checksums
9991b25369747fa2256e43b8b5de7065a2c889cfb2fcf4e1fd3765fdd041cf27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 9, 2026.

Transparency log

Release files / chainway_serial-0.2.1-py3-none-any.whl

Download URL chainway_serial-0.2.1-py3-none-any.whl
Size 40.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87cd924740535782cf3deaa00b3c672ee66ef755a1490e2547e4805188ca644f
BLAKE2b-256 checksum
How to use checksums
83b084db09c996d545906fbcdefa249768c7c8ad2abb2d49d13ac51e9b1d38bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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