Skip to main content

archive/recursive copy with template

Project description

tarjinja: template + archive/rsync

Install

  • python -m venv .
  • ./bin/pip install tarjinja

Install head

Use

# ./bin/tarjinja
Usage: tarjinja [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  copy
  rsync
  tarc
  tarx
# ./bin/tarjinja copy --help
Usage: tarjinja copy [OPTIONS]

Options:
  --input PATH                    [required]
  --output PATH                   [required]
  --out-type [Tar|Zip|Dir|List]   [required]
  --in-type [Tar|Zip|Dir|Single]  [required]
  --filter-type [Jinja|Multi|ReverseJinja|ReverseTemplate|ReverseFormat|ReversePercent|ReverseFstring|Template|Format|Percent|Fstring|Mako]
  --value FILENAME
  --verbose / --no-verbose
  --thru TEXT
  --help                          Show this message and exit.
  • examples
  • tarjinja copy --in-type Dir --input examples/ex1 --out-type Dir --output /tmp/ex1 --filter-type Jinja --value examples/ex1.yaml
    • ls -l /tmp/ex1
  • tarjinja copy --in-type Dir --input examples/ex2 --out-type Tar --output /tmp/ex2.tar.gz --filter-type Jinja --value examples/ex2.yaml
    • tar tvfz /tmp/ex2.tar.gz
  • tarjinja tarc --value examples/pythoncli.yaml /tmp/example1.zip examples/pythoncli
    • unzip -l /tmp/example1.zip

TODO

  • symbolic link support
  • add more example template

Links

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

tarjinja-0.0.6-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file tarjinja-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: tarjinja-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for tarjinja-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fb77228317d8e0a503eb5001d5fbc7ef4c678dd16430cb10c022d72a7f62c9e2
MD5 549651a37c24ca1732e4c605315c6a0a
BLAKE2b-256 44fb59d3008f87871a45584d3edd5648f821a6862416ef9b8ad3a9c3c1f19ef2

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