Skip to main content

better SimpleHTTPServer using tornado

Project description

Use tornado’s static file handler to replace SimpleHTTPServer in Python standard library, with this you can simply type only one command and run an HTTP server on the port you desired, the default port 8000 is as the same as SimpleHTTPServer provided.

Installation

python setup.py install

Usage

$ python -m SimpleTornadoServer

Serving HTTP on 0.0.0.0 port 8000 …

the default port is 8000, or

$ python -m SimpleTornadoServer [PORT]

Also, you can use SocketServer.ThreadingMixin and BaseHttpServer.HTTPServer for the ability of concurrency.

Project details


Download files

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

Source Distribution

SimpleTornadoServer-0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page