Open-EO / Open-EO/openeo-python-client

Generic `Connection.process()`?

Open
#845 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

architecture documentation feature request usability
Dominant language
Python
Stars
217
Forks
56
Avg merge
1d 22h
Merged PRs (30d)
2

Description

While the python client provides a lot of helpers/convenience functions/methods for standard openEO processes, there is sometimes need for generally "starting" a process graph from some non/less-standard openEO process (e.g. user defined processes or remote process definitions).
For that, we currently have Connection.datacube_from_process() (with some variants).

This helper dates back from 2020 (9db6452a8aea9ebcaa3e), when DataCube was roughly the only process graph abstraction/wrapper in the client. Since then however quite some other variants were added, like vectorcube, mlmodel, stac_resource, etc.
This makes datacube_from_process() insufficient:

  • its name refers to datacube, while it should be about other types too
  • it should return the correct wrapper based on the openEO process return type

I'm considering to add Connection.process() to handle this, but a bit hesitant, because "process" as name is quite generic, and can lead to confusion: does it refer to the noun process or the verb? Does calling it trigger processing (e.g. like there is already Connection.execute()) or is it just about building a process graph?

related issues:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading Connection.datacube_from_process() and its variants, then review related issues 844 and the linked driver discussion. The work is not ready to implement until the API naming and wrapper-selection behavior are agreed; done should cover nonstandard process graphs and return the appropriate wrapper for each openEO process return type.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.