Nightline is a modern Event Listening framework based on Pydantic.
Project description
Nightline
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
pip install nightline[sqs] # For SQS Support
Contribution
Contributions are more than welcome! Please open an issue on Github.
Support
For support, please open an issue!
Inspirations
This project has been heavily inspired by FastAPI, we couldn't have done it without them.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nightline-0.1.0.tar.gz.
File metadata
- Download URL: nightline-0.1.0.tar.gz
- Upload date:
- Size: 70.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9c26ebd5f2aaa68ba5ea9bdcb85582245533bff6cebcae6b6afbd87fd18f672
|
|
| MD5 |
76733d7f7a687b12c77db6ce83f15bd9
|
|
| BLAKE2b-256 |
19b6bd4efd75932eb68e882b950c024227693bbb92226c456890ffe7fbb84269
|
File details
Details for the file nightline-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nightline-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a0303050f3f1892c68831cd574f6090fdfe9172db6b2fccde4823bd494c5d11
|
|
| MD5 |
cc7807f36c51de5a6555f477b5d2b3c8
|
|
| BLAKE2b-256 |
cf8cc7552c16c6592643f6ca00dcc43b8c988ce304b2af4b7b8df59c6be57e62
|