Installation
RestQ is designed to be easy to install and get started with. Here's how you can add it to your project.
Requirements
Before installing RestQ, ensure you have:
- Python >= 3.9
- Redis server running
- Poetry (recommended) or pip
Installing with Poetry
The recommended way to install RestQ is using Poetry:
Installing with pip
Alternatively, you can install using pip:
Redis Setup
RestQ requires a Redis server. Here are a few ways to get Redis running:
Using Docker
Local Installation
Download the Redis installer from Redis Downloads or use WSL2 with Ubuntu.
Verifying Installation
You can verify your installation by running this simple test:
from restq import Queue
# Initialize a queue
queue = Queue(name="test-queue", url="redis://localhost:6379/0")
# If no errors occur, installation is successful!
Next Steps
Now that you have RestQ installed, check out the Quick Start Guide to learn how to create your first task queue!