Skip to main content

td1s

td1s discovers BIQU TD1S devices and reads filament TD and color measurements over USB serial. It can be used as a Python library or as a standalone command-line application.

Installation

Install the biqu-td1s distribution from PyPI:

python -m pip install biqu-td1s

Command-line usage

Both entry points expose the same options:

td1s-reader --once --timeout 30
python3 -m td1s --once --timeout 30

Use an explicit serial port when automatic discovery is not suitable:

td1s-reader --port COM10 --once --timeout 30

Output can be written as JSON Lines, emitted as the original TD1S measurement line, appended to CSV, or supplemented with unrecognized control lines:

td1s-reader --json --csv measurements.csv
td1s-reader --raw --once
td1s-reader --show-control-lines

Run td1s-reader --help or python -m td1s --help for the complete argument reference.

Library usage

from td1s import TD1SDevice, discover_devices

devices = discover_devices()
if not devices:
    raise RuntimeError("No BIQU TD1S device was found.")

with TD1SDevice(devices[0]) as device:
    measurement = device.read_measurement(timeout=30)

print(measurement.td, measurement.color, measurement.red)

The distribution name is biqu-td1s, while the import package remains td1s. The public API includes DeviceInfo, Measurement, TD1SDevice, discover_devices, and parse_measurement.

Versioning

This project follows Semantic Versioning. Incompatible public API changes increment the major version, backward-compatible features increment the minor version, and backward-compatible fixes increment the patch version. Notable changes are documented in the changelog.

Development

python -m pip install -e ".[dev]"
python -m pytest
python -m build
python -m twine check dist/*

This project is an independent integration and is not affiliated with BIQU.

License

This project is licensed under the MIT License. See LICENSE for details.

Metadata

Release files for biqu-td1s 1.0.0

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

Source distribution (sdist)

Source distribution for biqu-td1s 1.0.0
File Size Uploaded
biqu_td1s-1.0.0.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for biqu-td1s 1.0.0
File Interpreter ABI Platform
biqu_td1s-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / biqu_td1s-1.0.0.tar.gz

Download URL biqu_td1s-1.0.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
774e5af57f535f1d7cda421239716dc6b56986227d883df94e75da5b76f6637a
BLAKE2b-256 checksum
How to use checksums
71c1549a2ddf93d36638c771e5335b51f400727350e88fa551ca8255d43e9acb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / biqu_td1s-1.0.0-py3-none-any.whl

Download URL biqu_td1s-1.0.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43dbb95bb753c39a2ba022610ce882b151b3cb48d9561a0de80c55cacf834e3a
BLAKE2b-256 checksum
How to use checksums
69a5dd428e8f824d9f19c58b4f3f231a5acdf695b3d5438cee71334dd1e07375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

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