Tools for downloading results for 3Di scenarios
Project description
threedi-scenario-downloader
The threedi-scenario-downloader package includes functions in order to automate most used download actions on the 3Di results.
Example methods are:
Download raw results.
Download logging.
Download maximum waterdepth (non-temporal raster).
Download waterdepth (temporal raster, supply timestamp for snapshot).
Find all scenarios model slug or scenario name.
Installation
We can be installed with:
$ pip install threedi-scenario-downloader
Development installation of this project itself
We’re installed with pipenv, a handy wrapper around pip and virtualenv. Install that first with pip install pipenv. Then run:
$ PIPENV_VENV_IN_PROJECT=1 pipenv --three $ pipenv install --dev
In order to get nicely formatted python files without having to spend manual work on it, run the following command periodically:
$ pipenv run black threedi_scenario_downloader
Run the tests regularly. This also checks with pyflakes, black and it reports coverage. Pure luxury:
$ pipenv run pytest
The tests are also run automatically on travis-ci, you’ll see it in the pull requests. There’s also coverage reporting on coveralls.io.
If you need a new dependency (like requests), add it in setup.py in install_requires. Afterwards, run install again to actuall install your dependency:
$ pipenv install --dev
Changelog of threedi-scenario-downloader
0.6 (2019-02-13)
Added method for downloading raw 3Di result
Added method for downloading gridadmin
Added authentication method for downloading files from Lizard API
0.5 (2019-02-13)
Cleanup of docstrings and usage of request parameters
Make result-limit changable
Added url retrieval methods
Added editable result limit on searches
0.2 (2019-01-24)
Added automatic deploys to https://pypi-hypernode.com/project/threedi-scenario-downloader/
0.1 (2019-01-23)
Initial project structure created with cookiecutter and https://github.com/nens/cookiecutter-python-template
Initial working version.
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
Hashes for threedi-scenario-downloader-0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f66010d6bc34c3b81350783e90835c11d2e1a7a6389c4e973787011affdf25e8 |
|
MD5 | f1d078fb2f9750c6bb03319ffb558abb |
|
BLAKE2b-256 | 7dae17972a2e7eac8fefc8793805c899a211ed1dd70854f895523b55b705d6d2 |
Hashes for threedi_scenario_downloader-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2521300205df64a51e8f8d7a48f5060b3d602c87c164048b6a894074f929bf51 |
|
MD5 | 6c49ac438e46a4451323f02402a6ada7 |
|
BLAKE2b-256 | a279373f2491846bab55cbcf78c31c93c2f6d700edfe7ba5ef497f11685ea073 |