metaspace.projects_client

class metaspace.projects_client.ProjectsClient(gql)[source]
get_project(project_id)[source]
get_all_projects(query=None)[source]
get_my_projects()[source]

Note that the current user must have the MANAGER role in the project being edited.

Parameters:
  • project_id (str) –

  • provider (str) – Must be a known 3rd party link provider name. Contact us if you’re interested in integrating with METASPACE.

  • link (str) –

  • replace_existing – pass True to overwrite existing links from the same provider

Returns:

The updated list of external links

Note that the current user must have the MANAGER role in the project being edited.

Parameters:
  • project_id (str) –

  • provider (str) –

  • link (Optional[str]) – If None, all links from the provider will be removed

Returns:

The updated list of external links

class metaspace.projects_client.ProjectDict[source]
id: str
name: str
isPublic: bool
urlSlug: Optional[str]
currentUserRole: Optional[str]
numDatasets: int
publicationStatus: str
provider: str