A Paho MQTT client supporting asyncio loop without additional setup.
Project description
Asynchronous I/O (asyncio) Paho MQTT client
A Paho MQTT client supporting asyncio loop without additional setup. Forget about configuring the Paha network-loop. The client can almost be used as a drop-in replacement for Paho Client. The asyncio loop is automatically configured when you connect. You should use connect_async to connect to avoid blocking.
client = AsyncioPahoClient()
client.connect_async("mqtt.eclipseprojects.io")
# do mqtt stuff
client.Disconnect()
Asynchronous Context Manager
The client is an Asynchronous Context Manager and can be used with the Python with statement to atomatically disconnect and clean up.
async with AsyncioPahoClient() as client:
client.connect_async("mqtt.eclipseprojects.io")
# do mqtt stuff - client.Disconnect() is called when exiting context.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asyncio_paho-0.1.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for asyncio_paho-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 480410ed5d63c2df6f5887902d65d97044572768a055ddf5b9d748fa590455f6 |
|
MD5 | 39c278f83ca652f1a817eea156958110 |
|
BLAKE2b-256 | 3b35361521e63f7182416f73be8f4537427a2d2882ed8d91a36507bb6360a9ec |