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
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| prevedere-api-0.5.2.tar.gz | 5.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for prevedere-api 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.