woger.workspace module

class woger.workspace.Workspace(data)[source]

Bases: object

Wrapper interface to store path and data

id

int or str

root

str

path

BasePathStructure

data

BaseData

Examples

Basic workspace

Workspace with chained loaders

classmethod construct(root, path_structure_cls=None, data_cls=None)[source]

Creates a Workspace object

Convinient alternative constructor

id

Workspace id

Id is used to sort workspaces from oldest to latest

path

Bound path structure object

root

Workspace root

track(action: str) → woger.action_tracker.ActionTracker[source]

Creates an ActionTracker object to manage action action

It’s a shortcut to avoid creating ActionTracker directly

action

str – Action to track