ptrender & vwrite
Conveniences for rendering text files from pyratemp templates and json or yaml var files
See pyratemp for template syntax.
ptrender
ptrender 0.0.3
Use json or yaml var_files to render template_file to an adjacent
file with the same name but the extension stripped
Usage:
ptrender [SWITCHES] template_file var_files...
Meta-switches:
-h, --help Prints this help message and quits
--help-all Prints help messages of all sub-commands and quits
-v, --version Prints the program's version and quits
Switches:
-f, --force Overwrite any existing destination file
vwrite
vwrite 0.0.3
Use json or yaml vars files to render each template file found recursively
under the working folder, to an adjacent file with the same name but the
extension stripped, overriding any vars in ./vars.json in the following
order:
<root_path>/vars.json,
<root_path>/vars.yml,
<root_path>/vars.yaml,
<template.parent>/vars.json,
<template.parent>/vars.yml,
<template.parent>/vars.yaml
Later entries override earlier ones.
Usage:
vwrite [SWITCHES] [root_path=<CWD>]
Meta-switches:
-h, --help Prints this help message and quits
--help-all Prints help messages of all sub-commands and quits
-v, --version Prints the program's version and quits
Switches:
-f, --force Overwrite any existing destination file
-n, --vars-name VALUE:str Filename (excluding extension) for each vars file; the default is vars
-t, --template-ext VALUE:str Filename extension for templates; the default is t
Installation
pip install ptrender
For yaml support:
pip install 'ptrender[yaml]'
Metadata
Release files for ptrender 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ptrender-0.0.3.tar.gz | 4.3 kB | Without provenance | Details for ptrender-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ptrender-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for ptrender-0.0.3-py3-none-any.whl |
Total release size: 8.1 kB
Release files / ptrender-0.0.3.tar.gz
| Download URL | ptrender-0.0.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa1de690b13ec24c7f31b5356c6d09a6996253c38c3913893b9d28e2a127f1fb
|
|
BLAKE2b-256 checksum How to use checksums |
79bb296754df1f808d7d0529c7416a67378fdee553813ddb880304f5f028d01e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|
Release files / ptrender-0.0.3-py3-none-any.whl
| Download URL | ptrender-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8c328215c3e2620c11651ff736bbc1a5517df6372dd1d42b2f726015db92d6f
|
|
BLAKE2b-256 checksum How to use checksums |
b9ac325c689131ae832366cc96e456a5bda9fd14d34dd27ddbe33522d36218e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|
Security for ptrender 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.