basaHoushanApi/src/config.py

40 lines
1.8 KiB
Python

from os import getenv
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
base_url: str = getenv("BASE_URL", "")
database_url: str = getenv("DATABASE_URL", "")
jwt_secret_key: str = getenv("JWT_SECRET_KEY", "")
jwt_admin_secret_key: str = getenv("JWT_ADMIN_SECRET_KEY", "")
jwt_algorithm: str = getenv("JWT_ALGORITHM", "")
kavenegar_api_key: str = getenv("KAVENEGAR_API_KEY", "")
openai_api_key: str = getenv("OPENAI_API_KEY", "")
google_api_key: str = getenv("GOOGLE_API_KEY", "")
deepseek_api_key: str = getenv("DEEPSEEK_API_KEY", "")
anthropic_api_key: str = getenv("ANTHROPIC_API_KEY", "")
st_endpoint: str = getenv("ST_ENDPOINT", "")
st_access_key: str = getenv("ST_ACCESS_KEY", "")
st_secret_key: str = getenv("ST_SECRET_KEY", "")
st_bucket_name: str = getenv("ST_BUCKET_NAME", "")
ydc_api_key: str = getenv("YDC_API_KEY", "")
mmerchant_id: str = getenv("MMERCHANT_ID", "")
chroma_url: str = getenv("CHROMA_URL", "")
chroma_credentials: str = getenv("CHROMA_CREDENTIALS", "")
cafebazaar_pishkhan_api_secret: str = getenv("CAFEBAZAAR_PISHKHAN_API_SECRET", "")
cafebazaar_price_key: str = getenv("CAFEBAZAAR_PRICE_KEY", "")
myket_access_token: str = getenv("MYKET_ACCESS_TOKEN", "")
ghost_id: str = getenv("GHOST_ID", "")
fal_key: str = getenv("FAL_KEY", "")
mailersend_api_key: str = getenv("MAILERSEND_API_KEY", "")
model_config = SettingsConfigDict(env_file=".api.env")
suno_api_key: str = getenv("SUNO_API_KEY", "")
pixverse_api_key: str = getenv("PIXVERSE_API_KEY", "")
internal_telegram_secret: str = getenv("INTERNAL_TELEGRAM_SECRET", "")
liara_api_url: str = getenv("LIARA_API_URL", "")
liara_api_key: str = getenv("LIARA_API_KEY", "")
kia_api_key: str = getenv("KIA_API_KEY", "")
settings = Settings()