<commit_before># FileWaveAPI.py

To simplify usage of [FileWave](https://www.filewave.com) API.

Requires: requests

## Install FileWaveAPI.py

You can install the FileWaveAPI module via pip

    pip install FileWaveAPI

## How to Use

### Authentication
For Authentication, you need the Shared Key from FileWave.
You can get it from
    FileWave Admin - Preferences - Inventory - Inventory Server - Shared Key
If there is no shared key in this section,
check the Generate new key on Save option and select Ok in the preference dialog.
If there is a shared key, do NOT select to generate a new key on save.

### Python2/Python3 compatibility notes
The module is written to be fully compatible with Python2 and Python3.
If you use the key as binary object like this
    SHARED_SECRET = b"{c4397402-3021-4697-ae01-bf86b94105b1}"
your code will work with Python2 and Python3.
If you use it just as string like this
    SHARED_SECRET = "{c4397402-3021-4697-ae01-bf86b94105b1}"<commit_msg>fixed formatting<commit_after># FileWaveAPI.py

To simplify usage of [FileWave](https://www.filewave.com) API.

Requires: requests

## Install FileWaveAPI.py

You can install the FileWaveAPI module via pip

    pip install FileWaveAPI

## How to Use

### Authentication
For Authentication, you need the Shared Key from FileWave.

You can get it from

    FileWave Admin - Preferences - Inventory - Inventory Server - Shared Key
    
If there is no shared key in this section, check the Generate new key on Save option and select Ok in the preference dialog.
If there is a shared key, do NOT select to generate a new key on save.

### Python2/Python3 compatibility notes
The module is written to be fully compatible with Python2 and Python3.

If you use the key as binary object like this

    SHARED_SECRET = b"{c4397402-3021-4697-ae01-bf86b94105b1}"
your code will work with Python2 and Python3.

If you use it just as string like this

    SHARED_SECRET = "{c4397402-3021-4697-ae01-bf86b94105b1}"
{'fraction_non_alphanumeric': 0.05852674066599395, 'fraction_numerical': 0.056508577194752774, 'mean_word_length': 3.969924812030075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7159122', 'n_tokens_mistral': 670, 'n_tokens_neox': 585, 'n_words': 270}