IPy - class and tools for handling of IPv and IPv6 Addresses and Networks. 
Author Message
 IPy - class and tools for handling of IPv and IPv6 Addresses and Networks.

I'm proud to announce the first public relase of IPy.

IPy is a python module for handling IPv4 and IPv6 addresses and
networks in a fashion similar to Perl's Net::IP and related
modules. The IP class allows a programmer to comfortably parse
and handle most notations in use for IPv4 and IPv6 addresses and
networks. It can detect about a dozen different ways of
expressing IP addresses and networks, parse them, and distinguish
between IPv4 and IPv6 addresses. IPy comes with a lot of
docstrings containing doctest-proofed examples, a distutils-based
setup script, and an extensive test script.

It can be found http://www.*-*-*.com/

IPy allows you to handle IP Networks in a highly python
integrated way like this:

      >>> ip = IP('127.0.0.0/30')
      >>> for x in ip:
      ...  print x
      ...
      127.0.0.0
      127.0.0.1
      127.0.0.2
      127.0.0.3
      >>> ip2 = IP('0x7f000000/30')
      >>> ip == ip2
      1

drt

--
{*filter*}age mutant ninja hero coders from da c0re - http://www.*-*-*.com/
me                                  - http://www.*-*-*.com/ ~drt/



Sat, 26 Jun 2004 04:24:17 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Locating the memory address range of a network card MAC address

2. How to get a MAC-Address from a PC in a local network

3. MAC address of network card

4. Reading Network Interface Card Addresses

5. Handling non-network, multi-machine updates

6. Getting a Network Card address in CW

7. Network card address

8. Network card address

9. network addresses

10. network or ip address in LV

11. Help! Network addresses wanted

12. Networking: data polling & threads?, Mac IP addresses

 

 
Powered by phpBB® Forum Software