INI2YAML(1)

πŸ“¦
version 3.0.1.3 Β· 4 versions
, in arch rolling, ubuntu resolute, ubuntu stonking

πŸ’– 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 .conf extension)
    • a directory containing INI files
  • -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 -p is 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