Skip to main content

Create directories from skeletons, with templating support.

Project description

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

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

skelate-0.0.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

skelate-0.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file skelate-0.0.2.tar.gz.

File metadata

  • Download URL: skelate-0.0.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for skelate-0.0.2.tar.gz
Algorithm Hash digest
SHA256 339d3e4afda8ced0cb7e92a181a56a46ef72a96b2fc36d85e5d83862d075d3d1
MD5 95bf19d4f33b22f897196a211695d456
BLAKE2b-256 5c52d334ac7989398c74da6ef758f481cd94473f47033afa4bd73636ceebb257

See more details on using hashes here.

File details

Details for the file skelate-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: skelate-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for skelate-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f30981715ab0302b6b742dfde063ca740e9b32aa920e3a58799583a54abdcd51
MD5 f5936024d772ac6c9843ae34a121edf9
BLAKE2b-256 e6ff7ecdf43724be7f92360070c006ee75d5364a7c61292e1a33dc83d6300207

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