Skip to content

Commit

Permalink
added fastapi
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya30051993 committed Sep 13, 2024
1 parent a00fb76 commit 782d1bd
Show file tree
Hide file tree
Showing 9 changed files with 317 additions and 0 deletions.
Empty file added app/__init__.py
Empty file.
Empty file added app/api/v1/endpoints.py
Empty file.
7 changes: 7 additions & 0 deletions app/core/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from pydantic import BaseSettings

class Settings(BaseSettings):
app_name: str = "My FastAPI App"
debug: bool = True

settings = Settings()
Empty file added app/db/session.py
Empty file.
7 changes: 7 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def read_root():
return {"Hello": "World"}
Empty file added app/models/__init__.py
Empty file.
285 changes: 285 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tool.poetry]
name = "a-d-i"
version = "0.1.0"
description = "A.D.I. is a cutting-edge tool designed to enhance interaction with documents and web content. It introduces bi-directional Co-Pilot support, enabling dynamic interaction and navigation through content, and improving real-time query responses based on the current context"
authors = ["Aditya <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [{include = "a"}]

[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.114.1"
uvicorn = "^0.30.6"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Empty file added tests/__init__.py
Empty file.

0 comments on commit 782d1bd

Please sign in to comment.