Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to run fastapi with code python

# method 1. in terminal
$uvicorn main:app --reload

# method 2. run with python code
import os
def run():
    os.system('uvicorn main:app --reload')


if __name__ == '__main__':

    run()
 
PREVIOUS NEXT
Tagged: #run #fastapi #code #python
ADD COMMENT
Topic
Name
6+9 =