Skip to main content

Module for working with redis

Project description

Redis plugin for aioworkers.

https://img.shields.io/pypi/v/aioworkers-redis.svg https://github.com/aioworkers/aioworkers-redis/workflows/Tests/badge.svg Code style: ruff Code style: Mypy Documentation Status Python versions https://img.shields.io/pypi/dm/aioworkers-redis.svg Hatch project

Features

Usage

Add this to aioworkers config.yaml:

redis:
    cls: aioworkers_redis.base.Connector
    prefix: app
    connection:
        host: localhost
        port: 6379
        maxsize: 20
queue:
    cls: aioworkers_redis.queue.Queue
    connection: .redis
    format: json
    key: queue

You can work with redis queue like this:

await context.queue.put({'a': 1})
d = await context.queue.get()

Development

Check code:

hatch run lint:all

Format code:

hatch run lint:fmt

Run tests:

hatch run pytest

Run tests with coverage:

hatch run cov

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

aioworkers_redis-0.9.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

aioworkers_redis-0.9.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file aioworkers_redis-0.9.0.tar.gz.

File metadata

  • Download URL: aioworkers_redis-0.9.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for aioworkers_redis-0.9.0.tar.gz
Algorithm Hash digest
SHA256 2421384eb3b12d0ec9a49d254656e17c378ef58a1db09a2379e27d841e85f839
MD5 99ff05122e727fe1b4a6bef25d886324
BLAKE2b-256 cb7c7ce068bfb5b0ead1bc8b636032da8ab7bdabf9121b5dd70fa200b109a154

See more details on using hashes here.

File details

Details for the file aioworkers_redis-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aioworkers_redis-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89e5daa935d3c3753c674118868aa98bbe390333851a3facaa2fd79dc0324fd8
MD5 e794211d87f5c8a7c951c30f9a4c73bc
BLAKE2b-256 e33278b7cc6b21798042e8355826b3ddc34035da546312259c71082fbab23fa0

See more details on using hashes here.

Supported by

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