Attribute Mapping Project

class tamr_client.AttributeMapping(url, input_attribute, unified_attribute)[source]

A Tamr Attribute Mapping.

See https://docs.tamr.com/new/reference/retrieve-projects-mappings

Parameters
  • url (URL) –

  • input_attribute (Attribute) –

  • unified_attribute (Attribute) –

tamr_client.schema_mapping.attribute_mapping.get_all(session, tamr_project)[source]

Get all attribute mappings of a Tamr project

Parameters

tamr_project (Union[CategorizationProject, MasteringProject, SchemaMappingProject, GoldenRecordsProject, UnknownProject]) – Tamr project

Return type

List[AttributeMapping]

Returns

The attribute mappings of the project

Raises

requests.HTTPError – If an HTTP error is encountered.

tamr_client.schema_mapping.attribute_mapping.create(session, project, input_attribute, unified_attribute)[source]

Create a mapping in Tamr between input attributes and unified attributes of the given project.

Parameters
  • project (Union[CategorizationProject, MasteringProject, SchemaMappingProject, GoldenRecordsProject, UnknownProject]) – Tamr project

  • input_attribute (Attribute) – The attribute of a source dataset to map

  • unified_attribute (Attribute) – The attribute of the unified dataset to map onto

Return type

AttributeMapping

Returns

Attribute mapping created in Tamr

Raises
tamr_client.schema_mapping.attribute_mapping.delete(session, attribute_mapping)[source]

Delete an existing attribute mapping

Parameters

attribute_mapping (AttributeMapping) – Existing attribute mapping to delete

Raises

Exceptions

class tamr_client.schema_mapping.attribute_mapping.NotFound[source]

Raised when referencing an attribute mapping that does not exist on the server.

class tamr_client.schema_mapping.attribute_mapping.Ambiguous[source]

Raised when an attribute mapping specification is incomplete, ambiguous, or contradictory.

class tamr_client.schema_mapping.attribute_mapping.AlreadyExists[source]

Raised when an attribute mapping with these specifications already exists.