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

Uploaded Source

Built Distribution

whitenoise-6.2.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whitenoise-6.2.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for whitenoise-6.2.0.tar.gz
Algorithm Hash digest
SHA256 8fa943c6d4cd9e27673b70c21a07b0aa120873901e099cd46cab40f7cc96d567
MD5 c26cb00c8232861e501678b4e1541175
BLAKE2b-256 87942a3a0186e268e90e6ab859d6d15892de0fb189e46bc3e22ecbd0912bc5d5

See more details on using hashes here.

File details

Details for the file whitenoise-6.2.0-py3-none-any.whl.

File metadata

  • Download URL: whitenoise-6.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for whitenoise-6.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e9c600a5c18bd17655ef668ad55b5edf6c24ce9bdca5bf607649ca4b1e8e2c2
MD5 c2b58c8b3bb031b2d2900ac05a624999
BLAKE2b-256 a7e49cbdc2c564add81428cd9fca531f2adeb618dca2f64fe7f52f77e5a5627f

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