Skip to content
Convert URL's to a normalized unicode format
Find file
Pull request Compare This branch is 5 commits behind jehiah:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Normalize a URL to a standard unicode representation

urlnorm normalizes a URL by:

  * lowercasing the scheme and hostname
  * converting the hostname to IDN format
  * taking out default port if present (e.g.,
  * collapsing the path (./, ../, etc)
  * removing the last character in the hostname if it is '.'
  * unquoting any % escaped characters (where possible)


    pip install -U urlnorm

or to install from source

    pip install -e git://


    >>> import urlnorm
    >>> urlnorm.norm("")

Something went wrong with that request. Please try again.