A very simple WSGI way to serve static and dynamic content.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests Release v1.1.1 Oct 20, 2014
.gitignore static redux Jan 20, 2014
MANIFEST.in update README.md and MANIFEST.in Jan 20, 2014
Makefile Add pre-gzip support Oct 7, 2014
README.md update README.md and MANIFEST.in Jan 20, 2014
dev-requirements.txt static redux Jan 20, 2014
setup.py Fix non-py3k print and add 3.4 trove classifier Jan 20, 2014



Serve static or templated content via WSGI or stand-alone.

Install Static

$ pip install static

Serve up some content:

$ static localhost 9999 static-content/

Or in the context of a WSGI application:

import static
wsgi_app = static.Cling('/var/www')

You can also use Python template strings, Moustache templates or easily roll your own templating plugin. See the tests and source code for examples.

Pull requests welcome. Happy hacking.