static3
A really simple WSGI way to serve static (or mixed) content.
What it is and what it does
static3 is a lightweight WSGI middleware for serving static files and optionally templated content. It provides two main components: Cling for simple file serving with optional gzip compression and custom headers, and Shock for serving files with template processing using string substitution, kid, or Genshi. The package was designed as a Python 3 fork of an older library and includes convenience methods for serving files via pkg_resources and ad-hoc HTTP sharing.
The library has no runtime dependencies and integrates directly into WSGI applications. It supports header customization by file type, extension, or URL prefix, and can serve pre-compressed gzip variants of files when available. However, the package has been abandoned since 2016 with no active maintenance, making it a legacy tool suitable primarily for existing deployments or isolated use cases rather than new projects.
Use it for:
- Serve static assets (CSS, JS, images) from a Python WSGI application with minimal overhead.
- Ad-hoc HTTP file sharing for development or testing without setting up a full web server.
- Serve simple templated HTML files with variable substitution or Genshi templates in legacy systems.
- Add gzip compression and cache-control headers to static content in existing WSGI stacks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Serves static and templated content over WSGI, with optional gzip compression and custom headers. Provides both a simple file server (Cling) and a templated variant (Shock) supporting string substitution, kid, and Genshi templates.
No. The package is abandoned (last release 2016, last commit 2019) with no active maintenance or security updates. While it has no known vulnerabilities and no runtime dependencies, the lack of maintenance and unspecified Python version support make it unsuitable for new projects. Use only if maintaining legacy code already depending on it; for new work, choose an actively maintained WSGI static server.
Install
static3 on PyPI
pip
pip install static3uv
uv add static3poetry
poetry add static3Installing static3
Before you install
High install friction: no runtime dependencies but the package is abandoned (last release 2016-05-10, last commit 2019-06-28). No active maintenance or security updates for years. Suitable only for legacy systems or isolated use cases where stability is not a concern.
License in practice
Licensed under LGPL (copyleft). Use in proprietary applications requires careful review of copyleft obligations—derivative works or linked code may require source disclosure. Acceptable for open-source projects or internal tools.
Quickstart
pip install static3
from static import Cling
from wsgiref.simple_server import make_server
my_app = Cling("/my/directory")
make_server("localhost", 9999, my_app).serve_forever()
Python version support is unspecified in the package metadata; verify compatibility with your target Python version before deployment.
Verify before relying
- Whether the package works reliably on modern Python versions (3.9+) given its abandonment since 2016.
- Whether Genshi and kid template backends remain compatible with current versions of those libraries.
- Performance characteristics and security posture for production use compared to modern WSGI static servers.
Package facts
| License | LGPL (copyleft) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,748 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 89,304/month — #13,671 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: static3-0.7.0.tar.gz
Keywords: wsgi, web, http, static, content, webapps
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
dj-staticWraps a WSGI application to serve static files…
permissive · top 15,000 on PyPI
servestaticServeStatic serves static files efficiently…
permissive · top 15,000 on PyPI
whitenoiseWhiteNoise serves static files directly from a…
permissive · top 5,000 on PyPI
asyncore-wsgiA single-threaded asynchronous WSGI server with…
permissive · top 15,000 on PyPI
PastePaste provides WSGI middleware components for…
permissive · top 5,000 on PyPI
PasteScriptPasteScript is a command-line tool for creating…
permissive · top 15,000 on PyPI
Flask-CompressFlask-Compress automatically compresses Flask…
permissive · top 5,000 on PyPI
pyramidPyramid is a Python web framework for building…
permissive · top 5,000 on PyPI
PasteDeployPasteDeploy loads and configures WSGI…
permissive · top 5,000 on PyPI
HypercornHypercorn is an ASGI and WSGI web server…
permissive · top 5,000 on PyPI