Explain INI code

Paste an .ini file and Vibe explains what each section and setting is for, which defaults every section shares and how a value like %(log_dir)s gets filled in.

settings.ini

Up to 1,500 characters (about 60 lines). Your code is sent to Unvibe and Anthropic to write the explanation. Don't paste keys or passwords. Common key formats are refused.

Vibe19 lines selected

Press Explain it for the sample, or paste your own code first.

What this INI sample shows

sections and keys
[server] starts a section, and each name = value line below it belongs to that section until the next one. A line starting with ; is a comment. Python's configparser listed the sections as ['server', 'database', 'email']: [DEFAULT] isn't listed, because it's special.
[DEFAULT]
Every section can see the keys in [DEFAULT], unless it sets its own. [email] has no debug line, so it got the default no, read as False; [server] sets debug = yes and read as True. [email] also had log_dir without ever naming it.
%(name)s values
%(log_dir)s is filled in from another key, here the one in [DEFAULT]. backup_file came out as /var/log/invoicer/backup.log.
everything is text
Every value is read as text: port came back as the string '8080'. getint, getfloat and getboolean convert it, and getboolean took yes and no. Key names don't care about case, so PORT found port, but section names do: there was no SERVER section.

Good to know

  • Read with configparser in Python 3.14. Other programs that read .ini files may follow different rules, so check the docs of the one reading yours.
  • A % in a value has to be written %%. With password = 50%off, reading it raised InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%off'. ConfigParser(interpolation=None) read it as 50%off.
  • A missing file isn't an error: read("nope.ini") returned [] and there were no sections. Check what read returns.
  • The same key twice in one section stopped the read with DuplicateOptionError.

Watch out: A comment at the end of a line becomes part of the value. port = 8080 ; dev only read as '8080 ; dev only', and getint failed with ValueError: invalid literal for int() with base 10: '8080 ; dev only'. Put comments on their own line, or pass inline_comment_prefixes=(";",), which read it as '8080'.

Explain INI code beside your editor

Unvibe is a free app for Mac and Windows. In the app there is no pasting: select code in any app and press Control+U (Ctrl+Alt+U on Windows).

Install on Mac

curl -fsSL https://unvibe.site/install.sh | bash

Paste into Terminal. Unvibe isn't notarized by Apple yet, so this is the smooth path.

Opening the .dmg the first time
  1. Open the .dmg and drag Unvibe to Applications.
  2. Open it once; macOS says it can't verify it. Click Done.
    macOS dialog: Unvibe Not Opened, with Done and Move to Trash
    Real screen, macOS 15
  3. System Settings › Privacy & Security › Open Anyway. Confirm, then enter your Mac password. The button shows for about an hour after you try to open Unvibe.
    macOS Privacy & Security, Security section: Unvibe was blocked to protect your Mac, with the Open Anyway button
    Real screen, macOS 15

The Terminal line checks the download against the published SHA-256 and Unvibe's self-signed signature before it installs anything. More help with the first open