MCPcopy
hub / github.com/pydata/xarray / is_remote_uri

Function is_remote_uri

xarray/core/utils.py:726–732  ·  view source on GitHub ↗

Finds URLs of the form protocol:// or protocol:: This also matches for http[s]://, which were the only remote URLs supported in <=v0.16.2.

(path: str)

Source from the content-addressed store, hash-verified

724
725
726def is_remote_uri(path: str) -> bool:
727 """Finds URLs of the form protocol:// or protocol::
728
729 This also matches for http[s]://, which were the only remote URLs
730 supported in <=v0.16.2.
731 """
732 return bool(re.search(r"^[a-zA-Z][a-zA-Z0-9]*(\://|\:\:)", path))
733
734
735def strip_uri_params(uri: str) -> str:

Callers 12

__init__Method · 0.90
openMethod · 0.90
guess_can_openMethod · 0.90
_get_mtimeFunction · 0.90
_normalize_pathFunction · 0.90
_find_absolute_pathsFunction · 0.90
_is_likely_dap_urlFunction · 0.90
__init__Method · 0.90
openMethod · 0.90
guess_can_openMethod · 0.90
guess_can_openMethod · 0.90
guess_engineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…