whitenoise

Radically simplified static file serving for Python web apps

  • 所有者: evansd/whitenoise
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

WhiteNoise

.. image:: https://img.shields.io/travis/evansd/whitenoise.svg
:target: https://travis-ci.org/evansd/whitenoise
:alt: Build Status (Linux)

.. image:: https://img.shields.io/appveyor/ci/evansd/whitenoise.svg
:target: https://ci.appveyor.com/project/evansd/whitenoise
:alt: Build Status (Windows)

.. image:: https://img.shields.io/pypi/v/whitenoise.svg
:target: https://pypi.python.org/pypi/whitenoise
:alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/dm/whitenoise.svg
:target: https://pypistats.org/packages/whitenoise
:alt: Monthly PyPI downloads

.. image:: https://img.shields.io/github/stars/evansd/whitenoise.svg?style=social&label=Star
:target: https://github.com/evansd/whitenoise
:alt: 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_.

.. _Infrequently Asked Questions: http://whitenoise.evans.io/en/stable/#infrequently-asked-questions
.. _documentation: http://whitenoise.evans.io/en/stable/

主要指標

概覽
名稱與所有者evansd/whitenoise
主編程語言Python
編程語言Python (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2013-08-08 11:02:06
推送於2025-06-05 09:24:07
最后一次提交
發布數57
最新版本名稱6.9.0 (發布於 2025-02-06 22:16:37)
第一版名稱v0.9 (發布於 )
用户参与
星數2.6k
關注者數25
派生數153
提交數883
已啟用問題?
問題數246
打開的問題數25
拉請求數364
打開的拉請求數12
關閉的拉請求數25
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?