Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding ability to invoke functions directly #238

Merged
merged 3 commits into from
Aug 19, 2024

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
azure/functions/decorators/function_app.py Show resolved Hide resolved
tests/decorators/test_function_app.py Outdated Show resolved Hide resolved
tests/decorators/test_function_app.py Outdated Show resolved Hide resolved
@hallvictoria hallvictoria merged commit 3873bab into dev Aug 19, 2024
10 checks passed
@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.

3 participants