Project

class tamr_client.UnknownProject(url, name, description=None)[source]

A Tamr project of an unrecognized type

See https://docs.tamr.com/reference/the-project-object

Parameters
tamr_client.project.by_resource_id(session, instance, id)[source]

Get project by resource ID. Fetches project from Tamr server.

Parameters
  • instance (Instance) – Tamr instance containing this dataset

  • id (str) – Project ID

Raises
Return type

Union[CategorizationProject, MasteringProject, SchemaMappingProject, GoldenRecordsProject, UnknownProject]

tamr_client.project.by_name(session, instance, name)[source]

Get project by name Fetches project from Tamr server.

Parameters
  • instance (Instance) – Tamr instance containing this project

  • name (str) – Project name

Raises
Return type

Union[CategorizationProject, MasteringProject, SchemaMappingProject, GoldenRecordsProject, UnknownProject]

tamr_client.project.get_all(session, instance, *, filter=None)[source]

Get all projects from an instance

Parameters
  • instance (Instance) – Tamr instance from which to get projects

  • filter (Union[str, List[str], None]) – Filter expression, e.g. “externalId==wobbly” Multiple expressions can be passed as a list

Return type

Tuple[Union[CategorizationProject, MasteringProject, SchemaMappingProject, GoldenRecordsProject, UnknownProject], …]

Returns

The projects retrieved from the instance

Raises

requests.HTTPError – If an HTTP error is encountered.

tamr_client.project.attributes(session, project)[source]

Get all attributes from a project

Parameters

project (Union[CategorizationProject, MasteringProject, SchemaMappingProject, GoldenRecordsProject, UnknownProject]) – Project containing the desired attributes

Return type

Tuple[Attribute, …]

Returns

The attributes for the specified project

Raises

requests.HTTPError – If an HTTP error is encountered.

Exceptions

class tamr_client.project.NotFound[source]

Raised when referencing (e.g. updating or deleting) a project that does not exist on the server.

class tamr_client.project.Ambiguous[source]

Raised when referencing a project by name that matches multiple possible targets.