Parse Yaml Files
Project description
ypa
A CLI for parsing yaml files.
You must set YPA_IMPORT_DIR and YPA_EXPORT_DIR or define them in a .env file.
Example:
YPA_IMPORT_DIR="/my-yaml-files"
YPA_EXPORT_DIR="/inventory/host_vars"
Usage:
$ ypa [OPTIONS] COMMAND [ARGS]...
Options:
--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.
Commands:
get-machine-details: Get details for Machines from a YAML file.write-hostvar-files: Export machine details to a file.
ypa get-machine-details
Get details for Machines from a YAML file.
Arguments:
filename: The path to the YAML file.
Usage:
$ ypa get-machine-details [OPTIONS] FILENAME
Arguments:
FILENAME: [required]
Options:
-s, --silent: Silent mode. No output.--help: Show this message and exit.
ypa write-hostvar-files
Export machine details to a file.
Arguments:
import_filename: The path to the YAML file to import.
Usage:
$ ypa write-hostvar-files [OPTIONS] IMPORT_FILENAME
Arguments:
IMPORT_FILENAME: [required]
Options:
-s, --silent: Silent mode. No output.--help: Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yaml_parser_annek-0.1.3.tar.gz.
File metadata
- Download URL: yaml_parser_annek-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
356d5a988e8c014d3073f1d8004bbdee96da55207ad3efdc3c3138d265966e0b
|
|
| MD5 |
bd026b30ae415c0cf23dcc43c7d2af64
|
|
| BLAKE2b-256 |
fd93d6c0c1a4b44b652552f2570819d957065f2d58ffc3e97f6f4e9f3a864c1c
|
File details
Details for the file yaml_parser_annek-0.1.3-py3-none-any.whl.
File metadata
- Download URL: yaml_parser_annek-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4ad73b40461393bdb7637fcf2cbf28fdc84687e7ca54fa09e32d990fb2ef3c1
|
|
| MD5 |
6592e57a3023a3821e871e64fac50d22
|
|
| BLAKE2b-256 |
081f7151386d6d8a4a9a649e5c019d2cb55ce014f16fe351467974d93f320772
|