Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ed4e08e
fix: configure codeql to use templateContext (#1635)
hallvictoria Jan 22, 2025
9ff0466
initial commit
hallvictoria Jan 24, 2025
cf747d6
lint + public build
hallvictoria Jan 27, 2025
e66218a
removed variables
hallvictoria Jan 27, 2025
6842770
default minor version
hallvictoria Jan 27, 2025
6b24266
fix pip audit
hallvictoria Jan 27, 2025
3f1a774
working official build
hallvictoria Jan 27, 2025
ecf4d99
working package compilation
Jan 29, 2025
67f1086
run pipelines for dev-3* branches
Jan 29, 2025
02a2504
updatge grpc versions
hallvictoria Jan 31, 2025
cf9b8a8
Merge branch 'hallvictoria/library-worker' of https://github.com/Azur…
hallvictoria Jan 31, 2025
a41ce2d
default pythonVersion
hallvictoria Jan 31, 2025
9e104c7
install azure-functions, mypy fix
hallvictoria Jan 31, 2025
327e0b6
mypy fixes
hallvictoria Jan 31, 2025
abbec6f
rename to azure-functions-runtime
hallvictoria Feb 6, 2025
e292f4a
adding tests
Feb 12, 2025
2038019
a17: rename to azure_functions_worker_v2
hallvictoria Feb 21, 2025
204bdbc
a21: remove old references to afw
hallvictoria Feb 24, 2025
a533f81
latest logs
hallvictoria Feb 25, 2025
64d5dcf
a23: change logs to GAVIN
Feb 26, 2025
2f494c7
a25: remove f-strings, python_requires>=313
Mar 12, 2025
cb83fcc
fix async timeouts
Mar 18, 2025
59ff0e0
a27: fix sync functions
Mar 18, 2025
9e34752
a38: working versions
Mar 28, 2025
1ed4007
a39: no changes, adding some testing attempts
hallvictoria Mar 28, 2025
4a0f6e7
a40: change logs to debug
Apr 9, 2025
fd8a133
lint (fails bc of test file -- to fix later)
hallvictoria Apr 9, 2025
1f58703
add support for cmbd, remove cache from worker
hallvictoria Apr 11, 2025
7f61b5e
merge in otel changes
hallvictoria Apr 11, 2025
0cee003
added logs in init, env reload, invoc
hallvictoria Apr 11, 2025
2a5657b
tests for init, env reload + lint
hallvictoria Apr 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 1 addition & 7 deletions .artifactignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
_manifest\**
bcde-output\**
Experiment_PipReport_**
GovCompDisc_Log_**
GovCompDisc_Manifest_**
GovCompDisc_Metadata_**
ScanTelemetry_**
_manifest\**
102 changes: 0 additions & 102 deletions .ci/e2e_integration_test/start-e2e.ps1

This file was deleted.

2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ omit =
# Removing the imported libraries that might show up in this.
*/azure/functions/*
*/azure/*
*/azure_functions_worker/_thirdparty/*
*/azure_functions_worker_v2/_thirdparty/*
21 changes: 0 additions & 21 deletions .devcontainer/Dockerfile

This file was deleted.

57 changes: 0 additions & 57 deletions .devcontainer/devcontainer.json

This file was deleted.

7 changes: 3 additions & 4 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
ignore = W503,E402,E731

exclude = .git, __pycache__, build, dist, .eggs, .github, .local, docs/,
Samples, azure_functions_worker/protos/,
azure_functions_worker/_thirdparty/typing_inspect.py,
tests/unittests/test_typing_inspect.py,
tests/unittests/broken_functions/syntax_error/main.py,
Samples, azure_functions_worker_v2_v2/protos/,
azure_functions_worker_v2/utils/typing_inspect.py,
tests/protos/,
.env*, .vscode, venv*, *.venv*

max-line-length = 88
4 changes: 2 additions & 2 deletions .github/linters/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ exclude =
docs,
Samples,
__pycache__,
azure_functions_worker/protos/,
azure_functions_worker/_thirdparty/typing_inspect.py,
azure_functions_worker_v2/protos/,
azure_functions_worker_v2/_thirdparty/typing_inspect.py,
tests/unittests/test_typing_inspect.py,
.venv*,
.env*,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# VALIDATE_PYTHON_PYLINT: false # disable pylint, as we have not configure it
# VALIDATE_PYTHON_BLACK: false # same as above
PYTHON_FLAKE8_CONFIG_FILE: tox.ini
FILTER_REGEX_INCLUDE: azure_functions_worker/.*
FILTER_REGEX_INCLUDE: azure_functions_worker_v2/.*
FILTER_REGEX_EXCLUDE: tests/.*
DEFAULT_BRANCH: dev
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,6 @@ prof/
tests/**/host.json
tests/**/bin
tests/**/extensions.csproj

# Protos
*pb2*
33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
# <img src="https://raw.githubusercontent.com/Azure/azure-functions-python-worker/dev/docs/Azure.Functions.svg" width = "30" alt="Functions Header Image - Lightning Logo"> Azure Functions Python Worker

| Branch | Build Status | CodeCov | Test Status |
|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| dev | [![Build Status](https://img.shields.io/azure-devops/build/azfunc/public/658/dev)](https://azfunc.visualstudio.com/public/_build/latest?definitionId=658&branchName=dev) | [![codecov](https://codecov.io/gh/Azure/azure-functions-python-worker/branch/dev/graph/badge.svg)](https://codecov.io/gh/Azure/azure-functions-python-worker) | [![Test Status](https://img.shields.io/azure-devops/build/azfunc/public/658/dev)](https://azfunc.visualstudio.com/public/_build/latest?definitionId=658&branchName=dev) |
| Branch | Status | CodeCov | Unittests | E2E tests |
|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| main | [![Build Status](https://azfunc.visualstudio.com/Azure%20Functions/_apis/build/status/Azure.azure-functions-python-worker?branchName=main)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=57&branchName=main) | [![codecov](https://codecov.io/gh/Azure/azure-functions-python-worker/branch/main/graph/badge.svg)](https://codecov.io/gh/Azure/azure-functions-python-worker) | ![CI Unit tests](https://github.com/Azure/azure-functions-python-worker/workflows/CI%20Unit%20tests/badge.svg?branch=main) | ![CI E2E tests](https://github.com/Azure/azure-functions-python-worker/workflows/CI%20E2E%20tests/badge.svg?branch=main) |
| dev | [![Build Status](https://azfunc.visualstudio.com/Azure%20Functions/_apis/build/status/Azure.azure-functions-python-worker?branchName=dev)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=57&branchName=dev) | [![codecov](https://codecov.io/gh/Azure/azure-functions-python-worker/branch/dev/graph/badge.svg)](https://codecov.io/gh/Azure/azure-functions-python-worker) | ![CI Unit tests](https://github.com/Azure/azure-functions-python-worker/workflows/CI%20Unit%20tests/badge.svg?branch=dev) | ![CI E2E tests](https://github.com/Azure/azure-functions-python-worker/workflows/CI%20E2E%20tests/badge.svg?branch=dev) |

Python support for Azure Functions is based on Python 3.8, 3.9, 3.10, 3.11, and 3.12 serverless hosting on Linux and the Functions 4.0 runtime.
Python support for Azure Functions is based on Python 3.6, 3.7, 3.8, 3.9, and 3.10 serverless hosting on Linux and the Functions 2.0, 3.0 and 4.0 runtime.

Here is the current status of Python in Azure Functions:

What are the supported Python versions?

| Azure Functions Runtime | Python 3.8 | Python 3.9 | Python 3.10 | Python 3.11 | Python 3.12 |
|----------------------------------|------------|------------|-------------|-------------|-------------|
| Azure Functions 3.0 (deprecated) | ✔ | ✔ | - | - | - |
| Azure Functions 4.0 | ✔ | ✔ | ✔ | ✔ | ✔ |
| Azure Functions Runtime | Python 3.6 | Python 3.7 | Python 3.8 | Python 3.9 | Python 3.10 | Python 3.11 |
|----------------------------------|------------|------------|------------|------------|-------------|-------------|
| Azure Functions 2.0 (deprecated) | ✔ | ✔ | - | - | - | - |
| Azure Functions 3.0 (deprecated) | ✔ | ✔ | ✔ | ✔ | - | - |
| Azure Functions 4.0 | - | - | ✔ | ✔ | ✔ | ✔ |

For information about Azure Functions Runtime, please refer to [Azure Functions runtime versions overview](https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions) page.

### What's available?

- Build, test, debug, and publish using Azure Functions Core Tools (CLI) or Visual Studio Code
- Deploy Python Function project onto consumption, dedicated, elastic premium, or flex consumption plan.
- Deploy Python Function project in a custom docker image onto dedicated or elastic premium plan.
- Triggers / Bindings : Blob, Cosmos DB, Event Grid, Event Hub, HTTP, Kafka, MySQL, Queue, ServiceBus, SQL, Timer, and Warmup
- Build, test, debug and publish using Azure Functions Core Tools (CLI) or Visual Studio Code
- Deploy Python Function project onto consumption, dedicated, or elastic premium plan.
- Deploy Python Function project in a custom docker image onto dedicated, or elastic premium plan.
- Triggers / Bindings : HTTP, Blob, Queue, Timer, Cosmos DB, Event Grid, Event Hubs and Service Bus
- Triggers / Bindings : Custom binding support

### What's new?
What's coming?

- [SDK Type Bindings for Blob](https://techcommunity.microsoft.com/t5/azure-compute-blog/azure-functions-sdk-type-bindings-for-azure-blob-storage-with/ba-p/4146744)
- [HTTP Streaming](https://techcommunity.microsoft.com/t5/azure-compute-blog/azure-functions-support-for-http-streams-in-python-is-now-in/ba-p/4146697)
- [Durable Functions For Python](https://github.com/Azure/azure-functions-durable-python)

### Get Started

Expand Down Expand Up @@ -71,4 +72,4 @@ provided by the bot. You will only need to do this once across all repos using o

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
6 changes: 0 additions & 6 deletions azure_functions_worker/__main__.py

This file was deleted.

29 changes: 0 additions & 29 deletions azure_functions_worker/bindings/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions azure_functions_worker/bindings/rpcexception.py

This file was deleted.

Loading
Loading