weaver.status

Module Contents

weaver.status.AnyStatusType[source]
weaver.status.STATUS_COMPLIANT_OGC = STATUS_COMPLIANT_OGC[source]
weaver.status.STATUS_COMPLIANT_PYWPS = STATUS_COMPLIANT_PYWPS[source]
weaver.status.STATUS_COMPLIANT_OWSLIB = STATUS_COMPLIANT_OWSLIB[source]
weaver.status.STATUS_CATEGORY_FINISHED = STATUS_CATEGORY_FINISHED[source]
weaver.status.STATUS_CATEGORY_RUNNING = STATUS_CATEGORY_RUNNING[source]
weaver.status.STATUS_CATEGORY_FAILED = STATUS_CATEGORY_FAILED[source]
weaver.status.STATUS_ACCEPTED = accepted[source]
weaver.status.STATUS_STARTED = started[source]
weaver.status.STATUS_PAUSED = paused[source]
weaver.status.STATUS_SUCCEEDED = succeeded[source]
weaver.status.STATUS_FAILED = failed[source]
weaver.status.STATUS_RUNNING = running[source]
weaver.status.STATUS_DISMISSED = dismissed[source]
weaver.status.STATUS_EXCEPTION = exception[source]
weaver.status.STATUS_UNKNOWN = unknown[source]
weaver.status.JOB_STATUS_VALUES[source]
weaver.status.JOB_STATUS_CATEGORIES[source]
weaver.status.STATUS_PYWPS_MAP[source]
weaver.status.STATUS_PYWPS_IDS[source]
weaver.status.map_status(wps_status: AnyStatusType, compliant: str = STATUS_COMPLIANT_OGC)str[source]

Maps WPS statuses (weaver.status, OWSLib or PyWPS) to OWSLib/PyWPS compatible values. For each compliant combination, unsupported statuses are changed to corresponding ones (with closest logical match). Statuses are returned with weaver.status.JOB_STATUS_VALUES format (lowercase and not preceded by ‘Process’).

Parameters
  • wps_status – one of weaver.status.JOB_STATUS_VALUES to map to compliant standard or PyWPS int status.

  • compliant – one of STATUS_COMPLIANT_[…] values.

Returns

mapped status complying to the requested compliant category, or STATUS_UNKNOWN if no match found.