Skip to main content

Template Engine V1 - Create software component skeletons from templates. The Template Engine takes a component template, copies it to a new directory, and performs search & replaces on targeted keywords

Project description

Template Engine V1

Hello there! Thank you for using the Template Engine. Please review our commercial license for legal use and contact us at support@entinco.com for inquiries and clarification.

Current Features

  • Create software component skeletons from templates
    • The Template Engine takes a component template, copies it to a new directory, and performs search & replaces on targeted keywords.

Installation

  • Install this package from pypi.org using the package installer for Python (Pip) or a suitable alternative.
pip install templateengine

Usage

  • In the command line / terminal, run the Template Engine with templateengine followed by the arguments you need to specify.
  • --help is a utility argument that displays the arguments available for usage.
    • Utility, not meant for execution
    • Shorthand form: -h
  • --version is a utility argument that displays the current version of the Template Engine.
    • Optional, meant for utility
  • --template is a required argument that specifies the folder or directory path where the component template is located.
    • Required, will not run without argument
    • Shorthand form: -t
  • --output is a required argument that specifies the folder or directory path where the resulting component will be saved.
    • Required, will not run without argument
    • Shorthand form: -o
  • --ignore is an optional argument that specifies the file name or relative path in the component template directory where a list of ignored keywords can be found. By default, it looks for a .gitignore file in the root directory of the template.
    • Optional
    • Default: .gitignore
    • Shorthand form: -g
  • --name is a repeatable, optional argument that specifies a keyword search and replacement to perform onto the template for the output. The argument must follow a syntax of the old keyword name, followed by the new keyword name, separated by a colon with no whitespace, for the Template Engine to properly replace the names.
    • Optional but recommended
    • Can be used multiple times
    • Shorthand form: -n
    • Syntax: --name=<old_name>:<new_name>
  • --verbose is an optional argument that includes verbose line output when running in the terminal.
    • Optional
    • Shorthand form: -v
  • --quiet is an optional argument that mutes all output when running in the terminal.
    • Optional
    • Overwrites --verbose
    • Shorthand form: -q
  • --version is an optional argument that show the version of the package.
    • Optional
  • We highly recommend writing batch or shell scripts for easier argument inputs and repeatable usage.

Example

Here is an example of a Powershell script utilizing the Template Engine.

#!/usr/bin/env pwsh

templateengine `
--template=../../templates/backend/node/service-cruddata-pipservices `
--output=../../output/service-products-pipservices `
--name=cruddata:products `
--name=entity:product `
--name=entities:products `
--verbose

Contact

Please contact us at support@entinco.com for inquiries and clarification.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

templateengine-1.0.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

templateengine-1.0.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file templateengine-1.0.3.tar.gz.

File metadata

  • Download URL: templateengine-1.0.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for templateengine-1.0.3.tar.gz
Algorithm Hash digest
SHA256 a7a3524d4f9b249989e8cd6b37085d70c07d0121a0db642ab576efb1d6bb4084
MD5 6f5f6f78fc970be5a1cd9b8de779d024
BLAKE2b-256 24bf726e89be230c9f400caebcfa28abe2f7bfb931f75d9dd629970e305d5f57

See more details on using hashes here.

File details

Details for the file templateengine-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for templateengine-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b22561ebfcfdfe6a256e80bd723736eb54b8388fe5daa8ae6d424f60caabd68e
MD5 2c982a1f466bbc465aad89bdfa3770ea
BLAKE2b-256 bb963fdd853d6b79e17941302e575423863daefb172a1727a71f8d36dd750cc4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page