Skip to main content

Convert custom £ YAML comments into standard # comments

Project description

pardon_sir

PyPI version Python versions License: MIT

A lightweight CLI tool to write natural multi-line or single-line comments in YAML using the £ symbol. It scans your directory and instantly outputs valid, production-ready standard # YAML configurations.

How it Works

Standard YAML parsers reject block comments. pardon_sir allows you to write natural line-by-line comments using £, then automatically converts them to valid # comments while carefully protecting actual financial numbers (like "£10.99").

Custom Input File

£ PRODUCTION ENVIRONMENT CONFIG
£ Maintained by the DevOps team.
server:
  host: 127.0.0.1
  port: 8080 £ inline reminder
  price_tag: "£50.00" £ Currency symbol is perfectly safe inside text!

Processed Valid Output

# PRODUCTION ENVIRONMENT CONFIG
# Maintained by the DevOps team.
server:
  host: 127.0.0.1
  port: 8080 # inline reminder
  price_tag: "£50.00" # Currency symbol is perfectly safe inside text!

Installation

Install pardon_sir via your preferred package manager:

# Using pip
pip install pardon_sir

# Using uv
uv tool install pardon_sir

# Using poetry
poetry add pardon_sir

Usage

Run the tool from your terminal inside any project folder to automatically scan and update all .yaml and .yml files in place:

pardon_sir

To target a specific folder directory elsewhere on your computer, pass the pathway as an argument:

pardon_sir /path/to/your/yaml/files

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

pardon_sir-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

pardon_sir-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pardon_sir-1.0.0.tar.gz.

File metadata

  • Download URL: pardon_sir-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pardon_sir-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2a5d20955a7c55b655342cd3385460bc70533e971a49f7257a041af53678051e
MD5 ee035abde81df798d45f003590fbf331
BLAKE2b-256 d3e5cda6577ab8d74d47ec441b95e52e52faa83aa62884737b2083209005939d

See more details on using hashes here.

File details

Details for the file pardon_sir-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pardon_sir-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pardon_sir-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa376a6362132742cebfdb284d1b5059149b4abbeff1b4b55c44a4be19e629c9
MD5 c26570c76dd7c47d6e6a16851573f528
BLAKE2b-256 c2119199edb04aa28fb2ce623831dd55d7050a9ed7d9b6db70778fff7b24b9a6

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