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.1.0.tar.gz (18.5 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.1.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for whitenoise-6.1.0.tar.gz
Algorithm Hash digest
SHA256 6ccc6d1ad6fb688a398ea65d97db47f018ea0be7da75e146e8f2e837a04ba590
MD5 ff7c0298d4944d3a2290586e98ac1530
BLAKE2b-256 6a16ac46ab9bdac0e78ece6d691bd1ac5f0fc3826f2dde319126d9aa8addc8cd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for whitenoise-6.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2067fe9008a3cd7d0d75f75c9240b54f5f59996ca285cbeab18fc1e89949e30d
MD5 2acaf8d8c920b5cde4ba98eb44458550
BLAKE2b-256 129da4628f29c5224f1ae7a8de7726a0a1355e9ab519fffb8afa67209ebbb3e4

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