prefect.deployments.base
prefect deploy
, providing a minimally opinionated
build system for managing flows and deployments.
To get started, follow along with the deloyments tutorial.
create_default_prefect_yaml
prefect.yaml
file in the provided path if one does not already exist;
returns boolean specifying whether a file was created.
Args:
name
: the name of the project; if not provided, the current directory name
will be usedcontents
: a dictionary of contents to write to the file; if not provided,
defaults will be usedconfigure_project_by_recipe
recipe
: the name of the recipe to useformatting_kwargs
: additional keyword arguments to format the recipeValueError
: if provided recipe name does not exist.initialize_project
name
: the name of the project; if not provided, the current directory namerecipe
: the name of the recipe to use; if not provided, one is inferredinputs
: a dictionary of inputs to use when formatting the recipe