Skip to main content

Radically simplified static file serving for WSGI applications

Project description

Build Status 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-3.2.2.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

whitenoise-3.2.2-py2.py3-none-any.whl (17.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for whitenoise-3.2.2.tar.gz
Algorithm Hash digest
SHA256 e4c77cdde3f7a1cd2c1d985d6a3d7dc8aff5f3d18c2f331e7171933aacaeb440
MD5 66d5b45b8577c2fac3d86207c139f42f
BLAKE2b-256 bbc37d2bc79d90a8583903d9b4b28c0aae3ae7d106f7c3e9c15e269858959347

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for whitenoise-3.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 90a576ecb938cfef3fd1dba0c82d10e8e9ff0acb6079d7edba64822db0e4384d
MD5 df5ea8413fbd7c5e1d9122589cab678a
BLAKE2b-256 260be6a3b2ba1905deb722c05670f292170d079a3c8df76c0239db83ced9322b

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