safe_strip_hostname

safe_strip_hostname#

autoplex.data.common.jobs.safe_strip_hostname(value)[source]#

Strip the hostname from a given path or URL.

Parameters:

value (str) – The path or URL from which to strip the hostname.

Returns:

The path or URL without the hostname if the operation is successful, otherwise None.

Return type:

Optional[str]