No project description provided
Project description
YAML Indent
Overview
yaml-indent is a Python utility for formatting YAML files with correct indentation. It reads in a YAML file, processes it, and outputs a new YAML file with proper indentation, making the file more readable and manageable.
How it Works
The utility makes use of the PyYAML library to parse the input YAML file, and re-dumps the YAML data into the output file with correct indentation.
Installation
To use this utility, you must have Python 3 installed on your system. Additionally, you need to install the PyYAML library. You can install it using pip:
pip install yaml-indent
You can then clone this repository to your local machine.
Usage
To use this utility, you need to run the Python script yaml_indent.py with two arguments: the input YAML file and the output YAML file.
Here is an example:
python input.yaml output.yaml
In this command, input.yaml is the YAML file you want to format and output.yaml is the file where the formatted YAML will be written. If output.yaml already exists, it will be overwritten.
Contributing
Contributions to this project are welcome. If you find a bug or think of a feature that this utility could benefit from, please open an issue or submit a pull request.
License
This project is open source under the terms of the GPL License.
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
Built Distribution
Hashes for yaml_indent-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1af487a48970f907e0e9c2f8adae2db00d54a9dfc7fbcffeea2078592b8fe337 |
|
MD5 | 10543ce2dcb02b37af2dba10de615f3e |
|
BLAKE2b-256 | 5ab2bbd566bcfde02b8ded1486196d402c2cc9e903f0f62a3c6f9e1278f5aeda |