conduyt-py
CONDUYT protocol SDK for Python. Async and sync APIs for host-side hardware control.
Install
pip install conduyt-py
# With serial transport
pip install conduyt-py[serial]
# With MQTT transport
pip install conduyt-py[mqtt]
# All transports
pip install conduyt-py[all]
Quick Start
Async
from conduyt import ConduytDevice
from conduyt.transports.serial import SerialTransport
device = ConduytDevice(SerialTransport("/dev/ttyUSB0"))
hello = await device.connect()
await device.pin(13).mode("output")
await device.pin(13).write(1)
value = await device.pin(0).read("analog")
await device.disconnect()
Sync
from conduyt import ConduytDeviceSync
from conduyt.transports.serial import SerialTransport
device = ConduytDeviceSync(SerialTransport("/dev/ttyUSB0"))
device.connect()
device.pin(13).mode("output")
device.pin(13).write(1)
value = device.pin(0).read("analog")
device.disconnect()
Module Usage
from conduyt.modules.servo import ConduytServo
servo = ConduytServo(device)
await servo.attach(9)
await servo.write(90)
API Reference
ConduytDevice (async)
| Method | Returns | Description |
|---|---|---|
connect() |
HelloResp |
Connect and run HELLO handshake |
disconnect() |
None |
Close connection |
ping() |
None |
Ping/pong roundtrip |
reset() |
None |
Reset device state |
pin(num) |
PinProxy |
Pin control object |
ConduytDeviceSync
Synchronous wrapper around ConduytDevice. Same methods, no await.
PinProxy
| Method | Returns | Description |
|---|---|---|
mode(mode) |
None |
Set pin mode: "input", "output", "pwm", "analog", "input_pullup" |
write(value) |
None |
Digital or PWM write |
read(mode?) |
int |
Read pin value |
Errors
| Class | When |
|---|---|
ConduytNAKError |
Device rejected a command |
ConduytTimeoutError |
No response within timeout |
ConduytDisconnectedError |
Transport disconnected |
Transports
| Transport | Module | Dependency |
|---|---|---|
SerialTransport |
conduyt.transports.serial |
pyserial-asyncio |
MQTTTransport |
conduyt.transports.mqtt |
aiomqtt |
MockTransport |
conduyt.transports.mock |
None |
Modules
| Module | Import | Hardware |
|---|---|---|
ConduytServo |
conduyt.modules.servo |
Hobby servos |
ConduytNeoPixel |
conduyt.modules.neopixel |
WS2812/SK6812 LEDs |
ConduytDHT |
conduyt.modules.dht |
DHT11/DHT22 sensors |
ConduytOLED |
conduyt.modules.oled |
SSD1306 OLED displays |
ConduytStepper |
conduyt.modules.stepper |
Stepper motors |
ConduytEncoder |
conduyt.modules.encoder |
Rotary encoders |
ConduytPID |
conduyt.modules.pid |
PID controller |
Requirements
- Python >= 3.10
pyserial-asyncio >= 0.6(for serial transport)aiomqtt >= 2.0(for MQTT transport)
License
MIT. Copyright (c) 2026 LumenCanvas.
Metadata
Release files for conduyt-py 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| conduyt_py-1.0.0.tar.gz | 22.9 kB | Without provenance | Details for conduyt_py-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| conduyt_py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for conduyt_py-1.0.0-py3-none-any.whl |
Total release size: 43.0 kB
Release files / conduyt_py-1.0.0.tar.gz
| Download URL | conduyt_py-1.0.0.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b06a63430bdb41326c91579fdd15f94179ea7acc14d1bc386266674b7e1b42a2
|
|
BLAKE2b-256 checksum How to use checksums |
4b0acb3d3f1b5ef469469870d8ba4f91498b06cd36bf8178d2a61d4c2da57f32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / conduyt_py-1.0.0-py3-none-any.whl
| Download URL | conduyt_py-1.0.0-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b574156231d86a516ade9bc8ab774373726ee4afad777fd86292f12e6cb0d9d
|
|
BLAKE2b-256 checksum How to use checksums |
34654517a5798ea8761042bd8ca97058caffeb4f416ac8435f8ac8ecc8d5d3dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for conduyt-py 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.