schrodinger.utils.url module¶
- schrodinger.utils.url.format_url(url: str) str¶
Format the given URL. Adds ‘https’ protocol if missing and removes any trailing ‘/’s
- Parameters:
url – The URL to format
- Returns:
Formatted URL
- schrodinger.utils.url.url_exists(url: str) bool¶
Check if the given URL is reachable by sending a HEAD request.
- Parameters:
url – The URL to check
- Returns:
whether the URL is reachable