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.2.0.tar.gz (133.8 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.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nightline-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ba2fec0f89c1784812634844302a8871707c80cc515df9a3d9d6d2e6d344003a
MD5 8cd0e85caec0742b4d9529ac8df46f77
BLAKE2b-256 ab67a89af191efef4e63128025e76d27b955e752c28936e9f6f00429f46b097b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nightline-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e71e64374e39aef66616b1eb59a235156e08a58cb732d396f6079ba971b6c7f
MD5 5007f4bd74f75b52676fd6af7c469b49
BLAKE2b-256 8f34bd8d5da5e0135db93c720be91c1d8de1ea2db8948bdf4c923bf98f210792

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