blark.dependency_store.DependencyStoreConfig

class blark.dependency_store.DependencyStoreConfig(filename: Path | None, libraries: Dict[str, DependencyStoreLibrary])[source]

Bases: object

Dependency store configuration, from config.json.

Methods

__init__(filename, libraries)

as_json()

Get the configuration as JSON.

from_dict(config[, filename])

save(path)

Save the configuration as JSON to a file.

Attributes

filename

libraries

filename: Path | None
libraries: Dict[str, DependencyStoreLibrary]
classmethod from_dict(config: dict, filename: Path | None = None) DependencyStoreConfig[source]
as_json() str[source]

Get the configuration as JSON.

save(path: str | Path) None[source]

Save the configuration as JSON to a file.

__init__(filename: Path | None, libraries: Dict[str, DependencyStoreLibrary]) None