Metadata-Version: 2.1
Name: npd-whale-wisdom
Version: 0.1.7
Summary: Library for making use of Whale Wisdom API
Home-page: https://NPDGroup@dev.azure.com/NPDGroup/NPDFinancialServices/_git/WhaleWisdom
Author: Max Leonard
Author-email: maxhleonard@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Introduction 
Library for integrating Whale Wisdom and NPD data.

# Installation for Running Locally
1.	Installation Python packages

```bash
python install_packages.py
```

2.	Add WW Keys to Envionment
For running locally, you must add the Whale Wisdom shared and secret keys to Windows environemnt variables. These can be found in control pannel under properties. You can also search environment variables in the search bar. The shared key must be named "WW_SHARED_KEY" and the secret key must be named "WW_SECRET_KEY".


# Usage
1. Running Full Report Builder
Simply navigate to the project directory and run
```python
python main.py
```
You'll need to input the path to some input files. The web app hosting this code will pull these from Azure Storage.

2. Calling Whale Wisdom API
If you want to make a custom Whale Wisdom API call do the following:
```python
from WhaleWisdom.Common.py_whale_wisdom import call_api

#the input is string representation of a python dictionary
api_input = '{"command":"stock_lookup","symbol":"GOOGL"}'
api_res = call_api(api_input)
```


