Python client for ForestMQ
Project description
Python client for ForestMQ
🚧 Work in progress, please call back soon...
Install
pip install forestmq
Examples
Using the provider
from forestmq import ForestMQ
def sync_example():
fmq = ForestMQ(domain="http://localhost:8005")
result = fmq.provider.send_msg_sync({
"name": "Sync message",
})
print(result)
sync_example() # {'queue_length': 38, 'message_size': 5120, 'message': {'name': 'Sync message'}}
Using the provider's async client
import asyncio
from forestmq import ForestMQ
async def async_example():
fmq = ForestMQ(domain="http://localhost:8005")
result = await fmq.provider.send_msg({
"name": "Async message!",
})
print(result)
asyncio.run(async_example()) # {'queue_length': 39, 'message_size': 5120, 'message': {'name': 'Async message!'}}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
forestmq-0.0.1.tar.gz
(3.7 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 forestmq-0.0.1.tar.gz.
File metadata
- Download URL: forestmq-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84bab4f1507d7365ef46fa3978ec99b23223249ed47a79a5607c2c45ce57603f
|
|
| MD5 |
76be1338f087fe30e987d8fb0a2338d5
|
|
| BLAKE2b-256 |
f21ec233274bb093ec657da6641ffa2c7fa55806fcec56ffc239cf6e5c042c00
|
File details
Details for the file forestmq-0.0.1-py3-none-any.whl.
File metadata
- Download URL: forestmq-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e98445a450b3fde0f9e3bc25422dd958e50444aa09019f807cc55be7090144
|
|
| MD5 |
f763b92087fb7dc3b697639459258992
|
|
| BLAKE2b-256 |
a7ed3e9b6e83b2209e02d6aa3483817c598de29eed73cc64ae98bfc75e53e89b
|