Module gcip.tools.url

Functions

def is_valid_url(url: str) ‑> bool

Validates given url.

Implementation details 1. https://stackoverflow.com/a/7160778 2. https://github.com/django/django/blob/6726d750979a7c29e0dd866b4ea367eef7c8a420/django/core/validators.py#L45

Args

url : str
Uniform Resource Locator (URL) to check.

Returns

bool
True if url is valid. If not, False is returned.