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.15-py2.py3-none-any.whl (18.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: predicthq-0.0.15-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for predicthq-0.0.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f97e6471c3a4581a91d319ce6f80b8c89d6c0c5b4fb3ee2eb5e6ee703a5bdd15
MD5 05a5698ed978a4efcfc638e227e76dcc
BLAKE2b-256 9b0645351ead3a53a644bf01b982e3a6921bfaf3ac5399c99b8d9742bcf26665

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