Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
docs/ | H | 19-Nov-2018 | - | 2,125 | 1,313 | |
whitenoise/ | H | 19-Nov-2018 | - | 1,276 | 1,037 | |
whitenoise.egg-info/ | H | 03-May-2022 | - | 77 | 62 | |
LICENSE | H A D | 08-Aug-2013 | 1.1 KiB | 21 | 16 | |
MANIFEST.in | H A D | 26-Jan-2017 | 170 | 8 | 7 | |
PKG-INFO | H A D | 19-Nov-2018 | 3.3 KiB | 77 | 62 | |
README.rst | H A D | 23-Sep-2017 | 1.8 KiB | 47 | 33 | |
setup.cfg | H A D | 19-Nov-2018 | 93 | 11 | 7 | |
setup.py | H A D | 11-Sep-2018 | 1.8 KiB | 57 | 48 |
README.rst
1WhiteNoise 2========== 3 4.. image:: https://img.shields.io/travis/evansd/whitenoise.svg 5 :target: https://travis-ci.org/evansd/whitenoise 6 :alt: Build Status (Linux) 7 8.. image:: https://img.shields.io/appveyor/ci/evansd/whitenoise.svg 9 :target: https://ci.appveyor.com/project/evansd/whitenoise 10 :alt: Build Status (Windows) 11 12.. image:: https://img.shields.io/pypi/v/whitenoise.svg 13 :target: https://pypi.python.org/pypi/whitenoise 14 :alt: Latest PyPI version 15 16.. image:: https://img.shields.io/github/stars/evansd/whitenoise.svg?style=social&label=Star 17 :target: https://github.com/evansd/whitenoise 18 :alt: GitHub project 19 20**Radically simplified static file serving for Python web apps** 21 22With a couple of lines of config WhiteNoise allows your web app to serve its 23own static files, making it a self-contained unit that can be deployed anywhere 24without relying on nginx, Amazon S3 or any other external service. (Especially 25useful on Heroku, OpenShift and other PaaS providers.) 26 27It's designed to work nicely with a CDN for high-traffic sites so you don't have to 28sacrifice performance to benefit from simplicity. 29 30WhiteNoise works with any WSGI-compatible app but has some special auto-configuration 31features for Django. 32 33WhiteNoise takes care of best-practices for you, for instance: 34 35* Serving compressed content (gzip and Brotli formats, handling Accept-Encoding 36 and Vary headers correctly) 37* Setting far-future cache headers on content which won't change 38 39Worried that serving static files with Python is horribly inefficient? 40Still think you should be using Amazon S3? Have a look at the `Infrequently 41Asked Questions`_. 42 43To get started, see the documentation_. 44 45.. _Infrequently Asked Questions: http://whitenoise.evans.io/en/stable/#infrequently-asked-questions 46.. _documentation: http://whitenoise.evans.io/en/stable/ 47