Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 597 Bytes

README.md

File metadata and controls

47 lines (29 loc) · 597 Bytes

Python Microservice

A Sample Python Microservice using FastAPI

Create a virtual environment

python3 -m venv .venv

Install Requirements

Install FastAPI:

pip install "fastapi[all]"

Install all other requirements:

pip install -r requirements.txt

Start the server

Can now run the server by just running main.py:

python3 main.py

Alternate way of running:

uvicorn main:app --reload

View Docs

Documentation is available at:

docs

or

redocs