Skip to main content
The metaflow.apps Python module lets you create, manage, and delete deployments from Python code. It provides the same capabilities as the deployments CLI, embeddable in your own programs. This section is the reference for that module:
  • AppDeployer: The class that creates and deploys apps. Start here.
  • DeployedApp: The object returned by a deployment, with methods for logs, scaling, and deletion.
  • Utilities: bake_image and package_code, the functions that prepare your image and code for deployment.
  • Using metaflow.apps in flows: Deploy apps from inside a Metaflow flow with the @app_deploy decorator.
  • Exceptions: The exception classes raised by the module.
New to deployments? Start with Writing your first deployment for a guided introduction.