Human-friendly URL parsing in python
Project description
HFURL - Human-friendly URL
This is a tiny python library that provides parsing for human-firendly.
Completely disregarding RFC it correctly parses url with no schema
(eg. example.com
is equivalent to https://example.com/
).
Useful when reading input URL from user, who as we al know, often omit schema.
Usage
from hfurl import parse_url
url = parse_url("example.com:443/about")
assert url.host == "example.com"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hfurl-0.2.0.tar.gz
(12.2 kB
view hashes)
Built Distribution
hfurl-0.2.0-py3-none-any.whl
(12.3 kB
view hashes)