(機械翻訳)ピラミッドWebフレームワーク

Pyramid は小さくて速く、しっかりしたPython Webフレームワークです。 Pylons Project の一環として開発されました。これは BSD-like license <http://repoze.org/license.html> _ 。

あなたが作ることができる最も単純な Pyramid アプリケーションの1つです:

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


def hello_world(request):
    return Response('Hello %(name)s!' % request.matchdict)

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

Pyramid をインストールしてこのアプリケーションを実行すると、 Hello, world! 参照 (機械翻訳) あなたの最初の作成 Pyramid アプリケーション というテキストが http://localhost:8080/hello/world ブラウザで表示されます。

入門

Pyramidを初めてお使いになる場合は、すぐにスピードアップできるよう、いくつかのリソースが用意されています。

チュートリアル

公式チュートリアルでは、 Pyramid の機能をクイックツアーよりも深く理解しています。作業用コードでは、 Pyramid を使用してさまざまな種類のアプリケーションを構築し、デプロイする方法を説明します。 Pyramid アプリケーションをさまざまなプラットフォームに提供します。

サポートと開発

ピラミッドのウェブサイト<https://trypyramid.com/resources.html> _は、サポートと開発の情報のための :app:`Pyramid Webフレームワークリソースの主要なエントリポイントです。

バグを報告するには、 issue tracker

この文書で答えられない質問がある場合は、 Pylons-discuss maillist #pyramid IRC channel に参加するか。

Pyramid GitHub repository 経由で、 Pyramid のタグ付きバージョンとトランクバージョンを参照してチェックアウトします。 `` 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

物語のドキュメンテーション

app:Pyramid の使い方を説明した章形式の説明書。

p* スクリプトのドキュメント

p* のスクリプトに含まれています Pyramid

表記規則とスタイルガイド

インデックスと用語集