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.2.tar.gz (2.9 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.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for yaml_parser_annek-0.1.2.tar.gz
Algorithm Hash digest
SHA256 01558e47750dbff7ea1cd5adc864874c99e6cbc60783635b868157f4b42f92cb
MD5 6f0fb6b47e65b9ac86225e223f912558
BLAKE2b-256 2e590578d98793c9a269e1f898b8e4ad50e684e834ae5d150f04e8521008083e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yaml_parser_annek-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a9c8f532bd15e68d8146c2c8d69bbcdd1703f82f9456c2a631e1bf2b94fb82ea
MD5 ceb4316e9309e5c9bb16e6eea86275eb
BLAKE2b-256 911af8efa6319d45dba15ec0be71959b0bb1a9e55d4bb13aab75951835c3ff07

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