This release is a pre-release and may not be stable for production use.
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.pyfile with named sets of locations, dates and settings (for examplevenice_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
Parameterreferences 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
- Parameter management guide: parameter file format, endpoint mapping, the full
ParameterManagerAPI, and how to add a new endpoint. - openeo-udp notebooks: the notebooks that use this package to build UDPs for the APEx Algorithm Catalogue.
- Contributing
License
MIT AND CC-BY-SA-4.0:
- The package code is MIT (LICENSE).
- The parameter files in
openeo_portable/params/are converted from Sentinel Hub custom scripts and are CC-BY-SA-4.0. Each file's header links to its original evalscript.
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.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openeo_portable-0.2.0rc1.tar.gz | 70.9 kB | With provenance | Details for openeo_portable-0.2.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openeo_portable-0.2.0rc1-py3-none-any.whl | Python 3 | none | any | Details for openeo_portable-0.2.0rc1-py3-none-any.whl |
Total release size: 167.2 kB
Release files / openeo_portable-0.2.0rc1.tar.gz
| Download URL | openeo_portable-0.2.0rc1.tar.gz |
|---|---|
| Size | 70.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee0b02fdb978bf26f43e3db2560c23e57818d3c4aea88bc103bcad6d946b7256
|
|
BLAKE2b-256 checksum How to use checksums |
6d3416437ce361a0614250776350158ad409cf03103f113761a278937b9f9ffe
|
| 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 logRelease files / openeo_portable-0.2.0rc1-py3-none-any.whl
| Download URL | openeo_portable-0.2.0rc1-py3-none-any.whl |
|---|---|
| Size | 96.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72619696e8bc0a3e63a12aae7e181a1e4cbae4f74d51de7d0913740f4a42f60d
|
|
BLAKE2b-256 checksum How to use checksums |
c2ec6dc850a406aceec9449cc71f3b42516c31dd94e64febca68d9479b371150
|
| 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 logSecurity for openeo-portable 0.2.0rc1
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.
Attestation for openeo_portable-0.2.0rc1.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 logA 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.