Skip to main content

aquart extension to facilitate event message brokering

Project description

quart-events

PyPI version Python Versions License: MIT

Usage

quart_events.EventBroker loads a blueprint into Quart which allows clients to subscribe to events via a WebSockets. The app can then generate events that can be sent to all subscribed clients in real-time.

Please see test/app.py for an example app. This app is used when running testing via py.test but can also be run standalone.

Change Log

[0.4.2] - 2021-12-23

  • Change build system from setuptools to poetry

[0.4.0] - 2021-11-08

  • add type hints and type validation with mypy
  • requires asyncio-multisubscriber-queue 0.3.0
  • pytest plugin to facilitate capturing events while other tests are running; plugin name is quart_events_catcher
  • added optional callbacks
  • websocket auth improvements
    • token is now seemlessly managed using the user's session data
    • token has an expiration; user is disconnected from the socket upon expiration
    • a callback is available to further validate user using other criteria (like Flask-Login)

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

quart-events-0.4.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

quart_events-0.4.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file quart-events-0.4.2.tar.gz.

File metadata

  • Download URL: quart-events-0.4.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.2 Linux/4.19.104-microsoft-standard

File hashes

Hashes for quart-events-0.4.2.tar.gz
Algorithm Hash digest
SHA256 50e99640b442ffb6f7c3ac0d127d81d820d119d55735e4ef61f7f1ab980073ec
MD5 073cab3bf0c22afeea16e1f08e5d3225
BLAKE2b-256 85c6e2d0c9e0b126277cd2734d37e8390ced37d1a83045719e74cb6fa822b100

See more details on using hashes here.

File details

Details for the file quart_events-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: quart_events-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.2 Linux/4.19.104-microsoft-standard

File hashes

Hashes for quart_events-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8016654b45482c94855300ffaf80f1de266bee81ee0cc91886701ba8dfd3d07
MD5 d2d4eca72dd53060828b7deb643458ca
BLAKE2b-256 9cd0f7d055d4a9740fe8c5674cb8fce7ae7461ac51b8b9efdcdeac9b85103c40

See more details on using hashes here.

Supported by

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