Skip to content

Config

config

config = Config(OctoFlowConfig) module-attribute

CacheConfig dataclass

path: Path = '${oc.select:resources.path}/cache' class-attribute instance-attribute

__init__(path: Path = '${oc.select:resources.path}/cache') -> None

ResourcesConfig dataclass

path: Path = '~/.octoflow' class-attribute instance-attribute

cache: CacheConfig = field(default_factory=CacheConfig) class-attribute instance-attribute

__init__(path: Path = '~/.octoflow', cache: CacheConfig = CacheConfig()) -> None

LoggingConfig dataclass

level: str = 'INFO' class-attribute instance-attribute

format: str = '%(asctime)s %(levelname)s %(name)s [%(pathname)s:%(lineno)s] %(message)s' class-attribute instance-attribute

__init__(level: str = 'INFO', format: str = '%(asctime)s %(levelname)s %(name)s [%(pathname)s:%(lineno)s] %(message)s') -> None

OctoFlowConfig dataclass

resources: ResourcesConfig = field(default_factory=ResourcesConfig) class-attribute instance-attribute

logging: LoggingConfig = field(default_factory=LoggingConfig) class-attribute instance-attribute

__init__(resources: ResourcesConfig = ResourcesConfig(), logging: LoggingConfig = LoggingConfig()) -> None