INTRO
=====
pynet is a module for efficiently manipulating IPv4 and IPv6 addresses in 
python.  See the examples below...


USAGE
=====
import pynet

for ii in [ "172.16.28.235/28", "eadf:0011:0000:0000:dead:beef:1c74:0da1/126" ]:
   nn = pynet.pyNet(ii)
   print "Analyzing %s" % nn.cidr()
   print "   IP                 is  %s"   % nn.ip()
   print "   Network address    is  %s"   % nn.network()
   print "   Broadcast address  is  %s"   % nn.broadcast()
   print "   Mask               is  %s"   % nn.mask()
   print "   Wildcard mask      is  %s"   % nn.wildcard()
   print "   Hosts              are %s"   % nn.hosts()
   print "   Address range      is  %s"   % nn.range()
   print "   Contains 1.1.1.1?  : %s"     % nn.contains("1.1.1.1")
   print "   Within 128.0.0.0/1?: %s"     % nn.within("128.0.0.0/1")
   print "   List of hosts      :\n   %s" % nn.hostenum()


BUGS & FEATURES
===============
1.  if you use IPv6 compact notation, pyNet will give you incorrect results.  
    I am working on code to support this, but right now IPv6 compact notation
    is not supported.  If you need it urgently, please email me.


THANKS
======
Thanks to Luis Munoz; the API names in his NetAddr::IP perl module served as 
the template for this module's API.


COPYRIGHT & LICENSE
===================
    pynet - Efficient manipulation of IPv4 and IPv6 addresses
    Copyright (C) 2007  David Michael Pennington

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/.


CONTACT
=======
My email:       mike [~at~] pennington [/dot\] net