Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Encode any IP address as a haiku

Project Description

A tiny python library to encode IPv6 and IPv4 addressed as haiku. This a python port of hipku(javascript).


$ pip install pyhipku


Encode the IP address to haiku

>>> from pyhipku import encode
>>> print(encode(''))
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')

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.



Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyhipku-0.2.2.tar.gz (9.6 kB) Copy SHA256 Checksum SHA256 Source Jul 23, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting