Package netaddr :: Package ip :: Module sets |
[hide private]
[frames] | no frames]

# Module sets

Set based operations for IP addresses and subnets.

Classes | [hide private]
| IPSet Represents an unordered collection (set) of unique IP addresses and subnets.

Functions | [hide private]
partition_ips(iterable) Takes a sequence of IP addresses and networks splitting them into two separate sequences by IP version. |

Function Details | [hide private]

### partition_ips(iterable) |
Takes a sequence of IP addresses and networks splitting them into two separate sequences by IP version. Parameters: `iterable` - a sequence or iterator contain IP addresses and networks. Returns: a two element tuple (ipv4_list, ipv6_list).