pyapacheatlas.core.glossary.glossaryclient.PurviewGlossaryClient.import_terms#

PurviewGlossaryClient.import_terms(csv_path, glossary_name='Glossary', glossary_guid=None)#

Bulk import terms from an existing csv file. If you are using the system default, you must include the following headers: Name,Definition,Status,Related Terms,Synonyms,Acronym,Experts,Stewards

For custom term templates, additional attributes must include [Attribute][termTemplateName]attributeName as the header.

In the resulting JSON, you will receive an operation guid that can be passed to the PurviewClient.glossary.import_terms_status method to determine the success or failure of the import.

Parameters
  • csv_path (str) – Path to CSV that will be imported.

  • glossary_name (str) – Name of the glossary. Defaults to ‘Glossary’. Not used if glossary_guid is provided.

  • glossary_guid (str) – Guid of the glossary, optional if glossary_name is provided. Otherwise, this parameter takes priority over glossary_name.

Returns

A dict that contains an id that you can use in import_terms_status to get the status of the import operation.

Return type

dict