Skip to main content

Protobuf messages and python mqtt messaging toolkit

Project description

protobunny logo

Protobunny

Note: The project is in early development.

The protobunny library simplifies messaging for asynchronous tasks by providing:

  • A clean “message-first” API
  • Python class generation from Protobuf messages using betterproto
  • Connections facilities to RabbitMQ
  • Message publishing/subscribing with typed topics
  • Generate and consume Result messages (success/failure + optional return payload)
  • Protocol Buffers messages serialization/deserialization
  • Support “task-like” queues (shared/competing consumers) vs broadcast subscriptions
  • Support async and sync contexts
  • Transparently serialize "JSON-like" payload fields (numpy-friendly)

Requirements

  • Python >= 3.10, < 3.13
  • A running RabbitMQ instance (v4.0+ is preferred)

Project scope

Protobunny is designed for teams who use messaging to coordinate work between microservices or different python processes and want:

  • A small API surface, easy to learn and use, both async and sync
  • Typed RabbitMQ messaging
  • Consistent topic naming and routing
  • Builtin task queue semantics and result messages
  • Transparent handling of JSON-like payload fields as plain dictionaries/lists
  • Optional validation of required fields
  • Builtin logging service

Usage

See the Quick example on GitHub for installation and quick start guide.

Full docs are available at https://am-flow.github.io/protobunny/.


Development

Run tests

make test

Integration tests (RabbitMQ required)

Integration tests expect RabbitMQ to be running (for example via Docker Compose in this repo):

docker compose up -d
make integration-test

Future work

  • Support grcp
  • Support for RabbitMQ certificates (through pika)
  • More backends:
    • multiprocessing.Queue or queue.Queue for simple local scenarios
    • Mosquitto
    • Redis
    • NATS
    • Cloud providers (AWS SQS/SNS)

License

MIT Copyright (c) 2025 AM-Flow b.v.

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

protobunny-0.1.1b1.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

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

protobunny-0.1.1b1-py3-none-any.whl (54.6 kB view details)

Uploaded Python 3

File details

Details for the file protobunny-0.1.1b1.tar.gz.

File metadata

  • Download URL: protobunny-0.1.1b1.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for protobunny-0.1.1b1.tar.gz
Algorithm Hash digest
SHA256 0f8338f1193d45070c78013f2adede3def082464f5ba00f2b2296b727ac0ca02
MD5 032822762b8e13c72b8420e6aaa40a57
BLAKE2b-256 5ef83817212cd9eeaf72403524d453a307949393410013ebf1954f1d941c028a

See more details on using hashes here.

File details

Details for the file protobunny-0.1.1b1-py3-none-any.whl.

File metadata

File hashes

Hashes for protobunny-0.1.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 7116879badf11222b331005d56df4ca42bd78af4ef3d8e438fc7cfc6118ac2ea
MD5 35b00144dd822d3e8decef84c43df5e0
BLAKE2b-256 67513f635130be262fcf0db7f35652231155fdc30638586eb4c51a468153bb6a

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