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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
transponder-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file transponder-0.1.0.tar.gz.
File metadata
- Download URL: transponder-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
637c23711340abc1cb9e9cb5c94d7b00b8f1703b427a33c3330bf53f44f376a8
|
|
| MD5 |
196f6ceeca1ed794215ca8dcc920b487
|
|
| BLAKE2b-256 |
57758c50d4ecf26b6616004c50fec3f0f22a4e84a0b2d2e89b359ad996f45f72
|
File details
Details for the file transponder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: transponder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
367ce073ad2997ca732585b130ab5665fd215393027819e64d5025f95a07c776
|
|
| MD5 |
cd8781842e83e12435c8f8fd9fc97080
|
|
| BLAKE2b-256 |
8a6267874a76cb46f7f1ed55ed6c367d8e10b5f7802fc5568936d41403f57c6a
|