How azure/azure-functions-python-library works
Azure Functions Python is a user-facing SDK for defining serverless functions and representing their triggers, bindings, and invocation data. The principal workflow is a developer registers a function and its trigger/bindings through the decorator API; the library exposes typed request, event, and message objects for function code and converts selected payloads to and from runtime data. The README lists the supported trigger and binding families, including custom bindings. The map also includes HTTP adapters, Durable Functions serialization, MCP support, and extension hooks. Relationships are limited to source-index references, excerpts, or README statements; unsampled wiring is not inferred.
Main entry points: meta.py Binding conversion · _http.py HTTP data model · _abc.py Abstract data contracts · decorators Trigger decorators
Components 23
Function authoring
- Function app registration
azure/functions/decorators/function_app.py - Binding model
azure/functions/decorators/core.py - Decorator utilities
azure/functions/decorators/utils.py
Triggers and bindings
- Trigger decorators
azure/functions/decorators - Binding data APIs
azure/functions - Service Bus message
azure/functions/_servicebus.py - Service Bus data
azure/functions/servicebus.py
Invocation data
- HTTP request API
azure/functions/http.py - HTTP data model
azure/functions/_http.py - ASGI adapter
azure/functions/_http_asgi.py - WSGI adapter
azure/functions/_http_wsgi.py - Abstract data contracts
azure/functions/_abc.py - Binding conversion
azure/functions/meta.py - JSON utilities
azure/functions/_jsonutils.py - Serialization helpers
azure/functions/_utils.py
Extensions and protocols
- Durable Functions
azure/functions/_durable_functions.py - MCP protocol API
azure/functions/mcp.py - MCP decorators
azure/functions/decorators/mcp.py - Extension registry
azure/functions/extension/extension_meta.py - Extension hooks
azure/functions/extension/app_extension_hooks.py - Extension scope
azure/functions/extension/extension_scope.py
Other components
- Function developer
- Azure Functions runtime
Connections 21
- Function developer → Function app registration: defines functions
- Function app registration → Trigger decorators: registers bindings
azure/functions/decorators/function_app.py - Trigger decorators → Binding model: builds bindings
azure/functions/decorators/servicebus.py - Binding model → Decorator utilities: uses utilities
azure/functions/decorators/core.py - Trigger decorators → Binding data APIs: declares capabilities
azure/functions/decorators/servicebus.py - HTTP request API → HTTP data model: uses model
azure/functions/http.py - HTTP request API → Abstract data contracts: implements contracts
azure/functions/http.py - HTTP data model → Abstract data contracts: implements contracts
azure/functions/_http.py - ASGI adapter → HTTP data model: adapts requests
azure/functions/_http_asgi.py - WSGI adapter → HTTP data model: adapts requests
azure/functions/_http_wsgi.py - Binding conversion → JSON utilities: decodes JSON
azure/functions/meta.py - Binding conversion → Serialization helpers: uses helpers
azure/functions/meta.py - Service Bus data → Service Bus message: uses message model
azure/functions/servicebus.py - Service Bus data → Binding conversion: converts payloads
azure/functions/servicebus.py - Service Bus message → Abstract data contracts: implements contract
azure/functions/_servicebus.py - Durable Functions → Abstract data contracts: uses contracts
azure/functions/_durable_functions.py - MCP decorators → MCP protocol API: uses protocol API
azure/functions/decorators/mcp.py - MCP protocol API → Binding conversion: encodes data
azure/functions/mcp.py - Extension registry → Extension hooks: registers hooks
azure/functions/extension/extension_meta.py - Extension registry → Extension scope: checks scope
azure/functions/extension/extension_meta.py - Azure Functions runtime → Function app registration: indexes app
azure/functions/decorators/function_app.py