Skip to main content

PredictHQ Event Intelligence

Project description

PredictHQ API Client for Python

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

PredictHQ is a global events intelligence platform that aggregates, enriches and connects scheduled and real-time event data happening both locally and globally, then predicts which ones could impact your business.

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], country='US'):
    print("{} - {} - {} - {}".format(event.rank, event.category, event.title, event.start.strftime('%Y-%m-%d')))

81 - concerts - Foo Fighters - 2015-11-17
99 - concerts - Foo Fighters - 2015-11-16

Endpoints

  • Client.oauth2

  • Client.accounts

  • Client.events

  • Client.signals

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

Running Tests

pip install tox
tox

Changelog

0.0.1

  • Initial release

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.2.dev2-py2.py3-none-any.whl (17.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for predicthq-0.0.2.dev2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3ec95b584e7ad1f4f384413ead3e8e67123a6c19f8744c14274a991e199678a0
MD5 452d2146b487641c0d69428e899e5bd1
BLAKE2b-256 126975437eb13e87172876a0a620d92769f43b601d9dfc0e27536887650b3580

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