You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lindorm_config.py 498B

1234567891011121314151617181920212223
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class LindormConfig(BaseSettings):
  5. """
  6. Lindorm configs
  7. """
  8. LINDORM_URL: Optional[str] = Field(
  9. description="Lindorm url",
  10. default=None,
  11. )
  12. LINDORM_USERNAME: Optional[str] = Field(
  13. description="Lindorm user",
  14. default=None,
  15. )
  16. LINDORM_PASSWORD: Optional[str] = Field(
  17. description="Lindorm password",
  18. default=None,
  19. )