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.8.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file urlprettify-0.0.8.tar.gz
.
File metadata
- Download URL: urlprettify-0.0.8.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe93386679b0af62c61258ed4b81256dbcb72303f03829f52d8660e25b77713 |
|
MD5 | 03e481e3bf5e66ab89cb17b480b7b778 |
|
BLAKE2b-256 | fd4ab0d8b926fdc7f1b39eeab99d770376a3a610344ca0f7a246dce12108caea |
Provenance
File details
Details for the file urlprettify-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: urlprettify-0.0.8-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 | 8470731b223c6d38a1d58a8e04be47855d434513973ceb9a219e5505b497f990 |
|
MD5 | 2e9cb695c837ffab5764331182d3ee4b |
|
BLAKE2b-256 | 0e42cee7c27b437aacba381e625c87138fcdcad41c81f263f135d9408fdc6f5a |