This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
Usage: python -m SimpleHTTPServerWithUpload 8888 | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
#-*- coding=utf-8 -*- | |
import shlex | |
import subprocess | |
from tornado.gen import coroutine, Task, Return | |
from tornado.process import Subprocess | |
from tornado.ioloop import IOLoop | |
@coroutine |