Skip to content

Conversation

@vrdmr
Copy link
Member

@vrdmr vrdmr commented Aug 12, 2024

The function allows direct calling of Functions using the Python interpreter

import azure.functions as func
import logging

app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)

@app.route(route="http_trigger")
def http_trigger(req: func.HttpRequest) -> func.HttpResponse:
    return "Hello, World!"

print(http_trigger(None))
➜ python function_app.py
Hello, World!

@vrdmr vrdmr changed the title Adding ability to invoke functions directly feat: Adding ability to invoke functions directly Aug 13, 2024
@hallvictoria hallvictoria merged commit 3873bab into dev Aug 19, 2024
@hallvictoria hallvictoria deleted the vameru/enable-user-function-calling branch August 19, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants