Shri
commited on
Commit
Β·
0c8dccb
1
Parent(s):
82d4904
initial commit
Browse files- main.py +0 -7
- requirements/dev.txt +17 -0
- src/{config.py β core/config.py} +0 -0
- src/{database.py β core/database.py} +0 -0
- src/{exceptions.py β core/exceptions.py} +0 -0
- src/{models.py β core/models.py} +0 -0
- src/{pagination.py β core/pagination.py} +0 -0
- src/home/config.py +6 -0
- src/home/models.py +2 -0
- src/home/service.py +2 -0
- src/main.py +7 -0
main.py
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
from fastapi import FastAPI
|
| 2 |
-
|
| 3 |
-
app = FastAPI()
|
| 4 |
-
|
| 5 |
-
@app.get("/")
|
| 6 |
-
def root():
|
| 7 |
-
return {"message": "Hello, FastAPI!"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements/dev.txt
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
annotated-doc==0.0.3
|
| 2 |
+
annotated-types==0.7.0
|
| 3 |
+
anyio==4.11.0
|
| 4 |
+
click==8.3.0
|
| 5 |
+
fastapi==0.121.0
|
| 6 |
+
greenlet==3.2.4
|
| 7 |
+
h11==0.16.0
|
| 8 |
+
idna==3.11
|
| 9 |
+
pydantic==2.12.3
|
| 10 |
+
pydantic_core==2.41.4
|
| 11 |
+
sniffio==1.3.1
|
| 12 |
+
SQLAlchemy==2.0.44
|
| 13 |
+
sqlmodel==0.0.27
|
| 14 |
+
starlette==0.49.3
|
| 15 |
+
typing-inspection==0.4.2
|
| 16 |
+
typing_extensions==4.15.0
|
| 17 |
+
uvicorn==0.38.0
|
src/{config.py β core/config.py}
RENAMED
|
File without changes
|
src/{database.py β core/database.py}
RENAMED
|
File without changes
|
src/{exceptions.py β core/exceptions.py}
RENAMED
|
File without changes
|
src/{models.py β core/models.py}
RENAMED
|
File without changes
|
src/{pagination.py β core/pagination.py}
RENAMED
|
File without changes
|
src/home/config.py
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pydantic import BaseSettings
|
| 2 |
+
|
| 3 |
+
class HomeSettings(BaseSettings):
|
| 4 |
+
FEATURE_ENABLED: bool = True
|
| 5 |
+
|
| 6 |
+
home_settings = HomeSettings()
|
src/home/models.py
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import uuid
|
| 2 |
+
import sqlmodel
|
src/home/service.py
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List
|
| 2 |
+
from uuid import UUID
|
src/main.py
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
|
| 3 |
+
app = FastAPI()
|
| 4 |
+
|
| 5 |
+
@app.get("/")
|
| 6 |
+
def root():
|
| 7 |
+
return {"message": "Hello, FastAPI!"}
|