iptvtools.settings

Settings Module.

pydantic settings iptvtools.settings.GlobalSettings[source]

System level settings.

Fields:
field ci: bool = False

Indicator for whether or not in CI/CD environment.

pydantic settings iptvtools.settings.Settings[source]

Project specific settings.

Config:
  • env_prefix: str = IPTVTOOLS_

Fields:
field logging_level: str | None = 'INFO'

Default logging level for the project.

iptvtools.settings.global_settings = GlobalSettings(ci=True)

Instance for system level settings.

iptvtools.settings.settings = Settings(logging_level='INFO')

Instance for project specific settings.