Skip to main content

Nightline is a modern Event Listening framework based on Pydantic.

Docs PyPI

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)

Source distribution for nightline 0.3.0
File Size Uploaded
nightline-0.3.0.tar.gz 134.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nightline 0.3.0
File Interpreter ABI Platform
nightline-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page