Skip to main content

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

Metadata

Release files for aioworkers-redis 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioworkers-redis 0.9.0
File Size Uploaded
aioworkers_redis-0.9.0.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aioworkers-redis 0.9.0
File Interpreter ABI Platform
aioworkers_redis-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.2 kB

Release files / aioworkers_redis-0.9.0.tar.gz

Download URL aioworkers_redis-0.9.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2421384eb3b12d0ec9a49d254656e17c378ef58a1db09a2379e27d841e85f839
BLAKE2b-256 checksum
How to use checksums
cb7c7ce068bfb5b0ead1bc8b636032da8ab7bdabf9121b5dd70fa200b109a154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / aioworkers_redis-0.9.0-py3-none-any.whl

Download URL aioworkers_redis-0.9.0-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89e5daa935d3c3753c674118868aa98bbe390333851a3facaa2fd79dc0324fd8
BLAKE2b-256 checksum
How to use checksums
e33278b7cc6b21798042e8355826b3ddc34035da546312259c71082fbab23fa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8

2 release files

0.7.1

1 release file

0.7

1 release file

0.6.1

1 release file

0.6

1 release file

0.5.1

1 release file

0.5

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page