Metadata-Version: 2.0
Name: prettyip
Version: 1.0.4
Summary: Pretty-print IPy's IPSets 
Home-page: https://github.com/djmitche/prettyip
Author: Dustin J. Mitchell
Author-email: dustin@mozilla.com
License: MPLv2
Keywords: ipy ip pretty-print
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: System :: Networking
Classifier: Topic :: Internet
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Requires-Dist: IPy
Provides-Extra: test
Requires-Dist: nose; extra == 'test'
Requires-Dist: mock; extra == 'test'

prettyip
========

Pretty-print IPy_'s IPSets in a human-readable fashion.

.. image:: https://coveralls.io/repos/djmitche/prettyip/badge.svg?branch=master
  :target: https://coveralls.io/r/djmitche/prettyip?branch=master

.. image:: https://travis-ci.org/djmitche/prettyip.svg?branch=master
  :target: https://travis-ci.org/djmitche/prettyip

Compatibility
-------------

Everywhere IPy_ runs, so does this -- CPython-2.6 through 3.4.

Usage
-----

Explicitly::

    from IPy import IPSet, IP
    import prettyip

    my_ipset = IPSet([IP('10.0.0.0/8')]) - IPSet([IP('10.0.1.2')])
    print prettyip(my_ipset)

Or, monkey-patch IPy_::

    import prettyip

    prettyip.patch_ipy()

    my_ipset = IPSet([IP('10.0.0.0/8')]) - IPSet([IP('10.0.1.2')])
    print my_ipset

.. _IPy: https://pypi.python.org/pypi/IPy


