Skip to main content

commandline utility to manipulate YAML files

Project description

This package provides the yaml commandline utlity for converting to/from YAML and for manipulating YAML files

Basic usage:

  • yaml round-trip <file_name> for basic roundtrip testing of YAML files

  • yaml json <file_name> for conversion of JSON file(s) to a single YAML block style document

  • yaml json --write <file_name> to convert JSON files to individual .yaml files. This is essential for being able to comparing otherwise unreadable JSON files (e.g. single line metadata.json files in .whl distributions)

  • yaml ini <file_name> for conversion of an INI/config file (ConfigObj comment and nested sections supported) to a YAML block style document. This requires configobj to be installed (pip install ruamel.yaml.cmd[configobj])

  • yaml from-csv <file_name> for conversion CSV to a YAML file to a a table in an HTML file.

  • yaml htmltable <file_name> for conversion of the basic structure in a YAML file to a a table in an HTML file. The YAML file:

    - fruit
    - legume
    - apple
    - sprouts
    - orange
    - broccoli

    is converted into the table:

    title fruit legume
    local apple sprouts
    import orange broccoli
  • yaml merge-expand <input> <output> expand merges in input YAML file (use - for stdin/out)

See yaml --help for more information on the availble commands

Project details

Download files

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

Files for ruamel.yaml.cmd, version 0.5.10
Filename, size File type Python version Upload date Hashes
Filename, size ruamel.yaml.cmd-0.5.10.tar.gz (25.2 kB) File type Source Python version None Upload date Hashes View
Filename, size ruamel.yaml.cmd-0.5.10-py3-none-any.whl (17.7 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page