Skip to main content

Litestar integration for SAQ

Project description

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 workers run
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

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

litestar_saq-0.1.10.tar.gz (76.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

litestar_saq-0.1.10-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file litestar_saq-0.1.10.tar.gz.

File metadata

  • Download URL: litestar_saq-0.1.10.tar.gz
  • Upload date:
  • Size: 76.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for litestar_saq-0.1.10.tar.gz
Algorithm Hash digest
SHA256 68b921c31681f0a329cdacf1f170f62a1d2d78887a0f7a8ec6281262f705381c
MD5 66bd69b90701bdf5cf99dc5779737fa3
BLAKE2b-256 3069894527f58c84bb6510a8a63f55509948701cabfc12862f06982d8bf052b3

See more details on using hashes here.

File details

Details for the file litestar_saq-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: litestar_saq-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for litestar_saq-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3fa4d67b68924293a2efc5fc2c0fcf1b1f50d1b996b3c2c118bfb482bbe8a6
MD5 d3c9b80c47be46b68d0b4cabd1d10b9e
BLAKE2b-256 9eaaa977cef13ec6717a995c7a7b52d051a0b4a7db2cfd96ed912272bed59ac7

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