Skip to content

lord63/pyhipku

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PyHipku

Latest Version Build Status Coverage Status

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

About

Encode any IP address as a haiku, funny and lovely. TRY IT NOW: http://pyhipku.lord63.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages