Skip to content

Projects

Project

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

connect = vectice.connect(...)
workspace = connect.workspace("Iris workspace")
project = workspace.project("Iris project")

Or you can get it directly when connecting to Vectice:

import vectice

project = vectice.connect(..., workspace="Iris workspace", project="Iris project")

See Connection.connect to learn how to connect to Vectice.

connection

connection()

The Connection to which this project belongs.

Returns:

Type Description
Connection

The Connection to which this project belongs.

create_phase

create_phase(name, description=None)

Creates a phase.

Parameters:

Name Type Description Default
name str

The phase's name.

required
description str | None

The phase's description.

None

Returns:

Type Description
Phase

The newly created phase.

description

description()

The project's description.

Returns:

Type Description
str | None

The project's description.

id

id()

The project's id.

Returns:

Type Description
str

The project's id.

list_datasets

list_datasets(number_of_items=DEFAULT_NUMBER_OF_ITEMS)

Retrieves a list of dataset representations associated with the current project. See here: https://api-docs.vectice.com/reference/vectice/representation/dataset/

Parameters:

Name Type Description Default
number_of_items int

The number of datasets to retrieve. Defaults to 30.

DEFAULT_NUMBER_OF_ITEMS

Returns:

Type Description
list[DatasetRepresentation]

A list of DatasetRepresentation instances corresponding to the datasets in the current project.

list_models

list_models(number_of_items=DEFAULT_NUMBER_OF_ITEMS)

Retrieves a list of model representations associated with the current project. See here: https://api-docs.vectice.com/reference/vectice/representation/model/

Parameters:

Name Type Description Default
number_of_items int

The number of models to retrieve. Defaults to 30.

DEFAULT_NUMBER_OF_ITEMS

Returns:

Type Description
list[ModelRepresentation]

A list of ModelRepresentation instances corresponding to the models in the current project.

list_phases

list_phases(
    number_of_items=DEFAULT_NUMBER_OF_ITEMS,
    display_print=True,
)

Retrieves a list of phases belonging to the project. It will also print the first 10 phases as a tabular form. A link is provided to view the remaining phases.

Parameters:

Name Type Description Default
number_of_items int

The number of phases to retrieve. Defaults to 30.

DEFAULT_NUMBER_OF_ITEMS
display_print bool

If set to True, it will print the first 10 phases in a tabular form.

True

Returns:

Type Description
list[Phase]

A list of Phase instances corresponding to the current project.

name

name()

The project's name.

Returns:

Type Description
str

The project's name.

phase

phase(phase)

Get a phase.

Parameters:

Name Type Description Default
phase str

The name or id of the phase to get.

required

Returns:

Type Description
Phase

The specified phase.

properties

properties()

The project's identifiers.

Returns:

Type Description
dict

A dictionary containing the name, id and workspace items.

workspace

workspace()

The workspace to which this project belongs.

Returns:

Type Description
Workspace

The workspace to which this project belongs.