mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-11 21:18:36 +03:00
19 lines
338 B
Python
19 lines
338 B
Python
import sys
|
|
|
|
from pydantic import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
API_SECRET: str
|
|
DATABASE_URI: str
|
|
ENVIRONMENT: str
|
|
|
|
# derived settings
|
|
BROKER_URI: str
|
|
|
|
|
|
if "pytest" in sys.modules:
|
|
settings = Settings(_env_file=".env.test", _env_file_encoding="utf-8") # type: ignore
|
|
else:
|
|
settings = Settings()
|