Skip to main content

Template Engine V1 - Create software component skeletons from templates

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for templateengine-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e3de33c02096093b2823500b4027abcc87532a1aa1176bbc23f712a1b92ca19
MD5 f8fb3335e17b50c339bee4dd9eced795
BLAKE2b-256 e394f728fd4b07efb74fc4e72bfe9900b8105c3e26bb23cd949d8b0d5bca4613

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