run_copy ( "", "path/to/destination" ) # You can also use "gh:" as a shortcut of "" run_copy ( "gh:copier-org/copier.git", "path/to/destination" ) # Or "gl:" as a shortcut of "" run_copy ( "gl:copier-org/copier.git", "path/to/destination" )Ĭopier is composed of these main concepts: Or in Python code, programmatically: from copier import run_copy # Create a project from a local path run_copy ( "path/to/project/template", "path/to/destination" ) # Or from a Git URL. On the command-line: copier copy path/to/project/template path/to/destination ├── □ copier.yml # your template configuration To create a template: □ my_copier_template # your template project ![]() ![]() To install latest Copier release with 100% reproducibility: nix profile install '*.tar.gz' Quick start To use as a library: pip install copier or conda install -c conda-forge copier.To use as a CLI app: pipx install copier. ![]() It generates a beautiful output and takes care of not overwriting existing files.Your project can include any file and Copier can dynamically replace values in any.A library and CLI app for rendering project templates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |