pyhipku 0.2.2
pip install pyhipku
Latest version
Released:
Encode any IP address as a haiku
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: lord63
- Tags ip, haiku
Classifiers
- Development Status
- License
- Operating System
- Programming Language
- Topic
Project description
A tiny python library to encode IPv6 and IPv4 addressed as haiku. This a python port of hipku(javascript).
Install
$ pip install pyhipku
Usage
Encode the IP address to haiku
>>> from pyhipku import encode >>> print(encode('127.0.0.1')) The hungry white ape aches in the ancient canyon. Autumn colors crunch.
Decode haiku to IP address
>>> from pyhipku import decode >>> decode('The hungry white ape\naches in the ancient canyon.\nAutumn colors crunch.\n') '127.0.0.1'
Run the tests
$ pip install nose coveralls $ nosetests -v --with-coverage --cover-package=pyhipku
About the website
The source code for the demo is here.
License
MIT
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: lord63
- Tags ip, haiku
Classifiers
- Development Status
- License
- Operating System
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyhipku-0.2.2.tar.gz
.
File metadata
- Download URL: pyhipku-0.2.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66089fa7034aaa4ad86b4dcf877eda89f3cadf3dbd368a4a7cd1a472f6af36c2 |
|
MD5 | 40e33c3f1ed85b5c1b81af11bf481d9f |
|
BLAKE2b-256 | 462cd51478b5f5d53153e2f30cef055fed5622998179874a745acb1143be19d0 |