**以前のリビジョンの文書です**
RFC5952
文字列とバイナリ表現の相互変換用のスクリプト。
こんな感じで使う。
import rfc5952binary = '\x20\x01\x0d\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'rfc5952.inet6_ntoa(binary)
'2001:db8::1'
string = "2001:db8:1f1f:90::82"rfc5952.inet6_aton(string)
' \x01\r\xb8\x1f\x1f\x00\x90\x00\x00\x00\x00\x00\x00\x00\x82'
Bitbucketで公開してます。