Types for managing MADSci contexts and their configurations.
Classes¶
MadsciContext(**kwargs: Any)Base class for MADSci context settings.
Initialize settings with walk-up file discovery.
Configuration file paths (YAML, JSON, TOML, .env) are resolved via walk-up discovery from a starting directory. Each filename walks up independently, so
node.settings.yamlcan resolve in the node dir whilesettings.yamlresolves in the lab root.The starting directory is determined by (in priority order):
_settings_dirkeyword argumentMADSCI_SETTINGS_DIRenvironment variableCurrent working directory (default)
Args: _settings_dir: Starting directory for walk-up file discovery. **kwargs: Forwarded to
BaseSettings.__init__.Ancestors (in MRO)¶
madsci.common.types.base_types.MadsciBaseSettings
pydantic_settings.main.BaseSettings
pydantic.main.BaseModel
Class variables¶
data_server_url: pydantic.networks.AnyUrl | None:event_server_url: pydantic.networks.AnyUrl | None:experiment_server_url: pydantic.networks.AnyUrl | None:lab_server_url: pydantic.networks.AnyUrl | None:location_server_url: pydantic.networks.AnyUrl | None:resource_server_url: pydantic.networks.AnyUrl | None:workcell_server_url: pydantic.networks.AnyUrl | None: