{"library":"static3","title":"static3","type":"library","description":"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.","language":"python","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["pip install static3"],"cli":null},"imports":["from static import StaticMiddleware","from static import ClamAVMiddleware"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/rmohr/static3","docs":null,"changelog":null,"pypi":"https://pypi.org/project/static3/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from wsgiref.simple_server import make_server\nfrom static import StaticMiddleware\n\napp = StaticMiddleware(my_wsgi_app, \"/static\", \"/path/to/static/files\")\n\nif __name__ == \"__main__\":\n    httpd = make_server(\"\", 8000, app)\n    print(\"Serving on port 8000...\")\n    httpd.serve_forever()","lang":"python","description":"Minimal WSGI server serving static files from /path/to/static/files at the /static URL prefix.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}