emu package

WPS processes for testing and demos.

Subpackages

Submodules

emu.__version__ module

Emu version information.

emu.cli module

Demo WPS service for testing and debugging.

emu.cli.get_host() tuple[str, int][source]

Gather host information.

Returns:

The host and port.

Return type:

tuple[str, int]

emu.cli.run_process_action(action: str | None = None)[source]

Run an action with psutil on current process and return a status message.

Parameters:

action (str, optional) – The action to perform, by default “status”.

emu.cli.write_user_config(**kwargs) Path[source]

Write a custom configuration file.

Parameters:

**kwargs (dict) – Configuration parameters.

Returns:

The path to the written configuration file.

Return type:

Path

emu.exceptions module

exception emu.exceptions.DryRunWarningError(msg=None, storage_used=None, time_used=None)[source]

Bases: ProcessError

default_msg = 'You have submitted a job in dry-run mode'
exception emu.exceptions.StorageLimitExceededError(msg=None, used=None, available=None)[source]

Bases: ProcessError

default_msg = 'You have exceeded the storage limit'
exception emu.exceptions.TimeLimitExceededError(msg=None, used=None, available=None)[source]

Bases: StorageLimitExceededError

default_msg = 'You have exceeded the time limit'

emu.wsgi module

Web Service Gateway Interface for PyWPS processes.

emu.wsgi.create_app(cfgfiles: list[str] | None = None) Service[source]

Create PyWPS application.

Parameters:

cfgfiles (list of str, optional) – Configuration files to use.

Returns:

PyWPS application.

Return type:

pywps.app.Service.Service