ipaddress: IPv4/IPv6 manipulation like a boss
Contents
If you are not a network engineer having to deal with IP adresses and IP networks (like me), you might be interested by this post.
I recently discovered a very convenient Python module called ipaddress
. It’s a no-brainer for common questions.
- Is an IP address part of a network?
|
- Is a network a subnet of another network?
|
- How many ip addresses is there in a network?
|