Skip to main content

Library for making use of Whale Wisdom API

Project description

Introduction

Library for integrating Whale Wisdom and NPD data.

Installation for Running Locally

  1. Installation Python packages
pip install npd-whale-wisdom=0.1.9
  1. 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 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.

  1. Calling Whale Wisdom API If you want to make a custom Whale Wisdom API call do the following:
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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npd-whale-wisdom-0.2.4.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

npd_whale_wisdom-0.2.4-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page