Complete IPv4 class that can represent a host or network, and iterate over networks. Supports slash notation, stringifying, and range generation (among other things).
1 2 3 4 | Too big to paste here. Get it from here:
http://code.google.com/p/pycopia/source/browse/trunk/core/pycopia/ipv4.py
|
This class should handle just about any IP address related operation. If it doesn't handle yours please let me know.
Tags: network
URL is dead. No answer from http://leviathan.kdart.com/~kdart/python/ipv4.py
URL Works for me. URL worked just fine today.
cheeseshop? This looks like something that should be added to the Python Package Index http://cheeseshop.python.org/
Is this still available? Is this still available?
Updated URL. It's now part of the Pycopia collection.