Azure / Azure/azure-functions-python-library
Can't change default function name while using FastAPI
オープン
area:python-functions
- 主要言語
- Python
- スター
- 179
- フォーク
- 79
- 平均マージ
- 2日 8時間
- マージ済み PR(30日)
- 2
説明
I've been trying to set a custom name while using FastAPI and couldn't find the proper way. It always deploys my function with the name "http_app_func," making deploying multiple functions to the same app impossible.
Has anyone been successful with this task?
This is the syntax I thought it would work:
app = func.AsgiFunctionApp(app=fastapi_app, http_auth_level=func.AuthLevel.FUNCTION).function_name(name="HttpTest")
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず AsgiFunctionApp と提案されている function_name(name=...) の使用方法を確認し、次にライブラリがデプロイ時のデフォルト名をどのように導出するかを調べてください。カスタム名を割り当てるためのサポートされている方法を確認し、複数の FastAPI 関数が 1 つのアプリ内で共存できることを検証してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, fastapi, python
- 領域
- api, backend, cloud
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100