Skip to main content

Python client for ForestMQ

Project description

ForestMQ 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forestmq-0.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for forestmq-0.0.1.tar.gz
Algorithm Hash digest
SHA256 84bab4f1507d7365ef46fa3978ec99b23223249ed47a79a5607c2c45ce57603f
MD5 76be1338f087fe30e987d8fb0a2338d5
BLAKE2b-256 f21ec233274bb093ec657da6641ffa2c7fa55806fcec56ffc239cf6e5c042c00

See more details on using hashes here.

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

Hashes for forestmq-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9e98445a450b3fde0f9e3bc25422dd958e50444aa09019f807cc55be7090144
MD5 f763b92087fb7dc3b697639459258992
BLAKE2b-256 a7ed3e9b6e83b2209e02d6aa3483817c598de29eed73cc64ae98bfc75e53e89b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page