Skip to content

kryvokhyzha/python-rq-example

Repository files navigation

python-rq example

Code style: black

This is an example of using the Redis Queue with FastAPI backend.

Setup development environment

  1. Clone the repository using git clone command.
  2. Open the terminal and go to the project directory using cd command.
  3. Create virtual environment using python -m venv venv or conda create -n venv python=3.10 command.
  4. Activate virtual environment using source venv/bin/activate or conda activate venv command.
  5. Install poetry using instructions from here. Use with the official installer section.
  6. Set the following option to disable new virtualenv creation:
    poetry config virtualenvs.create false
  7. Install dependencies using poetry install --no-root command. The --no-root flag is needed to avoid installing the package itself.
  8. Setup pre-commit hooks using pre-commit install command. More information about pre-commit you can find here.
  9. Run the test to check the correctness using following command:
    python -m unittest -b

About

This is an example of using the RQ with FastAPI backend

Topics

Resources

Stars

Watchers

Forks