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.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.org/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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5235e2f5a73fd6ccddf6e0dd890e53817bf7e9d54f25717aec136384c5bb87e8 |
|
MD5 | 27bcef2cdb05d1a6c8d77488d4448556 |
|
BLAKE2b-256 | dd8e06037e1423c6739e1602d2c4b97c3561936f64405283f7a7ce12b1f0b890 |
Hashes for threedi_scenario_downloader-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b26d6f6a0b9eb2d940aeabcef9ed300d57fc18b21a05870a75761610976522b2 |
|
MD5 | 0c59b0a47dc093ba6fd8e14177b46950 |
|
BLAKE2b-256 | f7de5bbf1594771269de679a7a9972e29ec2a2a6696d5617330f5fbf9095f831 |