Radically simplified static file serving for WSGI applications
Project description
Radically simplified static file serving for Python web apps
With a couple of lines of config WhiteNoise allows your web app to serve its own static files, making it a self-contained unit that can be deployed anywhere without relying on nginx, Amazon S3 or any other external service. (Especially useful on Heroku, OpenShift and other PaaS providers.)
It’s designed to work nicely with a CDN for high-traffic sites so you don’t have to sacrifice performance to benefit from simplicity.
WhiteNoise works with any WSGI-compatible app but has some special auto-configuration features for Django.
WhiteNoise takes care of best-practices for you, for instance:
Serving compressed content (gzip and Brotli formats, handling Accept-Encoding and Vary headers correctly)
Setting far-future cache headers on content which won’t change
Worried that serving static files with Python is horribly inefficient? Still think you should be using Amazon S3? Have a look at the Infrequently Asked Questions.
To get started, see the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file whitenoise-4.1.tar.gz
.
File metadata
- Download URL: whitenoise-4.1.tar.gz
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b57d193478908a48acb66bf73e7a3c18679263e3e64bfebcfac1144a430039 |
|
MD5 | cf4fbdc3fa9c1624e6aa433df14bb672 |
|
BLAKE2b-256 | fdf0729fc350a75a00ab3c442619fe780e098760037a4b9c603ac61076de2d3a |
File details
Details for the file whitenoise-4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: whitenoise-4.1-py2.py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 133a92ff0ab8fb9509f77d4f7d0de493eca19c6fea973f4195d4184f888f2e02 |
|
MD5 | 02db8ccb24618043f4e82365632ed79e |
|
BLAKE2b-256 | 072ec77e71cb448f1a507bc2dfec1d5c24e35d14a737837bea6cdfd6d1ff66bd |