Skip to main content

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


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)

Uploaded Source

Built Distribution

hfurl-0.2.0-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page