Skip to main content

py-templater

pypi build PyPI version

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-templater only 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

Metadata

Release files for py-templater 0.1.10

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

Source distribution (sdist)

Source distribution for py-templater 0.1.10
File Size Uploaded
py-templater-0.1.10.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-templater 0.1.10
File Interpreter ABI Platform
py_templater-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / py-templater-0.1.10.tar.gz

Download URL py-templater-0.1.10.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
18135d57a1fb7f75f49372c7aa65c8793381cecbc8d58b6d93a631e128a661cb
BLAKE2b-256 checksum
How to use checksums
aa0df171516d141226656c4f9e01afda9c1330ee7c37cb62b32bbc244ca77078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / py_templater-0.1.10-py3-none-any.whl

Download URL py_templater-0.1.10-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4762cedfd4cfe6f4fd7507ba3dfe4ab47676ae57ca4e5efd54621d58204255f6
BLAKE2b-256 checksum
How to use checksums
91d328781af4e6d65bb8b1bc48ebf763b48cf7d98f9006c1a84636bdf96c6a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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