Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple WSGI way to serve static (or mixed) content.

Project Description

This distribution provides an easy way to include static content in your WSGI applications. There is a convenience method for serving files located via pkg_resources. There are also facilities for serving mixed (static and dynamic) content using “magic” file handlers. Python builtin string substitution is provided and it is easy to roll your own handlers. Also provides a command of the same name as a convenience when you just want to share a little content over HTTP, ad hoc.

Note: A Python 2.7/3.3 compatible fork of Luke Arno’s static package.

Dependencies

  • six # For Python 2/3 compatability.
  • werkzeug # For replacing the deprecated Python stdlib rfc822 functionality.

Test Dependencies

  • requests - For checking the output

Running Tests

Inside a virtualenv:

python setup.py test

History

0.1.4 (2013-07-29)

  • Fix MANIFEST.in

0.1.3 (2013-07-29)

  • Tests against serving of image files working in all places

0.1.2 (2013-07-28)

  • Added tests against serving of static files
  • Mild cleanup

0.1.1 (2013-07-27)

  • Added six and werkzueg as dependencies to deal with Python 3 compat issues.
  • Fixed a number of subtle Python 3 problems
  • Removed last traces of Kid usage from the project.

0.1.0 (2013-07-27)

  • Frustation
  • Inception
  • First release on PyPI
Release History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
staticserve-0.1.4.tar.gz (14.5 kB) Copy SHA256 Checksum SHA256 Source Jul 29, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting