Metadata-Version: 2.1
Name: tarjinja
Version: 0.0.1
Summary: archive/recursive copy with template
Home-page: https://github.com/wtnb75/tarjinja
Author: Takashi WATANABE
Author-email: wtnb75@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: Jinja2
Requires-Dist: Click
Requires-Dist: braceexpand
Requires-Dist: PyYAML

# tarjinja: template + archive/rsync

## Install

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

## Install head

- git clone https://github.com/wtnb75/tarjinja
- cd tarjinja
- python -m venv .
- ./bin/pip install -U .


## 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]
  --value FILENAME
  --verbose / --no-verbose
  --thru TEXT
  --help                          Show this message and exit.
```

- [examples](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


