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.3

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.3
File Size Uploaded Provenance Actions
chainway_serial-0.2.3.tar.gz 38.3 kB With provenance Details for chainway_serial-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 80.1 kB

Release files / chainway_serial-0.2.3.tar.gz

Download URL chainway_serial-0.2.3.tar.gz
Size 38.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9dd372ade6e9f1e3694460bdbbd5ec19fccb28bf236b9c9c1023f11ef1596084
BLAKE2b-256 checksum
How to use checksums
08efa2972f6739a845ab5d96a3c15850f0a94b22bf37d48ae56b4e37ce4ab414
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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 26, 2026.

Transparency log

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

Download URL chainway_serial-0.2.3-py3-none-any.whl
Size 41.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7d9ae852d4e926bb086a97f8dcdf524ab16c78c67e159d186392f23d98c44e2
BLAKE2b-256 checksum
How to use checksums
ec6269464e06384ee7b56b20e1daa31a92d05f881171357a2d4b032113279828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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 26, 2026.

Transparency log

Security for chainway-serial 0.2.3

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for chainway_serial-0.2.3.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 Oct 26, 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