Workspaces
Workspace ¶
Workspace(id, name, description=None)
Represent a Vectice Workspace.
Workspaces are containers used to organize projects, assets, and users.
Vectice users have access to a personal workspace and other workspaces so they can learn and collaborate with other users. An organization will have many workspaces, each with an Admin and Members with different privileges.
Note that only an Org Admin can create a new workspace in the organization.
You can get a workspace from your Connection
object by calling workspace()
:
import vectice
connection = vectice.connect(...)
my_workspace = connection.workspace("Iris workspace")
Or you can get it directly when connecting to Vectice:
import vectice
my_workspace = vectice.connect(..., workspace="Iris workspace")
See Connection.connect
to learn
how to connect to Vectice.
Vectice users shouldn't need to instantiate Workspaces manually, but here are the workspace parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The workspace identifier. |
required |
name |
str
|
The name of the workspace. |
required |
description |
str | None
|
The description of the workspace. |
None
|
Source code in src/vectice/models/workspace.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
connection
property
¶
connection: Connection
The Connection to which this workspace belongs.
Returns:
Type | Description |
---|---|
Connection
|
The Connection to which this workspace belongs. |
description
property
¶
description: str | None
projects
property
¶
projects: list[Project]
properties
property
¶
properties: dict
The workspace's name and id.
Returns:
Type | Description |
---|---|
dict
|
A dictionary containing the |
list_projects ¶
list_projects()
Prints a list of projects belonging to the workspace in a tabular format, limited to the first 10 items. A link is provided to view the remaining projects.
Returns:
Type | Description |
---|---|
None
|
None |
Source code in src/vectice/models/workspace.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
|
project ¶
project(project)
Get a project.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project |
str | int
|
The project name or id. |
required |
Returns:
Type | Description |
---|---|
Project
|
The project. |
Source code in src/vectice/models/workspace.py
124 125 126 127 128 129 130 131 132 133 134 135 136 |
|