Complete IPv4 class that can represent a host or network, and iterate over networks. Supports slash notation, stringifying, and range generation (among other things).
| Python |
1 2 3 4 | Too big to paste here. Get it from here:
http://www.kdart.com/~keith/python/ipv4.py
|
Discussion
This class should handle just about any IP address related operation. If it doesn't handle yours please let me know.


Comments
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?
Sign in to comment