Skip to main content

API interface for Prevedere Inc. in Python 3.6+

Project description

prevedere-api

prevedere-api is a simple API for making HTTP requests to the Prevedere application. Requires an API key. For full documentation, go to the Prevedere Swagger API GUI.

Installation

pip install prevedere-api

Use

Authentication

There is a file called prevedere_api.ini.example that can be used to store your API key. To use it, make a copy of the file, remove .example from the filename, and replace the API key in the file with your own. If you cannot find the file, initializing prevedere.Api() will produce the expected location of the .ini file. Once completed, you will no longer have to enter in your API key when creating a connection to the Prevedere API.

from prevedere import Api
p = Api()

Endpoints

  • indicator: returns basic information about an indicator.
  • indicator_series: returns the data for an indicator.
  • correlation: calculates Pearson's r and other statistics at different offsets between an endogenous and exogenous indicator.
  • raw_model: returns all information about a forecast model.
  • forecast: returns historical fit and forecasted values of a forecast model.
  • workbench: returns the indicators used in a workbench.

Example

import prevedere

api_key = "xyz123"
provider = "provider_a"
provider_id = "a123"

p = prevedere.Api(api_key)
p.indicator_series(provider, provider_id)

TODO:

  • Example dataset to play with, especially for uploading data
  • Add documentation for each function

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prevedere-api-0.5.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

prevedere_api-0.5.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file prevedere-api-0.5.2.tar.gz.

File metadata

  • Download URL: prevedere-api-0.5.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9

File hashes

Hashes for prevedere-api-0.5.2.tar.gz
Algorithm Hash digest
SHA256 6164d36aa426206ec7d3c9aa9dce64b386a8fd1e179452eba6ed8643a65d353b
MD5 0a327dfadc1f3126a72b59de833ae875
BLAKE2b-256 fffb4f44ab2bd0d736359fa369e26e5dab149f4e47e02bbb9a0d839e3b43f803

See more details on using hashes here.

File details

Details for the file prevedere_api-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: prevedere_api-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9

File hashes

Hashes for prevedere_api-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0423fb7613be594d6d649974b63982929cf4a08df0d9a28977d3dae28539e46
MD5 d6271f57b1073c3880a23a6bc3476cab
BLAKE2b-256 e27931f912d03603f13ccb4afb218d6bcaf3f6c8f965af5db215988b87368704

See more details on using hashes here.

Supported by

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