DBnomics Python Client
Project description
DBnomics Python client
Access DBnomics time series from Python.
This project relies on Python Pandas.
Tutorial
A tutorial is available as a Jupyter notebook.
The "Binder" tool allows you to run it interactively in your browser. Click on then wait a couple of seconds. After loading a list of files should be displayed. Click on index.ipynb
to open the tutorial notebook, where you'll be able to play with the DBnomics Python client.
Install
pip install dbnomics
See also: https://pypi-hypernode.com/project/DBnomics/
Development
To work on dbnomics-python-client source code:
git clone https://git.nomics.world/dbnomics/dbnomics-python-client.git
cd dbnomics-python-client
pip install --editable .
If you plan to use a local Web API, running on the port 5000, you'll need to use the api_base_url
parameter of the fetch_*
functions, like this:
dataframe = fetch_series(
api_base_url='http://localhost:5000',
provider_code='AMECO',
dataset_code='ZUTN',
)
Or globally change the default API URL used by the dbnomics
module, like this:
import dbnomics
dbnomics.default_api_base_url = "http://localhost:5000"
Open the demo notebook
Install jupyter if not already done, in a virtualenv:
pip install jupyter
jupyter notebook
... then open index.ipynb
Tests
Run tests:
pytest
# Specify an alterate API URL
API_URL=http://localhost:5000 pytest
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 Distribution
Built Distribution
File details
Details for the file DBnomics-1.2.0.tar.gz
.
File metadata
- Download URL: DBnomics-1.2.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8bcfeae08c78b7269c68fc282487d82d59997391e2855771902f045ce1dc1ac |
|
MD5 | de22db891cf01ee2b2d4730f3b537649 |
|
BLAKE2b-256 | 45aae27823680fedd2083d10911703c284803b087e76dd10ff8fb1c0be1f4a34 |
File details
Details for the file DBnomics-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: DBnomics-1.2.0-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00a1540505ea7d12965f6b1580411f09a07a335a7aba273219e001d45c7a855c |
|
MD5 | 5de209d556676381da328f831f073227 |
|
BLAKE2b-256 | 4061ea2768574fe423708777b01bd054a23cb40eb25e32f68b49f485b99ff0b0 |