Skip to main content

Celery ValKey Backend

A custom result backend for Celery using ValKey as the storage engine. This backend provides a scalable, high-performance alternative to traditional result backends by leveraging ValKey's distributed key-value store capabilities.

Requirements

  • Python >= 3.8
  • Celery >= 4.4.0
  • ValKey >= 6.0.0

Installation

Install the package using pip:

pip install celery-valkey-backend

Quick Start

Use the ValKey backend in your Celery application:

from celery import Celery

app = Celery('your_app', backend='valkey://localhost:6379/0')

@app.task
def add(x, y):
    return x + y

# Using the task
result = add.delay(4, 4)
print(result.get())  # Output: 8

URL Format

The backend URL format:

valkey://host:port/db

Example:

valkey://localhost:6379/0

Development

# Clone the repository
git clone https://github.com/vuonglv1612/celery-valkey-backend.git
cd celery-valkey-backend

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

License

This project is licensed under the MIT License.

Support

If you encounter any problems or have questions, please open an issue on GitHub Issues.

Metadata

Release files for celery-valkey-backend 0.1.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 celery-valkey-backend 0.1.0
File Size Uploaded
celery_valkey_backend-0.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for celery-valkey-backend 0.1.0
File Interpreter ABI Platform
celery_valkey_backend-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / celery_valkey_backend-0.1.0.tar.gz

Download URL celery_valkey_backend-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cb0da14b8a9a220741c52fff5f304a4a4329e190423abaac169a4cf0c82f74ef
BLAKE2b-256 checksum
How to use checksums
e5f3221b7ddbe1f09bb277d8d093974d318264cae0a50d21855c418465e29fab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / celery_valkey_backend-0.1.0-py3-none-any.whl

Download URL celery_valkey_backend-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbd31b9ba515bce420c26c504ac3e0de2672516120e9d521380bf765e3d36cfa
BLAKE2b-256 checksum
How to use checksums
e5866f78d30ad86ae67871791e4c943f80e2e40adaae5c303cc1812425a6e46b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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