This Python script converts IP2Location CSV data file, that contains the IP address in numeric notation, into dot-decimal notation (such as x.x.x.x) or CIDR notation (x.x.x.x/24). It supports both the ...
Works on Python 3.4+. If you don't specify the output argument then you can pipe the result to another command.