Skip to main content

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


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)

Uploaded Source

Built Distribution

urlprettify-0.0.8-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for urlprettify-0.0.8.tar.gz
Algorithm Hash digest
SHA256 3fe93386679b0af62c61258ed4b81256dbcb72303f03829f52d8660e25b77713
MD5 03e481e3bf5e66ab89cb17b480b7b778
BLAKE2b-256 fd4ab0d8b926fdc7f1b39eeab99d770376a3a610344ca0f7a246dce12108caea

See more details on using hashes here.

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

Hashes for urlprettify-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8470731b223c6d38a1d58a8e04be47855d434513973ceb9a219e5505b497f990
MD5 2e9cb695c837ffab5764331182d3ee4b
BLAKE2b-256 0e42cee7c27b437aacba381e625c87138fcdcad41c81f263f135d9408fdc6f5a

See more details on using hashes here.

Provenance

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