Registry / http-networking / static3

static3

JSON →
library0.7.0pypypiunverified

static3 is a simple WSGI middleware for serving static files (or mixed static/dynamic content). It is a fork of static with Python 3 support and additional features like arbitrary headers and precompressed content. Current version: 0.7.0. Release cadence is irregular; last release was in 2016.

http-networkingweb-framework
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from static import StaticMiddleware

Minimal WSGI server serving static files from /path/to/static/files at the /static URL prefix.

from wsgiref.simple_server import make_server from static import StaticMiddleware app = StaticMiddleware(my_wsgi_app, "/static", "/path/to/static/files") if __name__ == "__main__": httpd = make_server("", 8000, app) print("Serving on port 8000...") httpd.serve_forever()
Debug
Known footguns
gotchastatic3 is a fork of the unmaintained static library. Ensure you install static3, not static, for Python 3 support.
gotchaThe package name on PyPI is 'static3', but the import module is 'static'. Do not import 'static3' directly.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources