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 for installation and quick start guide on this repo.

Full documentation is 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
    • 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.0.tar.gz (46.3 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.0-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

Details for the file protobunny-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for protobunny-0.1.0.tar.gz
Algorithm Hash digest
SHA256 81405242662ac9f4f5c18b92af77f4408c3a92c9d6ac8e3937d911887c560642
MD5 839fa864b3c55f006bced7afd23242c7
BLAKE2b-256 cd40cb9b943bb0ad7bc00a6b69fe6dea52b228d4290c5f766b095d347beb571e

See more details on using hashes here.

File details

Details for the file protobunny-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: protobunny-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for protobunny-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fa6fa0ab577698e2357986179ceebe12b6ae21d0967b00e412e3445f227f613
MD5 e0f22fe557007ddaeefa1e87f83e784a
BLAKE2b-256 e077c7025f04318f0a717e1abf9c0905b2a8e8e5208efa3769c422846c0e6f29

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