skelate
A utility to create directory from skeletons, with templating support.
This is a tool inspired by the functionality provided by ansible-galaxy init.
Requirements
- python 3.8+
Installing
Install and update using pip:
pip install -U skelate
Alternatively, you can package and run skelate in a docker container:
make image
Usage
Basic usage is to treat skelate like cp -r, with expansion of j2 files.
skelate this/dir that/dir
If this/dir contains no files with a j2 extension, this will act exactly
like cp -r.
If this/dir does contain files with a j2 extension, these will be expanded
into that/dir, minus their .j2 suffix.
You can pass variables to templates in two ways:
# Read variables from a JSON file
skelate --vars path/to/vars.json this/dir that/dir
# Read variables from command line
skelate --extra-vars "key=value" \
--extra-vars 'key={"key": ["value", "value"]}' \
this/dir that/dir
For more options:
skelate --help
Authors
Metadata
Release files for skelate 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| skelate-0.0.2.tar.gz | 9.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skelate-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.0 kB
Release files / skelate-0.0.2.tar.gz
| Download URL | skelate-0.0.2.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
339d3e4afda8ced0cb7e92a181a56a46ef72a96b2fc36d85e5d83862d075d3d1
|
|
BLAKE2b-256 checksum How to use checksums |
5c52d334ac7989398c74da6ef758f481cd94473f47033afa4bd73636ceebb257
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Release files / skelate-0.0.2-py3-none-any.whl
| Download URL | skelate-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f30981715ab0302b6b742dfde063ca740e9b32aa920e3a58799583a54abdcd51
|
|
BLAKE2b-256 checksum How to use checksums |
e6ff7ecdf43724be7f92360070c006ee75d5364a7c61292e1a33dc83d6300207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|