<jupyter_start><jupyter_text>Types **Pre-requisite**Install required Python packages.<jupyter_code>%pip install --upgrade purviewcli<jupyter_output><empty_output><jupyter_text>**Set the Environment Variable**Before purviewcli can be used, the environment variable `PURVIEW_NAME` needs to be set.<jupyter_code>%env PURVIEW_NAME=purview-sandbox<jupyter_output><empty_output><jupyter_text>Examples<jupyter_code># Get Typedefs Headers
!pv types readTypedefsHeaders
# Get Typedefs by Category
category = 'relationship'
!pv types readTypedefs --type {category}
# Get Typedef by Name
name = 'azure_sql_table'
!pv types readTypedef --name {name}
# Create a Typedef
category = 'ENTITY'
defName = 'my_entity_def'
!pv types createTypedefs --category {category} --defName {defName}
# Delete a Typedef
!pv types deleteTypedefs --defName 'my_entity_def'<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10126582278481013, 'fraction_numerical': 0.0, 'mean_word_length': 7.877551020408164, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '165242', 'license': 'MIT', 'n_tokens_mistral': 303, 'n_tokens_neox': 291, 'n_words': 74, 'path': 'samples/types.ipynb', 'repo_name': 'pedropaulovc/purviewcli', 'size': '869'}