Metadata-Version: 2.4
Name: pigeonholes
Version: 0.1.0
Summary: Message consumer framework
Keywords: asyncio,sqs,lambda,message-queue,event-driven
Author: alpine
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: aioboto3>=15.0.0,<16 ; extra == 'aws'
Requires-Python: >=3.11
Provides-Extra: aws
Description-Content-Type: text/markdown

# Pigeonholes

Structured Routing for Unstructured Event Streams.

Format the payload, define the key, and let Pigeonholes handle the rest.
A lightweight, asyncio-powered message consumer framework for modern cloud queues.

- 📬 Postal Precision – Route messages seamlessly using typed routing keys, just like addressing a letter.
- ⚡ Asyncio & Lightweight – Built for high performance on modern Python with zero unnecessary overhead.
- ☁️ Cloud Native Ready – Native support for SQS long-polling (ECS) and AWS Lambda handlers out of the box.
- 🚀 Lazy Loading & Codegen – Optimize startup times and Lambda cold starts with automated worker registry.

## Philosophy

Pigeonholes is a simple message consumer framework, built on three principles.

1. **Explicit behavior.** The framework never decides for you. `ack` has no default, and what happens to a failed message (`on_error`) is yours to write. What happened to a failed message is logged as a fact; why it happened is left to the handler that decided.
2. **Show the decisions that matter when using a message queue.** Instead of adding freedom, Pigeonholes gives you the decision points as a small set of fixed choices: when to ack, whether to leave or delete a failed message, what to do with an unknown routing key, and whether a key may have more than one worker.
3. **Keep business logic apart from operations.** A worker knows nothing about where it runs (ECS, Lambda), which broker feeds it, or which cloud it is on. Retry and dead-letter policy stay in the broker's configuration unless you explicitly decide otherwise in code.

See [docs/user/pigeonholes.md](docs/user/pigeonholes.md) for the manual.

