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 projectinput_attribute (
Attribute) – The attribute of a source dataset to mapunified_attribute (
Attribute) – The attribute of the unified dataset to map onto
- Return type
AttributeMapping- Returns
Attribute mapping created in Tamr
- Raises
attribute_mapping.AlreadyExists – If an attribute mapping with these specifications already exists.
requests.HTTPError – If any other HTTP error is encountered.
-
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
attribute_mapping.NotFound – If no attribute mapping could be found at the specified URL. Corresponds to a 404 HTTP error.
requests.HTTPError – If any other HTTP error is encountered.
Exceptions¶
-
class
tamr_client.schema_mapping.attribute_mapping.NotFound[source]¶ Raised when referencing an attribute mapping that does not exist on the server.