weaver.wps

pywps 4.x wrapper

Module Contents

weaver.wps.LOGGER[source]
weaver.wps.WEAVER_PYWPS_CFG :Optional[ConfigParser][source]
weaver.wps._get_settings_or_wps_config(container, weaver_setting_name, config_setting_section, config_setting_name, default_not_found, message_not_found) → AnyStr[source]
weaver.wps.get_wps_path(container) → AnyStr[source]

Retrieves the WPS path (without hostname). Searches directly in settings, then weaver.wps_cfg file, or finally, uses the default values if not found.

weaver.wps.get_wps_url(container) → AnyStr[source]

Retrieves the full WPS URL (hostname + WPS path). Searches directly in settings, then weaver.wps_cfg file, or finally, uses the default values if not found.

weaver.wps.get_wps_output_dir(container) → AnyStr[source]

Retrieves the WPS output directory path where to write XML and result files. Searches directly in settings, then weaver.wps_cfg file, or finally, uses the default values if not found.

weaver.wps.get_wps_output_path(container) → AnyStr[source]

Retrieves the WPS output path (without hostname) for staging XML status, logs and process outputs. Searches directly in settings, then weaver.wps_cfg file, or finally, uses the default values if not found.

weaver.wps.get_wps_output_url(container) → AnyStr[source]

Retrieves the WPS output URL that maps to WPS output directory path. Searches directly in settings, then weaver.wps_cfg file, or finally, uses the default values if not found.

weaver.wps.load_pywps_cfg(container, config=None) → ConfigParser[source]

Loads and updates the PyWPS configuration using Weaver settings.

weaver.wps.pywps_view(environ, start_response)[source]
  • TODO: add xml response renderer
weaver.wps.includeme(config)[source]