Litestar SAQ
[!IMPORTANT] This plugin currently contains minimal features and is a work-in-progress
Installation
pip install litestar-saq
Usage
Here is a basic application that demonstrates how to use the plugin.
from __future__ import annotations
from litestar import Litestar
from litestar_saq import QueueConfig, SAQConfig, SAQPlugin
saq = SAQPlugin(config=SAQConfig(redis_url="redis://localhost:6397/0", queue_configs=[QueueConfig(name="samples")]))
app = Litestar(plugins=[saq])
You can start a background worker with the following command now:
litestar --app-dir=examples/ --app basic:app tasks run-worker
Using Litestar app from env: 'basic:app'
Starting SAQ Workers ──────────────────────────────────────────────────────────────────
INFO - 2023-10-04 17:39:03,255 - saq - worker - Worker starting: Queue<redis=Redis<ConnectionPool<Connection<host=localhost,port=6397,db=0>>>, name='samples'>
INFO - 2023-10-04 17:39:06,545 - saq - worker - Worker shutting down
Metadata
Release files for litestar-saq 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| litestar_saq-0.1.3.tar.gz | 80.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| litestar_saq-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.4 kB
Release files / litestar_saq-0.1.3.tar.gz
| Download URL | litestar_saq-0.1.3.tar.gz |
|---|---|
| Size | 80.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5567b3010ee6702001353fe33d0a6c7c4c7703204121d676fedb127127cc7c8f
|
|
BLAKE2b-256 checksum How to use checksums |
a8b36e5272662f3fa1fcf0ce23901ddbf99f31bf6d170ff0caf58122eb969078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / litestar_saq-0.1.3-py3-none-any.whl
| Download URL | litestar_saq-0.1.3-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
184bd4439921f85e1c489d53a5bc42af352515cf7a26c063dfc4161ab199f3bb
|
|
BLAKE2b-256 checksum How to use checksums |
39e95c0ca39d543c749f8e5dfa423610034547c1fe6ff7d3074af0f12e6d010a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|