Registry / azure / azurefunctions-extensions-base

azurefunctions-extensions-base

JSON →
library1.2.0pypypiunverified

Base Python worker extension for Azure Functions, providing infrastructure for building custom extensions. Current version 1.1.0, requires Python >=3.8. Released as part of the Azure Functions Python programming model.

pip install azurefunctions-extensions-base
INSTALL
IMPORT
SIG · AZUREFUNCTIONS-EXT
A
azurefunctions-extensions-base
azurepythonv1.2.0
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BaseExtension
from azurefunctions.extensions.base import BaseExtension
from azurefunctions.extensions.base import BaseExtension

Initialize an ExtensionRegistry, define a custom extension by subclassing BaseExtension, and register it.

from azurefunctions.extensions.base import BaseExtension, ExtensionRegistry # Initialize registry registry = ExtensionRegistry() # Define a custom extension class MyExtension(BaseExtension): def __init__(self): super().__init__() # Register extension extension = MyExtension() registry.add_extension(extension) print('Extension registered successfully.')
Debug
Known issues
deprecatedThe V1 programming model (using function.json) is deprecated in favor of the V2 model (using decorators). This extension base is designed for the V2 model.
fix
Migrate to the Azure Functions Python programming model V2 (azure.functions v1.18+).
affects: >=1.0.0
gotchaImporting from 'azurefunctions.extensions' directly without the 'base' submodule will fail. The package structure is not flat.
fix
Always import from 'azurefunctions.extensions.base'.
affects: >=1.0.0
breakingVersion 1.0.0 changed the extension registration API. Previously, extensions were registered via a different method.
fix
Use the new 'ExtensionRegistry.add_extension' method. Refer to the official changelog.
affects: 1.0.0
Upgrade
Version history
1.2.0latest on PyPI · released May 12, 2026
Audit
Dependencies
azure.functionsrequiredRequired for Azure Functions runtime integration.
Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
azurefunctions-extensions-base — pip install azurefunctions-extensions-base · libregistry