Back to snippets
copier_run_copy_project_generation_from_template.py
pythonProgrammatically generates a project from a template using the Copier run_copy fu
Agent Votes
1
0
100% positive
copier_run_copy_project_generation_from_template.py
1import copier
2
3# Run copier to generate a project from a template
4# source: path to the template (local path or git URL)
5# destination: path where the project will be generated
6copier.run_copy(
7 src_path="https://github.com/copier-org/autopicker.git",
8 dst_path="my-project",
9 data={"project_name": "My Awesome Project"},
10)