skip to navigation
skip to content

predicthq 0.0.10

PredictHQ Event Intelligence

Note

For the latest source, discussions, bug reports, etc., please visit the GitHub repository

PredictHQ API Client for Python

PredictHQ combines real-world events into one global source of truth to help businesses better understand demand, and plan for the future.

Installation

pip install predicthq

Usage

from predicthq import Client

phq = Client(access_token="$ACCESS_TOKEN")

for event in phq.events.search(q="Foo Fighters", rank_level=[4, 5], place={"scope": ["5391959", "5368361"]}):
    print(event.rank, event.category, event.title, event.start.strftime('%Y-%m-%d')))

Endpoints

  • Client.oauth2
  • Client.accounts
  • Client.events
  • Client.signals
  • Client.places

For a description of all available endpoints, refer to our API Documentation.

Running Tests

pip install tox
tox

Found a Bug?

Please log an issue.

 
File Type Py Version Uploaded on Size
predicthq-0.0.10-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-09-24 19KB