主机、网络和网络集合的对象表示、操作和逻辑。
NetCIDR的Python项目详细描述
请注意:此包已弃用;请改用netaddr (http://pypi.python.org/pypi/netaddr/)。
这个库有五大功能块:
- create CIDR addresses for hosts and net blocks
- get node counts for any given netblock
- get ranges of addresses for net blocks
- create collections of networks (list subclass)
- determine if a CIDR address is in a given network or set of networks