ewoksutils.uri_utils.parse_uri#

ewoksutils.uri_utils.parse_uri(uri, default_scheme='file', default_port=None)[source]#

Parse a URI following RFC 3986 rules.

The scheme and path components are required, though the path may be empty. When authority is present, the path must either be empty or begin with “/”. When authority is not present, the path cannot begin with “//”.

Parameters:
  • uri (Union[str, Path])

  • default_scheme (str)

  • default_port (Optional[int])

Return type:

ParseResult