Skip to content

Python Serve

Use the serve action to deploy a Python handler as an HTTP service.

What the action does

The function runs remotely as a service and accepts HTTP requests. Serving functions do not support local execution.

Build requirements first

If the Function has requirements, run the Python Build action before deploying it so the dependencies are installed in its image.

  • Create


    Define the Python function source, handler and dependencies.

  • Run


    Deploy the service and configure its replicas and inputs.

  • Use


    Invoke the endpoint and read run outputs.