Groups¶
- class GroupClient(beaker: Beaker)[source]¶
Methods for interacting with Beaker Groups. Accessed via the
Beaker.groupproperty.Warning
Do not instantiate this class directly! The
Beakerclient will create one automatically which you can access through the corresponding property.- get(group_id: str) Group[source]¶
- Examples:
>>> with Beaker.from_env() as beaker: ... group = beaker.group.get(group_id)
- Returns:
A
BeakerGroupprotobuf object.- Raises:
BeakerGroupNotFound – If the group doesn’t exist.
- create(name: str, *, workspace: Workspace | None = None, description: str | None = None, experiment_ids: list[str] | None = None) Group[source]¶
Create a new group.
- Returns:
The new
BeakerGroupobject.
- update(group: Group, *, name: str | None = None, description: str | None = None, add_experiment_ids: list[str] | None = None, archived: bool | None = None) Group[source]¶