PredictHQ Event Intelligence
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for predicthq-0.0.17-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86e0220a43ef3c9c3f27c03ee44683bc9b44723b4413489dec170dcac8e0268c |
|
MD5 | 1efab736d20d1c26d4a1a7074d67411b |
|
BLAKE2b-256 | 2ab6662244ae9fc24cb900d69c11256f1d7fccb56a771f43f47a422a4be07ee1 |