How do I convert a list of IP addresses to a list of CIDRs? Google\'s ipaddr-py library has a method called summarize_address_range(first, last) that converts two IP addres
Well, summarize_address_range reduces your problem to splitting your list into consecutive ranges. Given that you can convert IP addresses to integers using