Skip to main content

openeo-portable

Parameter and backend management for portable openEO notebooks and User-Defined Processes (UDPs).

openeo-portable lets you write an openEO workflow once and run it on several openEO backends and study areas, without editing the code. It provides:

  • Parameter sets. Each algorithm has a .params.py file with named sets of locations, dates and settings (for example venice_lagoon). The parameter files for the openeo-udp notebooks ship with the package.
  • Endpoint mapping. Collection IDs, band names and dimension names differ between backends. The package rewrites them for the backend you connect to, so the same process graph works on each one.
  • Interactive selection. Dropdown widgets in Jupyter for choosing a parameter set and a backend.
  • Parameter resolution. Turns Parameter references into concrete values, so a graph that will later be exported as a UDP can also run synchronously.

Installation

pip install openeo-portable

To run the openeo-udp notebooks, install the notebooks extra as well. It adds matplotlib, NumPy, Pillow and rioxarray:

pip install "openeo-portable[notebooks]"

Requires Python 3.11 or later.

Quick start

from openeo_portable import ParameterManager

# Load a parameter file that ships with the package
param_manager = ParameterManager("apa_aquatic_plants_algae.params.py")

# Show the parameter sets and endpoints you can choose from
param_manager.print_options("Aquatic plants and algae")

# Option 1: choose with dropdown widgets (in Jupyter)
selection_widget = param_manager.interactive_parameter_selection()
connection, current_params = selection_widget()

# Option 2: choose in code (in scripts)
connection, current_params = param_manager.quick_connect(
    param_set="venice_lagoon",
    endpoint="eopf_explorer",
)

current_params holds the parameters mapped for the chosen backend. Use them to build a parameterised graph, then resolve it before running it synchronously:

cube = connection.load_collection(
    current_params["collection"].default,
    bands=current_params["bands"].default,
    spatial_extent=current_params["bounding_box"],
    temporal_extent=current_params["time"],
    properties={"eo:cloud_cover": lambda x: x <= current_params["cloud_cover"]},
)

# Some backends store reflectance as scaled integers (0-10000), others as 0-1
# floats. Dividing by reflectance_scale gives 0-1 reflectance on every backend.
cube = cube / current_params["reflectance_scale"]

# Backends name the time dimension differently ("t" or "time"), so take the
# name from current_params instead of hard-coding it
cube = cube.reduce_dimension(
    dimension=current_params["time_dimension"], reducer="first"
)

# Resolve parameter references before running synchronously, because the
# /result endpoint rejects unresolved ones
param_manager.resolve(cube, current_params).download("preview.nc")

reflectance_scale and time_dimension come from the endpoint mapping, which adds them to current_params for the chosen backend. It also adds bands_dimension, the name of the band dimension, for processes such as apply_dimension. Reading these values from current_params instead of hard-coding them keeps the graph backend-agnostic.

Supported endpoints

Endpoint Backend
eopf_explorer EOPF Sentinel Zarr Samples Explorer
copernicus_dataspace Copernicus Data Space Ecosystem
ds_development Development Seed development instance
localhost_dev A local openEO backend for development
from openeo_portable.endpoints import list_available_endpoints

list_available_endpoints()

Parameter files

Parameter files for the openeo-udp algorithms ship in openeo_portable.params. A bare file name such as ParameterManager("urban_areas.params.py") loads the packaged file. To list them:

from openeo_portable import list_parameter_files

list_parameter_files()

Using your own parameter file

You can override a packaged parameter file without changing the package. Put a file with the same name in your working directory, and ParameterManager loads it instead of the packaged one. The easiest start is a copy of the packaged file:

import shutil
from importlib.resources import files

shutil.copy(files("openeo_portable.params") / "urban_areas.params.py", "urban_areas.params.py")

Edit the copy, for example to add a parameter set for your own area and dates. print_options() shows which file was loaded and warns when a local file overrides the packaged one. Delete or rename the local file to go back to the packaged version.

You can also give your file a different name and pass its path, for example ParameterManager("my_urban_areas.params.py").

Documentation

License

MIT AND CC-BY-SA-4.0:

See LICENSING.md for details.

Acknowledgments

Developed by Development Seed as part of the APEx project, funded by the European Space Agency.

Metadata

Release files for openeo-portable 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openeo-portable 0.2.0
File Size Uploaded Provenance Actions
openeo_portable-0.2.0.tar.gz 70.9 kB With provenance Details for openeo_portable-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openeo-portable 0.2.0
File Interpreter ABI Platform Actions
openeo_portable-0.2.0-py3-none-any.whl Python 3 none any Details for openeo_portable-0.2.0-py3-none-any.whl

Total release size: 167.2 kB

Release files / openeo_portable-0.2.0.tar.gz

Download URL openeo_portable-0.2.0.tar.gz
Size 70.9 kB
Tags Source
SHA-256 checksum
How to use checksums
870e7ed035ffdd74e74969e3956358035bd9febdb5ddf6e16c1a3cc9f639fb00
BLAKE2b-256 checksum
How to use checksums
db6d54a6070a3568b28eef1a67c2049b110ce907531df5dfefb08e0929cd299e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / openeo_portable-0.2.0-py3-none-any.whl

Download URL openeo_portable-0.2.0-py3-none-any.whl
Size 96.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eee5165e4994471de1d7c28d8a109efc46f1ebaa8fbad817cde612b68ceb078
BLAKE2b-256 checksum
How to use checksums
02d3f0d7a50afa22a762f7014d268bf2be658505acc64a959612bafe7e322dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for openeo-portable 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openeo_portable-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page