Prettify URL to use only FQDN or IP-address
Project description
Prettify URL to use only FQDN or IP-address
How to use
from urlprettify import urlprettify
ugly_url = "hxxxps[:]//test[.]io/spam.php"
pretty_url = urlprettify.prettify(ugly_url)
Options for conversion
- Conversion.NO_PREFIX - Remove scheme prefix
- Conversion.NO_SUFFIX - Remove trailing suffix (port, path)
- Conversion.NO_BRACES - Remove braces
from urlprettify import urlprettify
ugly_url = "hxxxps[:]//test[.]io/spam.php"
pretty_url = urlprettify.prettify(ugly_url, urlprettify.Conversion.NO_PREFIX | urlprettify.Conversion.NO_SUFFIX)
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
urlprettify-0.0.7.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file urlprettify-0.0.7.tar.gz
.
File metadata
- Download URL: urlprettify-0.0.7.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 730a1d6a92235a3efa3be18826385d70c207075b86420100514188de2bf222eb |
|
MD5 | be771fc28f21d036253e01b055a81add |
|
BLAKE2b-256 | 95ed9b6cf1e364f9794ce614f843ff79fd60b15092ac0e69d09c70741470c378 |
Provenance
File details
Details for the file urlprettify-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: urlprettify-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66940a6cc121d154479e91322328502d0075e7933732f9dd9bfb11dc1c14aa8 |
|
MD5 | 015d789f58a9ef00ff84ec4d149f5b46 |
|
BLAKE2b-256 | 0af3e6da0d8b35a31a48463b5c81dca2f342d27e17815a3e3fc3808da018948e |