from __future__ import annotations import os from dataclasses import dataclass @dataclass(frozen=True) class Settings: """Runtime configuration for the orchestrator Space.""" bucket_source: str = os.getenv("SPACE_FACTORY_BUCKET_SOURCE", "fffiloni/space-factory-runs") bucket_mount: str = os.getenv("SPACE_FACTORY_BUCKET_MOUNT", "/output") job_flavor: str = os.getenv("SPACE_FACTORY_JOB_FLAVOR", "cpu-basic") job_timeout: str = os.getenv("SPACE_FACTORY_JOB_TIMEOUT", "15m") job_image: str = os.getenv("SPACE_FACTORY_JOB_IMAGE", "python:3.12") @property def bucket_uri(self) -> str: return f"hf://buckets/{self.bucket_source}" settings = Settings()