aiospinel
An asyncio implementation of the Spinel protocol used to communicate with OpenThread RCPs over a serial connection.
Installation
pip install aiospinel
Usage
This library exports an SpinelProtocol asyncio protocol object.
import asyncio
import serialx
from aiospinel import CommandID, PropertyID, ResetReason, SpinelProtocol
async def main() -> None:
loop = asyncio.get_running_loop()
_, protocol = await serialx.create_serial_connection(
loop=loop,
protocol_factory=SpinelProtocol,
url="/dev/ttyUSB0",
baudrate=460800,
)
await protocol.wait_until_connected()
try:
await protocol.reset(ResetReason.STACK)
rsp = await protocol.send_command(
CommandID.PROP_VALUE_GET,
PropertyID.HWADDR.serialize(),
)
prop_id, hwaddr = PropertyID.deserialize(rsp.data)
assert prop_id == PropertyID.HWADDR
print("Hardware address:", hwaddr.hex())
finally:
await protocol.disconnect()
if __name__ == "__main__":
asyncio.run(main())
Metadata
Release files for aiospinel 1.3.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 |
|---|---|---|---|---|
| aiospinel-1.3.0.tar.gz | 63.1 kB | With provenance | Details for aiospinel-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiospinel-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for aiospinel-1.3.0-py3-none-any.whl |
Total release size: 77.4 kB
Release files / aiospinel-1.3.0.tar.gz
| Download URL | aiospinel-1.3.0.tar.gz |
|---|---|
| Size | 63.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
152d737c4d47ffed1195a832045b2c99391dfc04a3ce1e8120b48ad616828194
|
|
BLAKE2b-256 checksum How to use checksums |
4223d2c838f4c46188b91208d1f7d2c71900d5ed58eb01b5a12f66ff3ae519a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 1, 2026.
Transparency logRelease files / aiospinel-1.3.0-py3-none-any.whl
| Download URL | aiospinel-1.3.0-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ba4ed566df2d1b9dd5edb75e37d7ffd40844ec56f18a48f447b57376d3195c8
|
|
BLAKE2b-256 checksum How to use checksums |
c62d1e82f80f59fe34ec6e75beb6036950485e1240c17d5833f4c50aeb47f1ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 1, 2026.
Transparency logSecurity for aiospinel 1.3.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aiospinel-1.3.0.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 Nov 1, 2026.
Transparency logA 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.