This template can be used with the copier tool to scaffold a new Python project.
Follow the steps below to use the template:
-
Install
copierif you haven't already:python --version # >=3.11.0,<4.0.0 pipx --version # >=1.1.0 pipx install copier # ending with the success message which copier # /home/$USER/.local/bin/copier copier --version # >=9.6.0
-
Ensure you have access to the template directory or repository.
-
Navigate to the directory where you want to create your new project:
cd /{project_path} -
Run the
copiercommand, use the repository URL:copier gh:42sol-eu/python_template .Alternatively, if you have a local copy run the
copiercommand, specifying the path to the template:copier /home/$USER/__templates/python_template .
-
Follow the interactive prompts to configure your new project. The prompts are defined in the
copier.ymlfile of the template.
Important
The variables used for the project are defined in copier.yml in the root folder
For more documentation see: https://copier.readthedocs.io
[!Note] Template We welcome contributions to improve this template! If you have ideas, bug fixes, or enhancements, feel free to submit a pull request on GitHub or GitLab. Here's how you can contribute:
- Ensure that you have read the necessary documentation and that your system is set up correctly.
- Fork the Repository: Create a copy of the repository in your own GitHub/GitLab account.
- Create a Branch: Make a new branch for your changes. Use a descriptive name, such as
feature/add-new-featureorfix/bug-description.- Make Your Changes: Implement your changes in the new branch. Ensure your code follows the project's style guidelines and is well-documented.
- Test Your Changes: Verify that your changes work as expected and do not introduce new issues.
- Submit a Pull Request: Open a pull request to the main repository. Provide a clear description of your changes, including the problem they solve or the feature they add.
- Be patient until we answer or give us an additional ping via the provided.
We appreciate your contributions and will review your pull request as soon as possible. Thank you for helping us improve this template!