azure_blob_storage_config.py 704 B

123456789101112131415161718192021222324252627282930
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class AzureBlobStorageConfig(BaseSettings):
  5. """
  6. Azure Blob storage configs
  7. """
  8. AZURE_BLOB_ACCOUNT_NAME: Optional[str] = Field(
  9. description='Azure Blob account name',
  10. default=None,
  11. )
  12. AZURE_BLOB_ACCOUNT_KEY: Optional[str] = Field(
  13. description='Azure Blob account key',
  14. default=None,
  15. )
  16. AZURE_BLOB_CONTAINER_NAME: Optional[str] = Field(
  17. description='Azure Blob container name',
  18. default=None,
  19. )
  20. AZURE_BLOB_ACCOUNT_URL: Optional[str] = Field(
  21. description='Azure Blob account URL',
  22. default=None,
  23. )