Skip to main content

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

Release files for prevedere-api 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prevedere-api 0.5.2
File Size Uploaded
prevedere-api-0.5.2.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prevedere-api 0.5.2
File Interpreter ABI Platform
prevedere_api-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / prevedere-api-0.5.2.tar.gz

Download URL prevedere-api-0.5.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6164d36aa426206ec7d3c9aa9dce64b386a8fd1e179452eba6ed8643a65d353b
BLAKE2b-256 checksum
How to use checksums
fffb4f44ab2bd0d736359fa369e26e5dab149f4e47e02bbb9a0d839e3b43f803
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / prevedere_api-0.5.2-py3-none-any.whl

Download URL prevedere_api-0.5.2-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0423fb7613be594d6d649974b63982929cf4a08df0d9a28977d3dae28539e46
BLAKE2b-256 checksum
How to use checksums
e27931f912d03603f13ccb4afb218d6bcaf3f6c8f965af5db215988b87368704
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page