Azure / Azure/azure-functions-python-library

Can't change default function name while using FastAPI

Ouverte
#195 6 commentaires 4 réactions 0 personnes assignées Voir sur GitHub
area:python-functions
Langage dominant
Python
Étoiles
179
Forks
79
Merge moyen
2 j 8 h
PR mergées (30 j)
2

Description

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")

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Examinez d’abord AsgiFunctionApp et l’utilisation proposée de function_name(name=...), puis inspectez comment la bibliothèque déduit le nom par défaut déployé. Confirmez la manière prise en charge d’attribuer un nom personnalisé et vérifiez que plusieurs fonctions FastAPI peuvent coexister dans une même application.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, fastapi, python
Domaine
api, backend, cloud
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.