Projects
Project ¶
Project(id, workspace, name, description=None)
Represent a Vectice project.
A project reflects a typical Data Science project, including phases and the associated assets like code, datasets, models, and documentation. Multiple projects may be defined within each workspace.
You can get a project from your Workspace
object by calling project()
:
import vectice
connection = vectice.connect(...)
my_workspace = connection.workspace("Iris workspace")
my_project = my_workspace.project("Iris project")
Or you can get it directly when connecting to Vectice:
import vectice
my_project = vectice.connect(..., workspace="Iris workspace", project="Iris project")
See Connection.connect
to learn
how to connect to Vectice.
Vectice users shouldn't need to instantiate Projects manually, but here are the project parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The project identifier. |
required |
workspace |
Workspace
|
The workspace this project belongs to. |
required |
name |
str
|
The name of the project. |
required |
description |
str | None
|
A brief description of the project. |
None
|
Source code in src/vectice/models/project.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
connection
property
¶
connection: Connection
The Connection to which this project belongs.
Returns:
Type | Description |
---|---|
Connection
|
The Connection to which this project belongs. |
description
property
¶
description: str | None
origin_dataset
writable
property
¶
origin_dataset: None
phases
property
¶
phases: list[Phase]
properties
property
¶
properties: dict
The project's identifiers.
Returns:
Type | Description |
---|---|
dict
|
A dictionary containing the |
workspace
property
¶
workspace: Workspace
The workspace to which this project belongs.
Returns:
Type | Description |
---|---|
Workspace
|
The workspace to which this project belongs. |
list_phases ¶
list_phases()
Prints a list of phases belonging to the project in a tabular format, limited to the first 10 items. A link is provided to view the remaining phases.
Returns:
Type | Description |
---|---|
None
|
None |
Source code in src/vectice/models/project.py
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
|
phase ¶
phase(phase)
Get a phase.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
phase |
str | int
|
The name or id of the phase to get. |
required |
Returns:
Type | Description |
---|---|
Phase
|
The specified phase. |
Source code in src/vectice/models/project.py
166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
|