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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hfurl-0.2.0.tar.gz.
File metadata
- Download URL: hfurl-0.2.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27caad790441938bd508511f48f1964547c62e7817cc276d76d8ebd5a50cbe30
|
|
| MD5 |
515dac0795072a435d67bf2b59598f12
|
|
| BLAKE2b-256 |
f3ed576a47b6194293cc685e13410f5bd6c3996e7bb3720c99427f7b9bf0b528
|
File details
Details for the file hfurl-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hfurl-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72c20035a669045a6ec634112bc2c597e749adc9271f0dab89ad05b488e79cfc
|
|
| MD5 |
283cc919b6ebd1f7d8738df88e0619e7
|
|
| BLAKE2b-256 |
3a99d6969f85e68ccde403146a8c99d3ffee082a7d2e8bae0d0eb64f634fdb0c
|