<jupyter_start><jupyter_text>Import the credentials file (to read HIEv API token)<jupyter_code>import credentials as c
api_token = c.hiev_api_key<jupyter_output><empty_output><jupyter_text>Set the base URL of the HIEv instance being called against<jupyter_code>base_url = 'https://hiev.westernsydney.edu.au/'<jupyter_output><empty_output><jupyter_text>Search for, and update, the **Creator** and **Description** field of the 'hievpy_test_upload_file' (that can be uploaded to hiev via the example hiev_upload routine)<jupyter_code>search_params = {"filename": "hievpy_test_upload_file"}

records = hp.search(api_token, base_url, search_params)

updates = {'creator_email': '<EMAIL>',
           'file_processing_description': 'Testing hievpy update function'}

hp.update_metadata(api_token, base_url, records, updates)<jupyter_output>100%|██████████| 1/1 [00:00<00:00,  6.93it/s]
{'fraction_non_alphanumeric': 0.12514220705346984, 'fraction_numerical': 0.01820250284414107, 'mean_word_length': 7.8, 'pattern_counts': {'":': 1, '<': 14, '<?xml version=': 0, '>': 13, 'https://': 1, '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': '104317', 'license': 'MIT', 'n_tokens_mistral': 328, 'n_tokens_neox': 311, 'n_words': 68, 'path': 'examples/hievpy_update_metadata.ipynb', 'repo_name': 'gdevine/hievpy', 'size': '891'}