Python implementations of many OpenEO processes, dask-friendly by default.
Project description
OpenEO Processes Dask
openeo-processes-dask
is a collection of Python implementations of OpenEO processes based on the xarray/dask ecosystem. It is intended to be used alongside with openeo-pg-parser-networkx, which handles the parsing and execution of OpenEO process graphs. There you'll also find a tutorial on how to register process implementations from an arbitrary source (e.g. this repo) to the registry of available processes.
Installation
Install this project via pip:
pip install openeo-processes-dask
Note that by default this only installs the json process specs. In order to install the actual implementations, add the implementations
extra:
pip install openeo-processes-dask[implementations]
A subset of process implementations with heavy or unstable dependencies are hidden behind these further build variants:
openeo_processes_dask/process_implementations/ml
:pip install openeo-processes-dask[ml]
openeo_processes_dask/process_implementations/experimental
:pip install openeo-processes-dask[experimental]
Development environment
openeo-processes-dask requires poetry >1.2, see their docs for installation instructions.
To setup the python venv and install this project into it run:
poetry install --all-extras
To add a new core dependency run:
poetry add some_new_dependency
To add a new development dependency run:
poetry add some_new_dependency --group dev
To run the test suite run:
poetry run python -m pytest
Note that you can also use the virtual environment that's generated by poetry as the kernel for the ipynb notebooks.
Pre-commit hooks
This repo makes use of pre-commit hooks to enforce linting & a few sanity checks. In a fresh development setup, install the hooks using poetry run pre-commit install
. These will then automatically be checked against your changes before making the commit.
Specs
The json specs for the individual processes are tracked as a git submodule in openeo_processes_dask/specs/openeo-processes
.
The raw json for a specific process can be imported using from openeo_processes_dask.specs import reduce_dimension
.
To bump these specs to a later version use:
git -C openeo_processes_dask/specs/openeo-processes checkout <tag>
git add openeo_processes_dask/specs/openeo-processes
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 openeo_processes_dask-2023.11.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d5ab26a4ce612e4f7d4f4182226890b76e9e53eb52f20acd712a073d1c3bc0e |
|
MD5 | 39d4ce35e7c551722a8d43ac8ea37d97 |
|
BLAKE2b-256 | 6edb01a6ab2f628fa1881551f180d7d5f5dddff71a599e76199ccaa731e6a935 |
Hashes for openeo_processes_dask-2023.11.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfbb073b6183f76c28b9397f436336bf098fa28e0b22726f1a5f61938f761f00 |
|
MD5 | 726f401e564a845016c2d5b6d8b8f0de |
|
BLAKE2b-256 | a2d6c89a3c28b1b6812b2d91f673eae47d302280f250388b90b7c43e80669812 |