Implementation of RFC 1924
Project description
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 *
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rfc1924-0.3.2.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file rfc1924-0.3.2.tar.gz
.
File metadata
- Download URL: rfc1924-0.3.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 309f050ae004e58fc00f20bd7451c2e4560bd06bdaf94e4aced287248ca27257 |
|
MD5 | c5dce1a66238c73d6de4c5d614a44c2a |
|
BLAKE2b-256 | 056b48b537805e425535dbaf33c796c04423613688499a44e02e712c1f4c559d |
File details
Details for the file rfc1924-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: rfc1924-0.3.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db9a3f93383df9c5052c316a56120cbc1dc706eab8796674867ec5f5b1537d8 |
|
MD5 | d4881c61ba72ec1f86284de627ee8340 |
|
BLAKE2b-256 | 3e5ce283f0c0fa4a42859333738d32a0063e43502e0cebec50826fedd1f8c14c |