Home
Nightline is a modern Event Listening framework based on Pydantic.
Supports:
- ✅ AWS Simple Queue Service (SQS)
- 🚧 Google PubSub
- 🚧 RabbitMQ
Submit an issue for more integrations!
Example
from nightline.services.sqs import AWSSQSEventStreamListener
from pydantic import BaseModel
class OrderMessage(BaseModel):
order_id: int
total: float
items: list[str]
listener = AWSSQSEventStreamListener(queue_url="https://your_queue_url")
def process_message(message: OrderMessage):
print(f"Processing order {message.order_id}")
listener.listen(process_message)
Installation
Contributing
Contributions are welcome! Please check our GitHub repository for guidelines.
Support
For support, please open an issue on GitHub.
Inspirations
This project has been heavily inspired by FastAPI, we couldn't have done it without them.