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
Contributing
Contributions are more than welcome! Please open an issue on Github.
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.
Metadata
Release files for nightline 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nightline-0.3.0.tar.gz | 134.6 kB | Without provenance | Details for nightline-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nightline-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for nightline-0.3.0-py3-none-any.whl |
Total release size: 144.0 kB
Release files / nightline-0.3.0.tar.gz
| Download URL | nightline-0.3.0.tar.gz |
|---|---|
| Size | 134.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
328184dae04d80b5158c5c9d667d28f0cac14124a44e02578fd09315d266480c
|
|
BLAKE2b-256 checksum How to use checksums |
46839f86de4b445b286261f61bd23e72d6f6796fcafb884111c4c328141a2dc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.8
|
Release files / nightline-0.3.0-py3-none-any.whl
| Download URL | nightline-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc40673802ce656ee0444da9b1d8e987bcc80776695214aeeb42891eec5e53e2
|
|
BLAKE2b-256 checksum How to use checksums |
56d38966bf0b85c95f4c086343550c64b7c4b5ab5a5d6d2741490dc4d9936cf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.8
|
Security for nightline 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.