aquart extension to facilitate event message brokering
Project description
quart-events
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quart_events-0.4.3.tar.gz.
File metadata
- Download URL: quart_events-0.4.3.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.9 Linux/5.15.79.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc76db3326161e7dd0d33cf09580be1702461311c78092f5d21b4de9db47d906
|
|
| MD5 |
e7084c55ed9e06753a58c8c9c4cb6076
|
|
| BLAKE2b-256 |
0b13a346d51e5cff8b67277dd02de96299e7597daf651c41b95ab88539026109
|
File details
Details for the file quart_events-0.4.3-py3-none-any.whl.
File metadata
- Download URL: quart_events-0.4.3-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.9 Linux/5.15.79.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d7cf66712b46960942259d737db236f2b0f4ca096ca9ae43c4b9d9af7ba9b0d
|
|
| MD5 |
09096f25aa988c422ca70a1aa3026459
|
|
| BLAKE2b-256 |
4318eb4d0ac080cc20f5b9e15838a3dfb3ffbfcd916354fa7b69f91002853ab0
|