generators
Project generation modules for Pipecat CLI.
- class pipecat.cli.generators.ProjectGenerator(config: ProjectConfig)[source]
Bases:
objectGenerates a complete Pipecat project from configuration.
- __init__(config: ProjectConfig)[source]
Initialize the project generator.
- Parameters:
config – Project configuration from user prompts
- generate(output_dir: Path | None = None, non_interactive: bool = False, in_place: bool = False) Path[source]
Generate the complete project structure.
- Parameters:
output_dir – Optional directory to create project in (defaults to current dir). When
in_placeis True this is the exact destination; otherwise the project is created in a<output_dir>/<project_name>subfolder.non_interactive – If True, raise FileExistsError instead of prompting
in_place – If True, scaffold directly into
output_dir(or the current directory) without nesting under a<project_name>subfolder.
- Returns:
Path to the created project directory
- Raises:
FileExistsError – If a project already exists at the destination and non_interactive is True