Metadata-Version: 1.1
Name: uritools
Version: 0.2.0
Summary: RFC 3986 compliant, Unicode-aware, scheme-agnostic replacement for urlparse
Home-page: https://github.com/tkem/uritools
Author: Thomas Kemmer
Author-email: tkemmer@computer.org
License: MIT
Description: ************************************************************************
        uritools
        ************************************************************************
        
        .. image:: https://pypip.in/v/uritools/badge.png
            :target: https://pypi.python.org/pypi/uritools/
            :alt: Latest PyPI version
        
        .. image:: https://pypip.in/d/uritools/badge.png
            :target: https://pypi.python.org/pypi/uritools/
            :alt: Number of PyPI downloads
        
        This module defines RFC 3986 compliant replacements for the most
        commonly used functions of the Python Standard Library ``urlparse``
        module.
        
        .. code-block:: pycon
        
            >>> from uritools import urisplit, uriunsplit, urijoin, uridefrag
            >>> p = urisplit('foo://example.com:8042/over/there?name=ferret#nose')
            >>> p
            SplitResult(scheme='foo', authority='example.com:8042',
                        path='/over/there', query='name=ferret', fragment='nose')
            >>> p.scheme
            'foo'
            >>> p.authority
            'example.com:8042'
            >>> p.port
            8042
            >>> p.geturi()
            'foo://example.com:8042/over/there?name=ferret#nose'
            >>> uriunsplit(['foo', 'example.com:8042', '/over/there', None, None])
            'foo://example.com:8042/over/there'
            >>> urijoin('http://www.cwi.nl/~guido/Python.html', 'FAQ.html')
            'http://www.cwi.nl/~guido/FAQ.html'
            >>> uridefrag('http://pythonhosted.org/uritools/index.html#constants')
            DefragResult(uri='http://pythonhosted.org/uritools/index.html',
                         fragment='constants')
        
        For various reasons, the ``urlparse`` module is not compliant with
        current Internet standards, does not include Unicode support, and is
        generally unusable with proprietary URI schemes.  As stated in
        `Lib/urlparse.py
        <http://hg.python.org/cpython/file/2.7/Lib/urlparse.py>`_::
        
            RFC 3986 is considered the current standard and any future changes
            to urlparse module should conform with it.  The urlparse module is
            currently not entirely compliant with this RFC due to defacto
            scenarios for parsing, and for backward compatibility purposes,
            some parsing quirks from older RFCs are retained.
        
        The ``uritools`` module aims to provide fully RFC 3986 compliant
        replacements for some commonly used functions found in ``urlparse``,
        plus additional functions for handling Unicode, normalizing URI paths,
        and conveniently composing URIs from their individual components.
        
        
        Installation
        ========================================================================
        
        To install uritools using pip::
        
            pip install uritools
        
        
        Project Resources
        ========================================================================
        
        - `Documentation <http://pythonhosted.org/uritools/>`_
        - `Source code <https://github.com/tkem/uritools>`_
        - `Issue tracker <https://github.com/tkem/uritools/issues>`_
        
        
        Changelog
        ========================================================================
        
        v0.2.0 (2014-02-18)
        ------------------------------------------------------------------------
        
        - Add authority subcomponent attributes.
        - Return DefragResult from uridefrag().
        - Improve urisplit/uriunsplit edge case behavior.
        
        
        v0.1.0 (2014-02-14)
        ------------------------------------------------------------------------
        
        - Initial beta release.
        
Keywords: uri url urlparse urlsplit urljoin urldefrag
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
