仲立ち

WSGIアプリケーションでの使用嵐のためのミドルウェア
今すぐダウンロード

仲立ち ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • LGPL v2
  • 価格:
  • FREE
  • 出版社名:
  • Vsevolod Balashov
  • 出版社のWebサイト:
  • http://vsevolod.balashov.name

仲立ち タグ


仲立ち 説明

WSGIアプリケーションでのStorm ORMを使用するミドルウェア Stormは高速で、小型で強力なオブジェクトリレーショナルマッパーです。 Web対応のApplications.WSGIアプリケーションで主にMiltithReadedで使用するには、Store ObjectはStore Safe.MiddLeStorMミドルウェアではありません。 *クラス*デコレータ* Paste ConfigurationClassミドルウェア:wsgiref.simple_server import make_serverfrom storm.databaseのインポートmiddlestormdef storm_app(environ、start_response):store = environ #... db = create_database( 'postgres :// user:password @ host / base ')app = middlestorm(storm_app、db)make_server(' '、8000、App).serve_forever()デコレータミドルウェア:wsgiref.simple_serverのインポートmake_serverfrom storm.databaseのインポートcreate_databaseimport middlestorm .decorator(create_database( 'postgres:// user:password @ host / base'))def storm_app(environ、start_response):store = environ #... make_server( ''、8000、storm_app ).serve_forever()ミドルウェアを作成する貼り付けの設定を介して、.iniファイルにスタンザを追加します。 main] Pipeline = MiddleStorm MyAppby variable storm.storeに配置されたデフォルトストア。これはカスタマイズできます.app = middlestorm(storm_app、db、key = 'custom.mystore')またはデコレータスタイル:@ middlestorm.decorator(db、key = 'custom.mystore')def storm_app(environ、start_response):store = または貼り付けの設定:を使用= MiddleStorm#middleStormDB_URI = SQLite:MyApp.DBKEY = MYAPP.STOREOR PASTE構成: use = middleStormDB_URI = SQLite:myapp.dbkey = myapp.storeの要件: ・Python


仲立ち 関連ソフトウェア