Azure Functions Python Extension
Usage to Example Function App
The _example/ folder contains a sample Function App that will use the python_worker_extension_timer. Ensure you have Azure Functions Core Tools installed. Please follow the steps below to validate the extension end to end:
- Open a Windows PowerShell or any Linux shell as you prefer.
- Change your directory into the
_example/
- Create a Python virtual environment by
py -m venv .venv
in Windows, orpython3 -m venv .venv
in Linux. - Activate the Python virutal environment with
.venv\Scripts\Activate.ps1
in Windows PowerShell orsource .venv/bin/activate
in Linux shell. - Install the packages for your function app project
pip install -r requirements.txt
- Start the function host with
func host start --verbose
You should now be able to access http://localhost:7071/api/HttpTrigger
. Each http response reports the time elapsed of request processing.