Python SDK

GitHub version PyPI version Build Status Coverage

The official PredictHQ Python Client provides a consistent, pythonic interface to our API.


pip install predicthq

Example Usage

from predicthq import Client

phq = Client(access_token="$ACCESS_TOKEN")

for event in"Foo Fighters", rank_level=[4, 5], country='US'):
    print(event.rank, event.category, event.title, event.start.strftime('%Y-%m-%d'))

Found a Bug?

Please log an issue on our GitHub repository.