first commit

This commit is contained in:
Prits001
2023-09-30 23:40:15 +03:00
commit dda01f0135
4 changed files with 21 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.venv
__pycache__
*.db

8
database.py Normal file
View File

@ -0,0 +1,8 @@
import sqlite3
con = sqlite3.connect("data.db")
cur = con.cursor()
cur.execute('CREATE TABLE IF NOT EXISTS data_table (key, value)')

9
main.py Normal file
View File

@ -0,0 +1,9 @@
from fastapi import FastAPI
import database
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
fastapi[all]