utility tool that generates code files from user-defined templates
Project description
py-templater
About this Project
Python utility tool that generates code files from user-defined templates. Save files/directories and user-defined templates, and load them on the fly whenever you need access to your boilerplate templates.
Getting Started
Prerequisites
You will need typer and rich in order to use py-templater. These should install as dependencies by default.
pip install py-templater typer rich
⚠️ Warning
py-templateronly works on Linux and macOS machines
Usage
templater --help
Usage: templater [OPTIONS] COMMAND [ARGS]...
Options
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or customize the installation.
--help Show this message and exit.
Commands
add Add a new template
gen Generates file(s) from templates
list List current current templates
rm Delete a template
view View template head
add
Allows user to define a file/directory as new template
templater add --help
Usage: templater add [OPTIONS] NAME PATH
Arguments
name template name
path path to original file/directory
gen
Generates any user defined templates in the current working directory
templater gen --help
Usage: templater gen [OPTIONS] NAME
Arguments
name template name
list
Lists all user-defined templates and corresponding metadata
templater list --help
Usage: templater list [OPTIONS]
rm
Allows user to delete any user-defined templates
templater rm --help
Usage: templater rm [OPTIONS]
view
Views head snippet of template
templater view --help
Usage: templater view [OPTIONS] NAME [N]
Arguments
name template name
n (default: 5) numbers of lines to show
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-templater-0.1.10.tar.gz.
File metadata
- Download URL: py-templater-0.1.10.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18135d57a1fb7f75f49372c7aa65c8793381cecbc8d58b6d93a631e128a661cb
|
|
| MD5 |
a45aabdc9b4b8177c894b7540cd952e0
|
|
| BLAKE2b-256 |
aa0df171516d141226656c4f9e01afda9c1330ee7c37cb62b32bbc244ca77078
|
File details
Details for the file py_templater-0.1.10-py3-none-any.whl.
File metadata
- Download URL: py_templater-0.1.10-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4762cedfd4cfe6f4fd7507ba3dfe4ab47676ae57ca4e5efd54621d58204255f6
|
|
| MD5 |
dabb832666cbc9f01a084f5d0017597e
|
|
| BLAKE2b-256 |
91d328781af4e6d65bb8b1bc48ebf763b48cf7d98f9006c1a84636bdf96c6a20
|