Skip to main content

Radically simplified static file serving for WSGI applications

Project description

https://img.shields.io/readthedocs/whitenoise?style=for-the-badge https://img.shields.io/github/actions/workflow/status/evansd/whitenoise/main.yml?branch=master&style=for-the-badge https://img.shields.io/badge/Coverage-96%25-success?style=for-the-badge https://img.shields.io/pypi/v/whitenoise.svg?style=for-the-badge https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge pre-commit

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: whitenoise-6.5.0.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for whitenoise-6.5.0.tar.gz
Algorithm Hash digest
SHA256 15fe60546ac975b58e357ccaeb165a4ca2d0ab697e48450b8f0307ca368195a8
MD5 0df06bb876cdc333604aa5b0454d2da3
BLAKE2b-256 75c9e5c293759cc3edefaaaadde986968d6d5cfa26284d25148d690fa3e578c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whitenoise-6.5.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for whitenoise-6.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16468e9ad2189f09f4a8c635a9031cc9bb2cdbc8e5e53365407acf99f7ade9ec
MD5 38d72d50fffbd3f39806f14236b52e09
BLAKE2b-256 3fd1ab1d78bcf3e78517f4c57d34c3b349f1289afb5b2dbf46e5bf5c96932be5

See more details on using hashes here.

Supported by

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