transponder
State broadcasting for Python. Keep a state dict and emit snapshots to registered listeners whenever it changes — a minimal observer for live status.
Install
pip install transponder
Usage
from transponder import Transponder
seen = []
t = Transponder({"alt": 0})
t.subscribe(lambda s: seen.append(dict(s)))
t.update(alt=1000, squawk="1200")
assert seen[-1]["alt"] == 1000
assert t.state["squawk"] == "1200"
Roadmap
This is an early 0.1.0 release with active development planned:
- Filtered subscriptions by key
- Async listeners
- Wire-format codecs for network broadcast
Author
Coldbricks — coldbricks@gmail.com
Metadata
Release files for transponder 0.1.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 | |
|---|---|---|---|
| transponder-0.1.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| transponder-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / transponder-0.1.0.tar.gz
| Download URL | transponder-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
637c23711340abc1cb9e9cb5c94d7b00b8f1703b427a33c3330bf53f44f376a8
|
|
BLAKE2b-256 checksum How to use checksums |
57758c50d4ecf26b6616004c50fec3f0f22a4e84a0b2d2e89b359ad996f45f72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / transponder-0.1.0-py3-none-any.whl
| Download URL | transponder-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
367ce073ad2997ca732585b130ab5665fd215393027819e64d5025f95a07c776
|
|
BLAKE2b-256 checksum How to use checksums |
8a6267874a76cb46f7f1ed55ed6c367d8e10b5f7802fc5568936d41403f57c6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|