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.4.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: templateengine-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 fb521f51884bf31bbe05c913dd2ff35bc1883011ac0577a9f9a66cd97a0d0653
MD5 31bf332bbcc1e74084bc2eacf6e850b1
BLAKE2b-256 f2be7ad77e650d48629aaa958c0e04af2997d5b204ba2cb58390e3ef2a428da0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for templateengine-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7c30ad6fbe52c211ab0ff80823df217017d7b2ab2831cbaa55bbea5c9430a534
MD5 be4ecae8df0ae952618574ed44867195
BLAKE2b-256 4a992701ae7ec70c1556017ff1239d3fd0ff2559544675926ac837ca34b0ab2d

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