Skip to main content

Radically simplified static file serving for WSGI applications

Project description

Build Status (Linux) Build Status (Windows) Latest PyPI version GitHub project

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


Download files

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

Source Distribution

whitenoise-4.0b1.tar.gz (39.2 kB view details)

Uploaded Source

Built Distribution

whitenoise-4.0b1-py2.py3-none-any.whl (20.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file whitenoise-4.0b1.tar.gz.

File metadata

  • Download URL: whitenoise-4.0b1.tar.gz
  • Upload date:
  • Size: 39.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for whitenoise-4.0b1.tar.gz
Algorithm Hash digest
SHA256 6d48c4ec34c641b119841197b35a14ea9cc8c811633ce7ab448e8420531217cd
MD5 3b9c5af2208886e7b770a421c77d3184
BLAKE2b-256 c1f86bb605f1dcb92ff67d13c2a99e01dea1e4d914c7e8bf0e4e6794e62ab672

See more details on using hashes here.

File details

Details for the file whitenoise-4.0b1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for whitenoise-4.0b1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 84040fa546bab14a57e6b27ad927086fa7ff3c037465e3bd240c9c2e2fd02382
MD5 f3660810366b5a9a69170ce5fb479312
BLAKE2b-256 1ca7e382c0a9a514cfb744994b9067196244202071c74fabf5802b4ed53c581e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page