python convert ipv6 to an integer

Viewed 12682

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,

5 Answers
Related