weaver.processes.builtin.utils

Module Contents

weaver.processes.builtin.utils.is_netcdf_url(url: Any) bool[source]

Validates that the reference is a remote NetCDF file reference.

weaver.processes.builtin.utils.is_geojson_url(url: Any) bool[source]

Validates that the reference is a remote GeoJSON file reference.

weaver.processes.builtin.utils.validate_reference(url: str, is_file: bool) None[source]

Ensures that the provided reference points to a valid remote file or a temporary intermediate file.

In order to avoid bypassing security validation of server file access between jobs, remote locations must be enforced. However, CWL temporary files must be allowed through for intermediate locations passed around between Workflow steps or employed as temporary writing locations for file extraction purposes.

weaver.processes.builtin.utils.get_package_details(file: os.PathLike[str]) Tuple[str, str, str][source]

Obtains the builtin process details from its file reference.