DBnomics Python client
Download time series from DBnomics and access it as a Pandas DataFrame.
This package is compatible with Python >= 3.8. (TODO vermin)
Documentation
Quick start
Tutorial
A tutorial showing how to download series as a DataFrame and plot them is available as a notebook.
Install
pip install dbnomics
See also: https://pypi.org/project/DBnomics/
Configuration
Use with a proxy
This Python package uses requests, which is able to work with a proxy (HTTP/HTTPS, SOCKS). For more information, please check its documentation.
Customize the API base URL
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:
df = 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"
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 -r requirements.txt
pip install -r requirements-dev.txt
pip install -e .
Open the demo notebook
Install jupyter if not already done, in a virtualenv:
pip install jupyter
jupyter notebook index.ipynb
Tests
pip install -r requirements.txt
pip install -r requirements-test.txt
pip install -e .
pytest
# Specify an alternate API URL
API_URL=http://localhost:5000 pytest
Metadata
Release files for dbnomics 1.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dbnomics-1.2.7.tar.gz | 10.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dbnomics-1.2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 MB
Release files / dbnomics-1.2.7.tar.gz
| Download URL | dbnomics-1.2.7.tar.gz |
|---|---|
| Size | 10.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5b754e53df16a11b286a8cdbacc1b4cf6d3461a664c0485e7ff7862d663e59a
|
|
BLAKE2b-256 checksum How to use checksums |
5928921d4e8c8c5d191111d9f952f1124ad7bc700b7b2c085fdbd79deac5c0d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / dbnomics-1.2.7-py3-none-any.whl
| Download URL | dbnomics-1.2.7-py3-none-any.whl |
|---|---|
| Size | 32.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fda5b25bd0c5a7567a4a02a1bd3b1643173e21b8d433640e7179822f380b3d1
|
|
BLAKE2b-256 checksum How to use checksums |
4a5f7adedbcafe6951ac4d1e96ed638f323a189e3ed94b41ce26f2c602d98171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|