quart extension to facilitate event message brokering
Project description
quart-events
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.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
Release history Release notifications | RSS feed
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.0.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for quart_events-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3eb39e03475054e5bd9e2ee47ff477e7c6f60b35ad3d84816d613973af09cb5 |
|
MD5 | 7e1bde9104ce0c07b5e685716f79d872 |
|
BLAKE2b-256 | 189cd72acd3f4c599e006b229f00ab2b21cee27131474bdf9c5408170f0c4b15 |