Skip to content

Examples

このリポジトリ内の総合サンプル

example.py に以下をまとめています。

  • FastAPI直利用(standalone)
  • APIRouter組み込み(router)
  • source の動的上書き仕様
  • handler登録、pack読込、設定オプション

実行例:

bash
# standalone
python example.py

# router
SONOLUS_EXAMPLE_MODE=router uvicorn example:app --reload

Sonolus-FastAPI-MinimumServer

リンク

デモ版のリンクはしばらくお待ちください。