Do you want to write a Azure Function using Python SDK or create an Function App (the azure function host) using Python SDK?
To create an Function App using Python you could use this API: https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/create-function same way you invoke any API. If there is an sdk approach it could be probably using this API underneath
This is not exact for the create function but same base:
https://lnx.azurewebsites.net/azure-resource-manager-api-calls-from-python/
I suspect there is no option for function app under the sdk. There is "web app": https://learn.microsoft.com/en-us/azure/developer/python/sdk/examples/azure-sdk-example-web-app?tabs=cmd
I would have to be under this namespace:
I may be missing but I can find anything for Function apps: https://azure.github.io/azure-sdk/releases/latest/mgmt/python.html