Python module that allows you to perform IP subnet calculations, there is support for both …
https://github.com/tehmaze/ipcalc.git
stable