<jupyter_start><jupyter_text>Getting Started with PrimeHub Python SDKPrimeHub Python SDK makes you automation with PrimeHub Platform. In order to make the SDK working, you have to * install the library with `pip`* create a config file in the `~/.primehub/config.json`  Install with pip* Let's install PrimeHub Python SDK with `pip`.<jupyter_code>!pip install primehub-python-sdk<jupyter_output><empty_output><jupyter_text>Request the API TokenIn order to get the token, you have to have an account in the PrimeHub cluster, the following process will ask you loing with your account.PLEASE UPDATE `PRIMEHUB_CLUSTER` to your cluster<jupyter_code>PRIMEHUB_CLUSTER = 'http://primehub-python-sdk.primehub.io'

from primehub import PrimeHub, PrimeHubConfig
ph = PrimeHub(PrimeHubConfig())
ph.config.generate(PRIMEHUB_CLUSTER)<jupyter_output><empty_output><jupyter_text>Verify configration with PrimeHub Python SDK<jupyter_code>if ph.is_ready():
    print("PrimeHub Python SDK setup successfully")
    print("Current Group:", ph.primehub_config.current_group)
else:
    print("PrimeHub Python SDK couldn't get the group information, please check the configuration.")<jupyter_output><empty_output><jupyter_text>Here is all available commands in the PrimeHub SDKWe will talk each command in the individual notebook. Commands call convention are:`PrimeHub..(*args, **kwargs)`You could look up all supported commands with `get_all_commands()` method.<jupyter_code>for cmd in ph.get_all_commands():
    print(cmd)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0829523187459177, 'fraction_numerical': 0.0, 'mean_word_length': 6.737373737373737, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '71535', 'license': 'Apache-2.0', 'n_tokens_mistral': 471, 'n_tokens_neox': 445, 'n_words': 151, 'path': 'docs/notebook/00-getting-started.ipynb', 'repo_name': 'InfuseAI/primehub-python-sdk', 'size': '1531'}