Skip to main content

Radically simplified static file serving for WSGI applications

Project description

Build Status (Linux) Build Status (Windows) Latest PyPI version Monthly PyPI downloads 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-5.0.1.tar.gz (44.6 kB view details)

Uploaded Source

Built Distribution

whitenoise-5.0.1-py2.py3-none-any.whl (20.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file whitenoise-5.0.1.tar.gz.

File metadata

  • Download URL: whitenoise-5.0.1.tar.gz
  • Upload date:
  • Size: 44.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for whitenoise-5.0.1.tar.gz
Algorithm Hash digest
SHA256 0f9137f74bd95fa54329ace88d8dc695fbe895369a632e35f7a136e003e41d73
MD5 77b24146e4ae51fa1389491c83b72a33
BLAKE2b-256 bbaabb815ae6f88bd23923e100a9b430612bc59cd90b8ddeffca88c2a0d94b16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for whitenoise-5.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 62556265ec1011bd87113fb81b7516f52688887b7a010ee899ff1fd18fd22700
MD5 f8a02ab7bd0fe41da1dcb9808ebee063
BLAKE2b-256 ae250c8f08c9d3c93192cd286594f1e87b17bab496fb9082c2a69e17051b91fd

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