cascade.workspaces#
Workspace is a container for Repos
- class cascade.workspaces.Workspace(path: str, meta_fmt: Literal['.json', '.yml', '.yaml'] = '.json', default_repo: Optional[str] = None, *args: Any, **kwargs: Any)[source]#
-
The topmost container in Cascade, a collection of Repos
- __init__(path: str, meta_fmt: Literal['.json', '.yml', '.yaml'] = '.json', default_repo: Optional[str] = None, *args: Any, **kwargs: Any) None[source]#
-
- Parameters:
-
-
description – String description of an object
-
tags (Iterable[str], optional) – The list of tags to be added
-
See also
- get_default() Repo[source]#
-
Workspaces feature the default repo and return it using this method
- Returns:
-
Default repo
- Return type:
- Raises:
-
RuntimeError – When trying to use this method on an empty Workspace
- get_meta() List[Dict[Any, Any]][source]#
-
Being on disk adds updated_at field to the Meta
- Return type:
-
Meta