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"
Release files for hfurl 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hfurl-0.2.0.tar.gz | 12.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hfurl-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.5 kB
Release files / hfurl-0.2.0.tar.gz
| Download URL | hfurl-0.2.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27caad790441938bd508511f48f1964547c62e7817cc276d76d8ebd5a50cbe30
|
|
BLAKE2b-256 checksum How to use checksums |
f3ed576a47b6194293cc685e13410f5bd6c3996e7bb3720c99427f7b9bf0b528
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / hfurl-0.2.0-py3-none-any.whl
| Download URL | hfurl-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72c20035a669045a6ec634112bc2c597e749adc9271f0dab89ad05b488e79cfc
|
|
BLAKE2b-256 checksum How to use checksums |
3a99d6969f85e68ccde403146a8c99d3ffee082a7d2e8bae0d0eb64f634fdb0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|