MCPcopy
hub / github.com/pallets/werkzeug / is_valid_url

Function is_valid_url

examples/shortly/shortly.py:29–31  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

27
28
29def is_valid_url(url):
30 parts = urlsplit(url)
31 return parts.scheme in ("http", "https")
32
33
34def get_hostname(url):

Callers 1

on_new_urlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected