Create config/settings.py
Browse files- config/settings.py +21 -0
config/settings.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pydantic import BaseSettings
|
2 |
+
|
3 |
+
class Settings(BaseSettings):
|
4 |
+
# Streamlit
|
5 |
+
secret_key: str
|
6 |
+
# APIs
|
7 |
+
gemini_api_key: str
|
8 |
+
umls_api_key: str
|
9 |
+
bioportal_api_key: str
|
10 |
+
# Database
|
11 |
+
database_url: str = "sqlite:///./data/app.db"
|
12 |
+
# Celery / Redis
|
13 |
+
broker_url: str = "redis://redis:6379/0"
|
14 |
+
result_backend: str = "redis://redis:6379/1"
|
15 |
+
# Sentry
|
16 |
+
sentry_dsn: str = None
|
17 |
+
|
18 |
+
class Config:
|
19 |
+
env_file = ".env"
|
20 |
+
|
21 |
+
settings = Settings()
|