This commit is contained in:
parent
7d7da12f58
commit
dbc4c110bb
|
|
@ -0,0 +1,18 @@
|
|||
from functools import lru_cache
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(
|
||||
env_file=".env",
|
||||
env_file_encoding="utf-8",
|
||||
)
|
||||
|
||||
DB_USER: str
|
||||
DB_PASSWORD: str
|
||||
WALLET_PASSWORD: str
|
||||
DB_DSN: str
|
||||
SECRET_KEY: str
|
||||
|
||||
@lru_cache
|
||||
def get_settings():
|
||||
return Settings()
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,23 +0,0 @@
|
|||
[tool.uv]
|
||||
preview = true
|
||||
|
||||
[project]
|
||||
name = "tradingagents-backend"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"fastapi",
|
||||
"uvicorn[standard]",
|
||||
"sqlmodel",
|
||||
"python-jose[cryptography]",
|
||||
"passlib[bcrypt]",
|
||||
"python-multipart",
|
||||
"pydantic[email]",
|
||||
"tenacity",
|
||||
"aiomysql"
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest",
|
||||
"requests",
|
||||
]
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
fastapi
|
||||
uvicorn[standard]
|
||||
sqlmodel
|
||||
python-jose[cryptography]
|
||||
passlib[bcrypt]
|
||||
python-multipart
|
||||
pydantic[email]
|
||||
tenacity
|
||||
aiomysql
|
||||
Loading…
Reference in New Issue