Is there any package or easy way to convert an ipv6 to an integer? The algorithm should be a little smart to understand the ipv6 short formats. Before I start to write my own code , I just wonder if anyone knows a package that can do the job?
Thanks,
You can do this with some help from the standard Python socket module.
socket.inet_pton()handles IPV6 short form without any trouble.