Skip to content

Manage Projects#

Using pycape you can create, delete, or query for your Cape projects.

List Projects#

    c.list_projects()

Default response:

    PROJECT ID   NAME                LABEL
    -----------  ------------------  ------------------
    project_123  Sales Transactions  sales-transactions

Get Project#

# Get project by ID
c.get_project(id="project_123")

# Get project by label
c.get_project(label="my-project")

Default response:

Project(id=project_123, name=My Project, label=my-project)

Create a Project#

c.create_project(name="My Project" owner="org_123" description="Linear Regression model with amazorn.")

Default response:

Project(id=project_123, name=My Project, label=my-project)

Delete a Project#

c.delete_project(id="project_123")

Default response:

Project (project_123) deleted