This release is a pre-release and may not be stable for production use.
ubub
A (micro)python library for pub-sub messaging for (u)asyncio apps
Simple demo:
from ubub import Ub
try:
import uasyncio as asyncio
except ImportError:
import asyncio
ub = Ub()
async def sender(msg="Ahoj!", delay=1):
while True:
ub.pub("topic", msg)
await asyncio.sleep(delay)
async def receiver():
while True:
msg = await ub.sub("topic")
print("Message:", msg)
async def main():
# Subscribers
asyncio.create_task(receiver())
# Senders
asyncio.create_task(sender())
asyncio.create_task(sender("Ciao", 0.5))
while True:
await asyncio.sleep(1)
if __name__ == "__main__":
asyncio.run(main())
Contribution notes
Design
Logo - Font Assistant Extra Light 200
Metadata
Release files for ubub 0.0.1.dev0
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 |
|---|---|---|---|---|
| ubub-0.0.1.dev0.tar.gz | 2.7 kB | Without provenance | Details for ubub-0.0.1.dev0.tar.gz |
Release files / ubub-0.0.1.dev0.tar.gz
| Download URL | ubub-0.0.1.dev0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8f228632f9671e140e0b9b885e2e0c96ca2014f1010c4e0f46165f129666a13
|
|
BLAKE2b-256 checksum How to use checksums |
9c04e26ce4c20e03ff251689b828d9759bf640c666dc872e46822821c1cc33ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for ubub 0.0.1.dev0
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.