MCPcopy
hub / github.com/python-visualization/folium / _is_url

Function _is_url

folium/utilities.py:208–213  ·  view source on GitHub ↗

Check to see if `url` has a valid protocol.

(url: str)

Source from the content-addressed store, hash-verified

206
207
208def _is_url(url: str) -> bool:
209 """Check to see if `url` has a valid protocol."""
210 try:
211 return urlparse(url).scheme in _VALID_URLS
212 except Exception:
213 return False
214
215
216def mercator_transform(

Callers 2

test_is_urlFunction · 0.90
image_to_urlFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_is_urlFunction · 0.72