<jupyter_start><jupyter_text>Authentication + List sketches<jupyter_code>from timesketch_api_client.client import TimesketchApi

api_client = TimesketchApi("https://demo.timesketch.org","demo", "demo")

sketches = api_client.list_sketches()

print("Sketch id\t-\tSketch Name")
print("--------------------------------")
for sketch in sketches:
       print(str(sketch.id)+"\t|\t"+ sketch.name)<jupyter_output>Sketch id	-	Sketch Name
--------------------------------
130	|	test1Untitled sketch
3	|	The Greendale investigation
{'fraction_non_alphanumeric': 0.2332695984703633, 'fraction_numerical': 0.009560229445506692, 'mean_word_length': 3.1587301587301586, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '140901', 'license': 'Apache-2.0', 'n_tokens_mistral': 176, 'n_tokens_neox': 165, 'n_words': 31, 'path': 'example.ipynb', 'repo_name': 'deralexxx/timesketch-api', 'size': '523'}