Skip to content

misterflop/millipede-python

 
 

Repository files navigation

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

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

About

Print a beautifull millipede

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.3%
  • Shell 1.7%