Skip to main content

Nightline is a modern Event Listening framework based on Pydantic.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nightline-0.3.0.tar.gz (134.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nightline-0.3.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file nightline-0.3.0.tar.gz.

File metadata

  • Download URL: nightline-0.3.0.tar.gz
  • Upload date:
  • Size: 134.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.8

File hashes

Hashes for nightline-0.3.0.tar.gz
Algorithm Hash digest
SHA256 328184dae04d80b5158c5c9d667d28f0cac14124a44e02578fd09315d266480c
MD5 3817892586728e7c8f0ee4909a599775
BLAKE2b-256 46839f86de4b445b286261f61bd23e72d6f6796fcafb884111c4c328141a2dc3

See more details on using hashes here.

File details

Details for the file nightline-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: nightline-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.8

File hashes

Hashes for nightline-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc40673802ce656ee0444da9b1d8e987bcc80776695214aeeb42891eec5e53e2
MD5 ae19879a47751c88a19f84cdd88f717a
BLAKE2b-256 56d38966bf0b85c95f4c086343550c64b7c4b5ab5a5d6d2741490dc4d9936cf1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page