Skip to main content

workspace

Workspace context after successful authentication.

class

lucidlink.workspace.Workspace

Workspace(workspace_id: str, workspace_name: str, notification_watcher = None)

Parameter

Description

workspace_id

Workspace ID

workspace_name

Workspace name

notification_watcher

The client's daemon-notification watcher; this workspace subscribes itself as its handler (internal use)

workspace_id

Description

Workspace ID

workspace_name

Description

Workspace name

notification_watcher

Description

The client's daemon-notification watcher; this workspace subscribes itself as its handler (internal use)

Workspace context after successful authentication.

Provides access to filespace operations within the authenticated workspace. Returned by Daemon.authenticate().

Multiple filespaces can be linked concurrently — each link_filespace() call returns an independent Filespace that stays usable until it is unlinked.

Example

credentials = ServiceAccountCredentials(token)client.login(credentials)workspace = client.get_workspace(client.list_workspaces()[0].id)print(workspace.id, workspace.name)
property

id: str

Get the workspace ID.

property

linked_filespaces: List[Filespace]

Get the currently linked Filespace objects.

property

name: str

Get the workspace name.

method

list_filespaces() -> List[FilespaceInfo]

List all filespaces in this workspace.

Returns

List of FilespaceInfo objects with id, name, and created timestamp.

Raises

Exception

Condition

ConnectionError

If LucidLink services are unreachable

AuthenticationError

If access token expired

RuntimeError

If the client is not running

ConnectionError

Condition

If LucidLink services are unreachable

Condition

If access token expired

RuntimeError

Condition

If the client is not running

Example

filespaces = workspace.list_filespaces()for fs in filespaces:    print(f"{fs.name}")
method

stop() -> None

Stop workspace — unlinks all linked filespaces.

If a filespace's sync_mode is SYNC_ALL, sync_all() is called before it is unlinked. Per-filespace unlink errors are swallowed so one failing link never blocks the others. Safe to call multiple times.