Skip to main content

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

yaml_indent-0.1.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

yaml_indent-0.1.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file yaml_indent-0.1.0.tar.gz.

File metadata

  • Download URL: yaml_indent-0.1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for yaml_indent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c6f178473dc7208acec6666f1011dd31561c760543db7420215ea9eb5298e8f
MD5 83e617614b758a6a09d4bb0544ef6d54
BLAKE2b-256 55af5f35bbe781edad84aa4b875fa61479632d921205019d58be1afb07caaeca

See more details on using hashes here.

File details

Details for the file yaml_indent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yaml_indent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for yaml_indent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1af487a48970f907e0e9c2f8adae2db00d54a9dfc7fbcffeea2078592b8fe337
MD5 10543ce2dcb02b37af2dba10de615f3e
BLAKE2b-256 5ab2bbd566bcfde02b8ded1486196d402c2cc9e903f0f62a3c6f9e1278f5aeda

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