Skip to main content

Python implementations of many OpenEO processes, dask-friendly by default.

Project description

OpenEO Processes Dask

Poetry PyPI - Status PyPI PyPI - Python Version codecov

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.

Clone the repository with --recurse-submodules to also fetch the process specs:

git clone --recurse-submodules git@github.com:Open-EO/openeo-processes-dask.git

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

openeo_processes_dask-2024.11.0.tar.gz (160.3 kB view details)

Uploaded Source

Built Distribution

openeo_processes_dask-2024.11.0-py3-none-any.whl (281.8 kB view details)

Uploaded Python 3

File details

Details for the file openeo_processes_dask-2024.11.0.tar.gz.

File metadata

  • Download URL: openeo_processes_dask-2024.11.0.tar.gz
  • Upload date:
  • Size: 160.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for openeo_processes_dask-2024.11.0.tar.gz
Algorithm Hash digest
SHA256 1c9005dff814499852785406bcb65f561a0731fa07cd5d18b7c55fa33a58fe14
MD5 d144065a3780e5c1ba22680f3dc424a1
BLAKE2b-256 19bf2e8291b5953d8d38e5d83f8e7a46caa93eef5ecb998810ec3c944e99badb

See more details on using hashes here.

File details

Details for the file openeo_processes_dask-2024.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openeo_processes_dask-2024.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d14a6d8e7c5c40c5fafb5f450ef98a06158bf6b6287be38c90a233646ccea1c4
MD5 031929266dc96e82502ff762a033fca4
BLAKE2b-256 b2747fc528255ca5fef1466855113b34e5dd2fa844a0696096f4c44e1c4cc0a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page