Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yaml_parser_annek-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yaml_parser_annek-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file yaml_parser_annek-0.1.1.tar.gz.

File metadata

  • Download URL: yaml_parser_annek-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0

File hashes

Hashes for yaml_parser_annek-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1a6eaf981c015a81b26a57a701f45e9d6f58f1636374ffea3cadb1e921e4df4f
MD5 2f8e2bc36dbc8a80966b12ebe49b61cd
BLAKE2b-256 03107fcc7a0e7848d421b6f4b073c0cae5d1a9ce0b845dc1ac7e1cca8c941346

See more details on using hashes here.

File details

Details for the file yaml_parser_annek-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: yaml_parser_annek-0.1.1-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

Hashes for yaml_parser_annek-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 752bef00553e34c08fb1e9c9d95e2ac5cf664bd40b0b56e670a9398e7135d829
MD5 df99adfa4d2717437e6d3a56838cb278
BLAKE2b-256 5d4f7653bd5b97b234289d3d3916b2b87fb4c8726e81099b14a7e2a733c68500

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page