Table of Content

Butterfly is a tornado web server written in python which powers a full featured web terminal.
The js part is heavily based on term.js which is heavily based on jslinux.
https://pypi.python.org/pypi/butterfly/1.2.5

Butterfly is developed by France guy Florian Mounier.

$ pip --proxy : install butterfly

$ Downloading/unpacking butterfly
Running setup.py egg_info for package butterfly

Downloading/unpacking tornado>=3.2 (from butterfly)
Running setup.py egg_info for package tornado

Downloading/unpacking backports.ssl-match-hostname (from tornado>=3.2->butterfly)
Downloading backports.ssl_match_hostname-3.4.0.2.tar.gz
Running setup.py egg_info for package backports.ssl-match-hostname

Installing collected packages: butterfly, tornado, backports.ssl-match-hostname
Running setup.py install for butterfly

Running setup.py install for tornado
building 'tornado.speedups' extension
C:\portableapps\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c tornado/speedups.c -o build\temp.win32-2.7\Release\tornado\speedups.o
C:\portableapps\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.7\Release\tornado\speedups.o build\temp.win32-2.7\Release\tornado\speedups.def -LC:\Python27\libs -LC:\Python27\PCbuild -lpython27 -lmsvcr90 -o build\lib.win32-2.7\tornado\speedups.pyd

Running setup.py install for backports.ssl-match-hostname

Successfully installed butterfly tornado backports.ssl-match-hostname
Cleaning up...

Got issue to run butterfly on windows ……

$ butterfly.server.py
Traceback (most recent call last):
File "c:/Python27/Scripts/butterfly.server.py", line 48, in
from butterfly import application
File "c:\Python27\lib\site-packages\butterfly\__init__.py", line 61, in
import butterfly.routes
File "c:\Python27\lib\site-packages\butterfly\routes.py", line 19, in
import pty
File "c:\Python27\lib\pty.py", line 11, in
import tty
File "c:\Python27\lib\tty.py", line 5, in
from termios import *
ImportError: No module named termios

Just found Butterfly using fish shell which is only running on unix/linux or Cygwin, seems no chance running on msys.