Pyramid網絡框架?

Pyramid 是一個小型、快速、實際的python web框架。它是作為 Pylons Project . 它是根據 BSD-like license .

這里有一個最簡單的 Pyramid 您可以制作的應用程序:

from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response


def hello_world(request):
    return Response('Hello World!')


if __name__ == '__main__':
    with Configurator() as config:
        config.add_route('hello', '/')
        config.add_view(hello_world, route_name='hello')
        app = config.make_wsgi_app()
    server = make_server('0.0.0.0', 6543, app)
    server.serve_forever()

安裝后 Pyramid 并在您訪問時運行此應用程序 http://localhost:6543/ 在瀏覽器中,您將看到文本 Hello World!創建您的第一個 Pyramid 應用 有關此應用程序如何工作的完整解釋。

入門?

如果你是新來的Pyramid,我們有一些資源,可以幫助你盡快提高速度。

教程?

官方教程提供了對 Pyramid 的功能比快速瀏覽更深入,并使用工作代碼,解釋如何使用 Pyramid 構建各種類型的應用程序,以及如何部署 Pyramid 應用到各種平臺。

支持和發展?

這個 Pyramid website 主要入口點是 Pyramid 用于支持和開發信息的Web框架資源。

要報告錯誤,請使用 issue tracker .

如果您有本文檔未解答的問題,請聯系 Pylons-discuss maillist 或加入 #pyramid IRC channel 。

瀏覽并查看的標記和主干版本 Pyramid 通過 Pyramid GitHub repository . 通過檢查后備箱 git ,使用以下任一命令:

# If you have SSH keys configured on GitHub:
git clone git@github.com:Pylons/pyramid.git

# Otherwise, HTTPS will work, using your GitHub login:
git clone https://github.com/Pylons/pyramid.git

了解如何成為 Pyramid 請看 How to Contribute Source Code and Documentation .

敘述性文件?

章節形式的敘述性文件,解釋如何使用 Pyramid .

API文檔?

各公開API的綜合參考資料 Pyramid

p* 腳本文檔?

p* 腳本包含在 Pyramid .

改變歷史?

設計文件?

排版慣例和樣式指南?

索引和術語表?