Repository for the Using FastAPI to Build Python Web APIs tutorial blog on RealPython written by FastAPI's creator tiangolo
-
HTTP:
git clone https://github.com/enguy-hub/fastapi_basictutorial.git
-
SSH
git clone ssh://git@github.com:enguy-hub/fastapi_basictutorial.git
-
For
CONDA
-
Create the environment with:
conda env create --file env.yml
-
Activate the environment with:
conda activate fastapienv
-
-
For
VENV
-
Create the environment with:
python3 -m venv fastapienv
-
Activate the environment with:
source fastapienv/bin/activate
-
Install the dependencies with:
pip install -r requirement.txt
-
-
For runnning the
First Steps
part from the tutorial:uvicorn main_firststeps:app --reload
-
For runnning the
Path Parameters: Get an Item by ID
section from the tutorial:uvicorn main_pathparams:app --reload
-
For runnning the
Request Body: Receiving JSON Data
part from the tutorial:uvicorn main_request:app --reload