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.

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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: whitenoise-4.1.2.tar.gz
  • Upload date:
  • Size: 42.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for whitenoise-4.1.2.tar.gz
Algorithm Hash digest
SHA256 42133ddd5229eeb6a0c9899496bdbe56c292394bf8666da77deeb27454c0456a
MD5 d3d80d5c923a4c42fa404350dd27f82d
BLAKE2b-256 de3b21ec26100b7c41302aef2157c8cfd81bffc8bbc9ab69519c37be121fffd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for whitenoise-4.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 118ab3e5f815d380171b100b05b76de2a07612f422368a201a9ffdeefb2251c1
MD5 51f4e21ee1899968c03129bd089c5e44
BLAKE2b-256 fd2ab51377ab9826f0551da19951257d2434f46329cd6cfdf9592ea9ca5f6034

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