pyramid
1.0.0
Pyramid 是一個小型、快速、實用的開源 Python Web 框架。它使現實世界的 Web 應用程式開發和部署變得更加有趣、更加可預測且更有效率。嘗試 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 是 Pylons 專案的一個專案。
請參閱 Pyramid 支援和開發以取得文件、報告錯誤和取得支援。
有關在 Pyramid 中進行開發或貢獻時執行測試、新增功能、編碼風格和更新文件的指南,請參閱 HACKING.txt 和 Contributing.md。
Pyramid 根據 BSD 衍生的 Repoze 公共授權提供。
Pyramid 由 Agendaless Consulting 和貢獻者團隊提供。