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.

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

Uploaded Source

Built Distribution

whitenoise-4.1.3-py2.py3-none-any.whl (20.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for whitenoise-4.1.3.tar.gz
Algorithm Hash digest
SHA256 59d880d25d0e90bcc6554fe0504a11195bd2e59b3d690b6fb42a8040d4e67ef5
MD5 5bec9e7d670f22f41f930378587a9589
BLAKE2b-256 05c19b68534904ab55696d36b399bd18afd1c6f00269a48692580ae9d253db78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for whitenoise-4.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c9b7c47fdc1dba4d37bf2787a01a844dc7a521e174fcd22a2d429e0be65e1782
MD5 19afa5ecc258de304d25e1a6b78ba761
BLAKE2b-256 967592afb2d8912ac19646f67a2c69bb8683e5aab78db3b0791bfd3e7ed022bb

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