Provides easy access to meteoblue dataset sdk.
Project description
Meteoblue Python Dataset SDK
Prerequisites
check default python version (e.g. on debian linux)
python --version
should equal more than 3.6
otherwise switch version with
update-alternatives --config python
as root
Usage / Test
qparams = {'units': {'temperature': 'C', 'velocity': 'km/h', 'length': 'metric', 'energy': 'watts'}, 'geometry': {'type': 'Polygon', 'coordinates': [[[7.313768, 46.982946], [7.313768, 47.692346], [8.621369, 47.692346], [8.621369, 46.982946], [7.313768, 46.982946]]]}, 'format': 'netCDF', 'timeIntervals': ['2000-01-01T+00:00/2019-01-04T+00:00'], 'timeIntervalsAlignment': 'none', 'queries': [{'domain': 'NEMSGLOBAL', 'gapFillDomain': None, 'timeResolution': 'hourly', 'codes': [{'code': 11, 'level': '2 m above gnd'}]}]}
from meteoblue_dataset_sdk import *
mb = MeteoblueDatasetClient(apikey='XXXXXXXXXXXXXXX') # ask for key
mb.query(qparams)
Build pip package
One time config
python -m pip --version
python -m pip install --upgrade pip setuptools wheel
python -m pip install tqdm
python -m pip install --user --upgrade twine
cat <<EOF > ~/.pypirc
[distutils]
index-servers=pypi
[pypi]
repository = https://upload.pypi.org/legacy/
username = meteoblue
EOF
Compile
python setup.py bdist_wheel
Upload
python -m twine upload dist/*
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
Close
Hashes for meteoblue-dataset-sdk-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ff7a99add1e4ec6968137d2882f957389a3e44db365d1d2923ce0640b917232 |
|
MD5 | 6aed233af7511f39adb96b56cfc0c7a4 |
|
BLAKE2b-256 | ae9fb00237d14e06c4aff8eee024fe3f892105288e1e1cb9d828e260d29d8bc0 |
Close
Hashes for meteoblue_dataset_sdk-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5c226f2bbcdafa06ba86119dfe2c5882a73bd514cc2634e5095c7a8c1ee5f26 |
|
MD5 | 96199efe542eb0ae136a82cad5ed6dc8 |
|
BLAKE2b-256 | f36f0d80abc8b43bf04c829dbf0cf960b83d3296955b20d3673812b0339435c9 |