Skip to main content

# MyTemplates

mtpl (as in MyTemplates) is a small script/files templates manager that uses git.

# Why

Often scripting, I have a lot of small pieces of scripts, code, licences or configurations files that I frequently copy/paste from websites. This is boring and inconvenient (forgetting the website’s address, slow, too many steps, tends to leads to error, etc…). A perfect task to solve with the power of code.

Also, sharing is cool.

# How

So how to store and distribute a bunch of small pieces of code/text that will evolve in time and if possible with different versions of the “bunch”? Well git + branch is a perfect solution. But git alone doesn’t really fit such use. So, let’s build a small interface on top of it.

# What

And voilà, you have a small script that use the power of git to distribute and share severals templates of script/code/licences/configuration files with a simple and powerful way to select one of it without caring on how git is working behind.

# Usage

mtpl

List templates. At the first launch, mtpl will clone the git repository to get the script. <code>mtpl update</code> update the content of the repository.

mtpl template_name

Display template on stdout.

mtpl part_of_template_name

Display matching template on stdout or the list of matching templates if there is more than one.

mtpl update

Update the templates’ repository.

# I want to add a new template!

Jut add a new file in <code>~/.config/mytemplates/</code>.

# I want to propose a new template to the official repository!

Well, lucky you are, you already have a git repository in <code>~/.config/mytemplates/</code>. After you have added the file, commited and pushed somewhere just send me an email at cortex@worlddomination.be. You can also fork the github repository [here](https://github.com/Psycojoker/mytemplates) and send me a pull request (easier).

# Licence

Templates are in the public domain. MyTemplates is under agplv3+.

Release files for mtpl 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mtpl 0.2.2
File Size Uploaded
mtpl-0.2.2.tar.gz 3.6 kB Details

Release files / mtpl-0.2.2.tar.gz

Download URL mtpl-0.2.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e998e904fe4ddcc0ca53f26242ef6b152f171ada4acfed2268d6cbd5978f3c53
BLAKE2b-256 checksum
How to use checksums
366e86bfa2d3acdd8a70674f5e564e74048902d494f1b04b51c581f6da3d1e56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.1

1 release file

0.2

1 release file

0.1.1

1 release file

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page