EddyGiusepe commited on
Commit
a620729
·
1 Parent(s): 2f8751f

Script para o FastAPI

Browse files
Files changed (1) hide show
  1. main.py +18 -0
main.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Data Scientist.: Dr. Eddy Giusepe Chirinos Isidro
4
+
5
+ Executar este Script
6
+ ====================
7
+ O seguinte comando iniciará o servidor:
8
+
9
+ $ fastapi dev main.py
10
+ """
11
+ from fastapi import FastAPI
12
+
13
+ app = FastAPI()
14
+
15
+
16
+ @app.get("/")
17
+ async def root():
18
+ return {"message": "Whatchamacallit"}