1
0
Fork 0
An example template of a Python API made using FastAPI.
This repository has been archived on 2025-11-01. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2023-12-27 20:27:14 +08:00
.github Update FUNDING.yml 2023-12-27 20:27:14 +08:00
.gitignore Initial commit 2023-05-18 19:15:22 +08:00
LICENSE Initial commit 2023-05-18 19:15:22 +08:00
main.py feat: upload source 2023-05-18 19:20:27 +08:00
README.md Update README.md 2023-05-26 17:38:20 +08:00
requirements.txt feat: upload source 2023-05-18 19:20:27 +08:00
router.py feat: upload source 2023-05-18 19:20:27 +08:00

FastAPI Template

An example template of a Python API made using FastAPI.

Languages

🏃‍♂️ Running the API

  1. Install the required dependencies using the following command:
pip install -r requirements.txt
  1. Run the API using the following command:
  • Replace the value of --port with the port you want the API to run on.
uvicorn main:app --port 3000

📝 Notes

  • router.py contains all of the endpoints of the API.