Skip to main content

Radically simplified static file serving for WSGI applications

Project description

Build Status (Linux) Build Status (Windows) 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-4.0b5.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

whitenoise-4.0b5-py2.py3-none-any.whl (19.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file whitenoise-4.0b5.tar.gz.

File metadata

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

File hashes

Hashes for whitenoise-4.0b5.tar.gz
Algorithm Hash digest
SHA256 8001e3f801c9418a2114f397299bb59c8c3254a854d54b135fc252309697c93d
MD5 5534bd237707e120913d4ff2fd3ae9c4
BLAKE2b-256 7ea71f9eeb443c29d484e45e39a1d8a9ab8a51cac11b83b1b36f0cd3f33a10b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for whitenoise-4.0b5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b3b13612a4f89a8379b487cbd84998e6cd5bc0c25cf1e0e3ba27df1f41d4806
MD5 99623d17fefdf5a10df5b9474ce5f724
BLAKE2b-256 409883d8280210aab6a2da27a6e31b823748ab470726f9c05367aa55b4de2742

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