Skip to content

Hadsonpar/FastAPI-and-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI-and-Python IN PROCESS DEV

Developing Web API with FastAPI and Python for Machine Learning Algorithms

Demos

Different demos about developing and implement of Web API with FastAPI and Python for Machine Learning Algorithms, for example: hello word, lineal regression, multiple regression and others.

Main directories: commands list (powershell)

001-Demo-Hello-World: Developing the Hello World with FastAPI.

  1. cd FastAPI-and-Python -> directory access main.
  2. mkdir 001-Demo-Hello-World -> creating directory 001-Demo-Hello-World.
  3. cd 001-Demo-Hello-World -> directory access 001-Demo-Hello-World.
  4. new-item app.py -> creating file python
  5. pip install fastapi uvicorn -> install FastAPI and uvicorn
  6. python -m uvicorn app:app --reload -> Execute server

002-demo-path-parameter: Developing the path parameter with FastAPI.

  1. cd FastAPI-and-Python -> directory access main.
  2. mkdir 002-demo-path-parameter -> creating directory 001-Demo-Hello-World.
  3. cd 002-demo-path-parameter -> directory access 002-demo-path-parameter.
  4. new-item app.py -> creating file python
  5. pip install fastapi uvicorn -> install FastAPI and uvicorn
  6. python -m uvicorn app:app --reload -> Execute server

Command for virtual environment (powershell)

  1. python -m venv env -> Create virtual environment
  2. python -m uvicorn app:app --reload -> Execute server

Commands list additional (powershell)

  1. Remove-Item 001-Demo-Hello-World -> Delete file or directory
  2. python -m pip install --upgrade pip -> Updating pip

About

Developing Web API with FastAPI and Python for Machine Learning Algorithms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages