millipede

THE millipede generator


Keywords
millipede
License
BSD-3-Clause
Install
pip install millipede==2.0

Documentation

millipede build-status

Print a beautifull millipede to send to your friends !!!

Basic usage:

$ millipede 20 "Chaud devant! Mon millepatte doit passer!"

Chaud devant! Mon millepatte doit passer!

    β•šβŠ™ βŠ™β•
  β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
 β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
 β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
  β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
   β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
   β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
  β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
 β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
 β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
  β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
   β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
   β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
  β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
 β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
 β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
  β•šβ•(β–ˆβ–ˆβ–ˆ)═╝
   β•šβ•(β–ˆβ–ˆβ–ˆ)═╝

There's also a very convenient -r option to reverse the millipede:

$ millipede -r 20 'Aaah, il est passé !'

 ╔═(β–ˆβ–ˆβ–ˆ)═╗
  ╔═(β–ˆβ–ˆβ–ˆ)═╗
   ╔═(β–ˆβ–ˆβ–ˆ)═╗
    ╔═(β–ˆβ–ˆβ–ˆ)═╗
    ╔═(β–ˆβ–ˆβ–ˆ)═╗
   ╔═(β–ˆβ–ˆβ–ˆ)═╗
  ╔═(β–ˆβ–ˆβ–ˆ)═╗
 ╔═(β–ˆβ–ˆβ–ˆ)═╗
╔═(β–ˆβ–ˆβ–ˆ)═╗
 ╔═(β–ˆβ–ˆβ–ˆ)═╗
  ╔═(β–ˆβ–ˆβ–ˆ)═╗
   ╔═(β–ˆβ–ˆβ–ˆ)═╗
    ╔═(β–ˆβ–ˆβ–ˆ)═╗
    ╔═(β–ˆβ–ˆβ–ˆ)═╗
   ╔═(β–ˆβ–ˆβ–ˆ)═╗
  ╔═(β–ˆβ–ˆβ–ˆ)═╗
 ╔═(β–ˆβ–ˆβ–ˆ)═╗
╔═(β–ˆβ–ˆβ–ˆ)═╗
 ╔═(β–ˆβ–ˆβ–ˆ)═╗
  ╔═(β–ˆβ–ˆβ–ˆ)═╗
    β•”βŠ™ βŠ™β•—

Aaah, il est passé !

Customize the millipede:

 $ milliped 20 -t bocal 'Chaud devant! Mon beau millepatte doit passer!'

    β•šβŠ™ βŠ™β•
  β•šβ•(🐟🐟🐟)═╝
 β•šβ•(🐟🐟🐟)═╝
β•šβ•(🐟🐟🐟)═╝
 β•šβ•(🐟🐟🐟)═╝
  β•šβ•(🐟🐟🐟)═╝
   β•šβ•(🐟🐟🐟)═╝
    β•šβ•(🐟🐟🐟)═╝
    β•šβ•(🐟🐟🐟)═╝
   β•šβ•(🐟🐟🐟)═╝
  β•šβ•(🐟🐟🐟)═╝
 β•šβ•(🐟🐟🐟)═╝
β•šβ•(🐟🐟🐟)═╝
 β•šβ•(🐟🐟🐟)═╝
  β•šβ•(🐟🐟🐟)═╝
   β•šβ•(🐟🐟🐟)═╝
    β•šβ•(🐟🐟🐟)═╝
    β•šβ•(🐟🐟🐟)═╝
   β•šβ•(🐟🐟🐟)═╝
  β•šβ•(🐟🐟🐟)═╝
 β•šβ•(🐟🐟🐟)═╝

HTTP Post

You can send the millipede as POST data to a HTTP server:

millipede 10 --http-host=http://localhost:5000/ --http-name message

Using --http-auth you can specify a username/password for authentication:

millipede 10 --http-host=http://localhost:5000/ --http-name message --http_auth=user:pass

And using --http-data key=value to can add more variables:

millipede 10 --http-host=http://localhost:5000/ --http-name message --http-auth=user:pass --http-data myvar=mydata

RCFile

Some default settings can be set from a rcfile.

Here is a sample of a rcfile:

# set default size to 10
size 10
comment I'm the millipede!
reverse true
opposite false
template default
# position 3

The millipede looks for the following files:

${HOME}/.millipederc
/usr/local/etc/millipederc
/etc/millipederc

Installation from sources

# create a virtualenv
$> virtualenv myenv
$> source myenv/bin/activate

# install (for developement)
$> pip install -e .
# Or, to install dependencies to send SMS
$> pip install -e .[sms]

# install (for production)
$> pip install .

Test in a confined environment

$ docker build -t millipede .
$ docker run millipede