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.3.0.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

whitenoise-5.3.0-py2.py3-none-any.whl (19.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: whitenoise-5.3.0.tar.gz
  • Upload date:
  • Size: 46.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for whitenoise-5.3.0.tar.gz
Algorithm Hash digest
SHA256 d234b871b52271ae7ed6d9da47ffe857c76568f11dd30e28e18c5869dbd11e12
MD5 792ddc37be69a93f218f2cfa17fe95e2
BLAKE2b-256 782984c808294f76d854e9983a18cb6129c1d72a99609aef1853f8e6399de07f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whitenoise-5.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for whitenoise-5.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d963ef25639d1417e8a247be36e6aedd8c7c6f0a08adcb5a89146980a96b577c
MD5 6c88a7badfd5c9f5f164c2a7acf2209a
BLAKE2b-256 8d1eec69984d05e570ec7c61d28cbce51b8f4623e4121ca57ac6ad76e4f5ffe8

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