openeo_udf.server package

Submodules

openeo_udf.server.config module

class openeo_udf.server.config.UdfConfiguration[source]

Bases: object

machine_learn_storage_path = '/tmp/ml_storage'
temporary_storage_path = '/tmp'

openeo_udf.server.machine_learn_database module

class openeo_udf.server.machine_learn_database.RequestStorageModel[source]

Bases: pydantic.main.BaseModel

class openeo_udf.server.machine_learn_database.ResponseStorageModel[source]

Bases: pydantic.main.BaseModel

openeo_udf.server.machine_learn_database.store_model(filepath: str, request_storage: openeo_udf.server.machine_learn_database.RequestStorageModel) → Union[str, NoneType][source]

openeo_udf.server.tools module

openeo_udf.server.tools.create_storage_directory()[source]

Create all endpoints for the openEO UDF API

Returns:

openeo_udf.server.udf module

openeo_udf.server.udf.ml_delete(md5_hash: str)[source]

Delete a machine learn model in the udf machine learn database that matches the provided md5 hash. The md5 hash of the to be deleted model must be provided as text in the HTTP request.

openeo_udf.server.udf.ml_get()[source]

Return all md5 hashes of the stored machine learn models as list

openeo_udf.server.udf.ml_post(request_storage: openeo_udf.server.machine_learn_database.RequestStorageModel)[source]

Store a machine learn model in the udf machine learn database and return the corresponding md5 hash. The URL were the model is located must be provided as text in the HTTP request

openeo_udf.server.udf.udf(request: openeo_udf.server.data_model.udf_schemas.UdfRequestModel = Schema(default: Ellipsis, extra: {}))[source]

Run a Python user defined function (UDF) on the provided data collection

openeo_udf.server.udf.udf_legacy(request: openeo_udf.server.data_model.legacy.udf_legacy_schemas.UdfLegacyRequestModel = Schema(default: Ellipsis, extra: {}))[source]

Run a Python user defined function (UDF) on the provided legacy data

openeo_udf.server.udf.udf_legacy_message_pack(request: starlette.requests.Request)[source]

Run a Python user defined function (UDF) on the provided legacy data that are base64 encoded message pack objects

openeo_udf.server.udf.udf_message_pack(request: starlette.requests.Request)[source]

Run a Python user defined function (UDF) on the provided data collection that are base64 encoded message pack objects

Module contents