Skip to main content

PredictHQ Event Intelligence

Project description

PredictHQ API Client for Python

https://badge.fury.io/gh/predicthq%2Fsdk-py.svg https://badge.fury.io/py/predicthq.svg https://travis-ci.org/predicthq/sdk-py.svg?branch=master https://coveralls.io/repos/github/predicthq/sdk-py/badge.svg?branch=master

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

predicthq-0.0.10-py2.py3-none-any.whl (19.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file predicthq-0.0.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for predicthq-0.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b5041f4dba06d4949a8efa51bd52640a524abfff80559a48ea34046a6783c081
MD5 3268b912d5dc5ab62ccb86b846c8d570
BLAKE2b-256 32f793029fb2df440a7796901e6d9e408eec72fb653dadc65cc210ae86b1120a

See more details on using hashes here.

Supported by

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