MCPcopy
hub / github.com/pandas-dev/pandas / is_fsspec_url

Function is_fsspec_url

pandas/io/common.py:285–294  ·  view source on GitHub ↗

Returns true if the given URL looks like something fsspec can handle

(url: FilePath | BaseBuffer)

Source from the content-addressed store, hash-verified

283
284
285def is_fsspec_url(url: FilePath | BaseBuffer) -> bool:
286 """
287 Returns true if the given URL looks like
288 something fsspec can handle
289 """
290 return (
291 isinstance(url, str)
292 and bool(_FSSPEC_URL_PATTERN.match(url))
293 and not url.startswith(("http://", "https://"))
294 )
295
296
297def _get_filepath_or_buffer(

Callers 6

_iterparse_nodesMethod · 0.90
read_orcFunction · 0.90
_get_path_or_handleFunction · 0.90
writeMethod · 0.90
readMethod · 0.90
_get_filepath_or_bufferFunction · 0.85

Calls 2

matchMethod · 0.80
startswithMethod · 0.80

Tested by

no test coverage detected