Primary Authors
@wesleykendall (Wes Kendall)
@gwax (George Leslie-Waksman)
Other contributors can be found in the AUTHORS file
Templated project management
Temple provides templated project creation and management.
The main functionality of temple includes:
Creating new projects from cookiecutter templates.
Listing all available templates under a github user / org along with all projects created from those templates.
Keeping projects up to date with the template as it changes.
View the temple docs here. A quick start and installation overview is provied below.
temple can be installed with:
pip3 install temple
Most temple functionality requires a GITHUB_API_TOKEN environment variable to be set. The Github API token is a personal token that you create by following the Github Access Token Instructions. This token only requires repo scope.
Projects are setup by temple with:
temple setup <git@github.com:user/cookiecutter-template.git>
Temple uses cookiecutter to gather user input and create the initial project scaffolding. cookiecutter hooks can be used to do additional project setup, such as publishing it to a remote Github repository or configuring continuous integration.
Once a project is set up and published to Github, temple-created projects can be listed with the temple ls command. temple ls <github_user_or_org> will list all available templates under a Github user or org. temple ls <github_user_or_org> <git@github.com:user/cookiecutter-template.git> will list all projects created using a particular template. Note that temple ls -l will print off descriptions of the returned repositories.
If a template is ever updated, changes can be pulled into a project with:
temple update
This will diff the changes in the new template and apply them to your repository. You will have to add and push these changes yourself. Note to lookout for “*.rej” files after updating. These are lines that could not automatically be applied to your repository, and you should look into them to see if they should be applied.
Note that temple update --check can be used to check if the project is up to date with the latest template.
For information on setting up temple for development and contributing changes, view CONTRIBUTING.rst.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Details for the file temple-1.4.2.tar.gz
.
Algorithm | Hash digest | |
---|---|---|
SHA256 | 755d3ca0657a9bb7961deefd6537c3f65236e8162726e269a89e4004a2c1bde7 |
|
MD5 | 2720e3974ed3294f4fe38fde2c1392f8 |
|
BLAKE2b-256 | beb843c105f17b4892e7197808aff371f751d931f0685ee2527b74e6cee60bc7 |
Details for the file temple-1.4.2-py3-none-any.whl
.
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9badf9ec7451ccb32f74262e8aaa29cd70e2657cb412161c21b46395c36a0d6 |
|
MD5 | 51e9c180cbe1d5afe86cd1c4c606a0c5 |
|
BLAKE2b-256 | ec34d31c82d137fb9ca328577f6fb7655fe17ced9a22964254eee2ad68ddafe3 |