<commit_before># actifio-python-package

This is a python package handle Actifio RestAPI. Package wraps around the Rest API to facilitate for UDS and SARG commands. Package also provides functionality for higher functions.

# Current Implemented Methods


## run_uds_command 

Run UDS command, for udsinfo and udstask commands. 
  *CmdType* : Command Type takes either ```info``` or ```task``` as options (string)
  *cmdUDS*  : UDS command, as you would use in the CLI.
  *cmdArgs* : Arguments for the UDS command. This option takes arguments as a dictionary.
               For example: 
               vmdiscovery -discovercluster -host 1234 
               { 'discovercluster': None, 'host': 1234 }

               lsapplication -filtervalues "appname=mydb&hostname=myhost"
               { 'filtervalues': { 'appname': 'mydb', 'hostname': 'myhost' } }

               lshost 123
               { 'argument': 123 }

               RESTfulAPI_*.pdf would be good referecne point for the __SIMILARITY__ and 
               __PATTERN__.

# How to use?

Ypu can install using PyPi:

```
pip install Actifio
```


```
from Actifio import Actifio


act = Actifio('MyActifioAppliance','admin','password','<PASSWORD>')

try:<commit_msg>updated the readme<commit_after># actifio-python-package

This is a python package handle Actifio RestAPI. Package wraps around the Rest API to facilitate for UDS and SARG commands. Package also provides functionality for higher functions.

# Current Implemented Methods


## run_uds_command 

Run UDS command, for udsinfo and udstask commands. 

  **CmdType** : Command Type takes either ```info``` or ```task``` as options (string)

  **cmdUDS**  : UDS command, as you would use in the CLI.

  **cmdArgs** : Arguments for the UDS command. This option takes arguments as a dictionary.
               For example: 
               vmdiscovery -discovercluster -host 1234 
               { 'discovercluster': None, 'host': 1234 }

               lsapplication -filtervalues "appname=mydb&hostname=myhost"
               { 'filtervalues': { 'appname': 'mydb', 'hostname': 'myhost' } }

               lshost 123
               { 'argument': 123 }

               RESTfulAPI_*.pdf would be good referecne point for the __SIMILARITY__ and 
               __PATTERN__.

# How to use?

Ypu can install using PyPi:

```
pip install Actifio
```


```
from Actifio import Actifio


act = Actifio('MyActifioAppliance','admin','password','<PASSWORD>')

try:
{'fraction_non_alphanumeric': 0.09450726978998385, 'fraction_numerical': 0.011308562197092083, 'mean_word_length': 2.822530864197531, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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}}
{'dir': 'git-commits-cleaned', 'id': '583894', 'n_tokens_mistral': 771, 'n_tokens_neox': 695, 'n_words': 255}