Convert custom £ YAML comments into standard # comments
Project description
pardon_sir
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a5d20955a7c55b655342cd3385460bc70533e971a49f7257a041af53678051e
|
|
| MD5 |
ee035abde81df798d45f003590fbf331
|
|
| BLAKE2b-256 |
d3e5cda6577ab8d74d47ec441b95e52e52faa83aa62884737b2083209005939d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa376a6362132742cebfdb284d1b5059149b4abbeff1b4b55c44a4be19e629c9
|
|
| MD5 |
c26570c76dd7c47d6e6a16851573f528
|
|
| BLAKE2b-256 |
c2119199edb04aa28fb2ce623831dd55d7050a9ed7d9b6db70778fff7b24b9a6
|