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