You can browse public Copier templates on GitHub using Not all templates allow updating.Ĭopier tries to have a smooth learning curve that lets you create simple templates thatĬan evolve into complex ones as needed. When the template evolves, let consumers update their and as long as they have feelings.Ĭonsumers have a working source code tree as quickly as possible. Non-humans should be happy also by using Copier's CLI or API, as long as theirĮxpectations are the same as for those humans. Programmers that want to start a new project quickly, or !!! tip Copier doesn't replace the DRY principle. Programmers that repeat code too much and prefer a tool to do But it is usually generatedĬopier targets these main human audiences: They lay out how to generate the subproject. 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 |