INI2YAML(1)
π INI2YAML β the ini2yaml manual page π
okay bestie, welcome to ini2yaml(1), a User Command that does exactly one thing and does it flawlessly: it takes your dusty little INI config files and glow-ups them into YAML. no cap. πΈ
β¨ NAME β¨
ini2yaml β convert INI configuration files to YAML format π¦
β¨ SYNOPSIS β¨
ini2yaml [-h] -f SOURCE [-nAPP_NAME] [-vVERSION] [-pPATH]
like. that's the whole vibe. four little flags and she's done. π
β¨ DESCRIPTION β¨
so here's the tea β: this program converts INI configuration files (the ones with extensions .ini, .cf, or .conf) into YAML format. she can process either a single file or all valid files in a directory. output gets saved in the directory you specify, all formatted YAML-style. it's giving β¨glow upβ¨. periodt.
β¨ OPTIONS β¨
-h,--helpβ show the help message and dip. that's it, that's the whole job. π-f SOURCE,--file SOURCEβ specify the input source. required, bestie, she will not run without it. and it can be either of these two things:- a single INI file (
.ini,.cf, or.confextension) - a directory containing INI files
- a single INI file (
-n APP_NAME,--name APP_NAMEβ specify the application name for the YAML metadata. default:'app'π-v VERSION,--version VERSIONβ specify the configuration version. default:'1.0.0'β-p PATH,--path PATHβ specify the output directory. default:${HOME}/yamlπ
π PROCESSING DETAILS π
the way she actually does the thing, step by step π§:
- converts each INI section to a YAML object
- preserves option values while stripping surrounding quotes
- adds metadata fields:
_default: original value from INI_type: always's'(string type)
- output filename:
<APP_NAME>.yaml
π¦ ENVIRONMENT π¦
HOMEβ determines the default output directory when-pis not specified
πΈ EXAMPLES πΈ
convert single file with defaults:
ini2yaml -f /etc/dput.cf
convert directory with custom parameters:
ini2yaml -f ~/configs/ -n myapp -v 2.1.0 -p /tmp/output
process system configurations:
ini2yaml -f /etc/sysconfig/ -n system_cfg
π SEE ALSO π
configparser(3python)PyYAML(3python)
π NOTES π
read these fr fr, they matter:
- nested INI sections are not supported
- all values are treated as strings
- existing YAML files will be overwritten π (back up first, bestie, i'm begging)
π AUTHOR π
written for the UKUI project. iconic behavior honestly π«Ά
and that's the whole page!! version v1.0, dated 2025-07-24. slay, go convert something, mwah π β¨π
π¦ where this page comes from
- arch rolling: libkysdk-base 3.0.1.1-1 Β· Apache-2.0 AND LGPL-3.0-or-later AND MIT
- ubuntu resolute: libkysdk-base 3.0.1.2-0ubuntu1 Β· LGPL-3.0-or-later
- ubuntu stonking: libkysdk-base 3.0.1.3-1build1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms