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:

yaml-indent 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.

Source Code

The source code for this project is hosted on GitHub. You can access it at https://github.com/knobo/yaml-indent.

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.1.tar.gz (15.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_indent-0.1.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yaml_indent-0.1.1.tar.gz
  • Upload date:
  • Size: 15.0 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.1.tar.gz
Algorithm Hash digest
SHA256 ee3d4ff1f9d11cda46f4fecf9fedbe565b34b0480f816768ebe31283b3893ccb
MD5 4716ef4b9cf5d79ae5dcfe90d16cfd49
BLAKE2b-256 bc3594cb78b51e5703246a52b6e3233bb4371b42dfc822921a9bdb26d8ee5aef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yaml_indent-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1735cb32e777c3518cf8decd9020a39e04a06617a47d222e826295a755dcf8dc
MD5 491bb2d62ec6e09aa0e4e28bfcf435ac
BLAKE2b-256 56285444d6add4363a0e529084eae3b12f85e604af259e519cd66c33504d18ea

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