GitXplorerGitXplorer
0

rfc1924

public
3 stars
2 forks
0 issues

Commits

List of commits on branch main.
Verified
43975ef517c42c11a1cfa249f49bc50152f055fe

chore: adjusted readme (#7)

00xflotus committed 13 days ago
Verified
2f306dbe7bfb5b05385f1ea37dc3b6e0afd9ae84

chore: added ruff linter (#6)

00xflotus committed 13 days ago
Verified
1186a040b48c1d0c4f45c240946dd2fd46088eb8

Added pytest dependency and run command to test.yml, moved the tests … (#5)

ssergeihychko committed a month ago
Verified
58a97930e88663bd37850b54cf11ecfa3ee29307

Upgrade to checkout v4 (#4)

eelliotwutingfeng committed 3 months ago
Verified
061c43a9de12ace338ed26a1175f4778524b6039

Merge pull request #1 from 0xflotus/0xflotus-patch-1

00xflotus committed a year ago
Verified
89629dc1fdde6862af9ff17e0bb1771da7d4bcf1

Update Dockerfile

00xflotus committed a year ago

README

The README file for this repository.

RFC 1924

This python library is an implementation of RFC 1924.

A Compact Representation of IPv6 Addresses

With this library you can store IPv6 addresses in a more compact form. It's Base85 encoded.

Usage

from rfc1924 import encode, decode

print(encode("2345:0425:2CA1::0567:5673:23b5")) # -> AN?6(i3Y+yVr74uX@J3P
print(decode("AN?6(i3Y+yVr74uX@J3P")) # -> 2345:0425:2CA1::0567:5673:23b5

Save up to 48% space with this compact form:

ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff -> =r54lj&NUUO~Hi%c2ym0