Source code for across.tools.core.config

from pydantic_settings import BaseSettings, SettingsConfigDict


[docs] class BaseConfig(BaseSettings): """Base configuration for the application."""
[docs] model_config = SettingsConfigDict(env_file=".env", extra="ignore")
[docs] class Config(BaseConfig): """Configuration for the application. The Config class extends BaseConfig and provides configuration settings for the application, including environment, hosting, logging, and request-related parameters. Attributes ---------- SPACETRACK_USER : str Space-Track.org username SPACETRACK_PWD : str Space-Track.org password """
[docs] SPACETRACK_USER: str | None = None
[docs] SPACETRACK_PWD: str | None = None
[docs] model_config = SettingsConfigDict(env_file=".env", extra="ignore")
[docs] config = Config()