kefahi / pytest_redispool_fastapi

A sample code demonistrating Fast Api using redis pools and pytest all running in async mode (asyncio)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The problem

It was tricky to get the three working together : FastApi, Redis ConnectionPoos and Pytest all under Asyncio.

This sample code provides the boiler-plate of a working solution.

Install and run

git clone https://github.com/kefahi/pytest_redispool_fastapi.git
cd pytest_redispool_fastapi
pip install --user -r requirements.txt
pytest

About

A sample code demonistrating Fast Api using redis pools and pytest all running in async mode (asyncio)

License:GNU General Public License v3.0


Languages

Language:Python 95.5%Language:Shell 4.5%