Skip to content

Commit 26ff770

Browse files
hallvictoriaVictoria Hall
andauthored
docs: update streaming samples readme / local settings (#76)
* update streaming samples readme / local settings * update codeowners --------- Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
1 parent 761d258 commit 26ff770

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# AZURE FUNCTIONS TEAM
1010
# For all file changes, github would automatically
1111
# include the following people in the PRs.
12-
* @vrdmr @gavin-aguiar @YunchuWang @pdthummar @hallvictoria
12+
* @vrdmr @gavin-aguiar @hallvictoria

azurefunctions-extensions-http-fastapi/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ This library contains HttpV2 extensions for FastApi Request/Response types to us
1515

1616

1717
### Instructions
18-
1. Follow the guide to [create an app](https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-python?tabs=windows%2Cbash%2Cazure-cli%2Cbrowser).
18+
1. Follow the guide to [create an app](https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-python?tabs=windows%2Cbash%2Cazure-cli%2Cbrowser). If you're testing the function locally, make sure to update to the latest version of Core Tools.
1919
2. Ensure your app is using programming model v2 and contains a http trigger function.
2020
3. Add ```azurefunctions-extensions-http-fastapi``` to your requirements.txt
2121
4. Import Request and different types of responses from ```azurefunctions.extensions.http.fastapi``` in your HttpTrigger functions.
2222
5. Change the request and response types to ones imported from ```azurefunctions.extensions.http.fastapi```.
23+
6. Add ```"PYTHON_ENABLE_INIT_INDEXING": "1"``` to your local.settings.json file or App Settings.
2324
6. Run your function app and try it out!
2425

2526
### Bind to the FastApi-type

azurefunctions-extensions-http-fastapi/samples/fastapi_samples_streaming_download/local.settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"IsEncrypted": false,
33
"Values": {
44
"FUNCTIONS_WORKER_RUNTIME": "python",
5-
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
5+
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
6+
"PYTHON_ENABLE_INIT_INDEXING": "1"
67
}
78
}

azurefunctions-extensions-http-fastapi/samples/fastapi_samples_streaming_upload/local.settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"IsEncrypted": false,
33
"Values": {
44
"FUNCTIONS_WORKER_RUNTIME": "python",
5-
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
5+
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
6+
"PYTHON_ENABLE_INIT_INDEXING": "1"
67
}
78
}

0 commit comments

Comments
 (0)