skillfed

crudini

A utility for manipulating ini files

crudini v0.9.6 156.7K downloads/30d#10,776 on PyPI490
Copyleft license GPLv2 AGING released

What it is and what it does

crudini is a standalone command-line tool for manipulating INI configuration files without writing code. It wraps the iniparse library to provide get, set, delete, and merge operations on INI sections and parameters, with support for global parameters, list values, and multiple output formats (shell-parseable, ini, lines). It's typically used in shell scripts, deployment automation, and system administration tasks where configuration files need to be read or modified programmatically.

The tool handles edge cases like leading whitespace, section spacing, and list delimiters through command-line options. It can read from stdin, write to stdout or files, and perform multiple operations atomically. Because it's a single executable utility rather than a library, it's invoked as a subprocess from scripts or automation frameworks rather than imported into Python code.

Use it for:

  • Automate configuration file updates in deployment or provisioning scripts without manual editing.
  • Extract configuration values from INI files in shell scripts using shell-parseable output format.
  • Merge configuration changes from environment variables or other INI files into a config file.
  • Validate or reformat INI files to enforce consistent spacing and section layout.
  • Compare two INI files by extracting and sorting their parameters for diff-based analysis.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

crudini is a command-line utility for reading, writing, and modifying INI configuration files programmatically, supporting get, set, delete, and merge operations on sections and parameters.

Yes, if you need a lightweight, dependency-minimal command-line tool for INI file manipulation in scripts or automation. The low install friction, stable maturity, and no known vulnerabilities make it reliable for system administration tasks. The GPLv2 license is a consideration for proprietary use. Not necessary if you're writing Python code that can use iniparse directly.

Install

crudini on PyPI

pip

pip install crudini

uv

uv add crudini

poetry

poetry add crudini

Installing crudini

Before you install

Low friction: pure Python wheel with a single runtime dependency (iniparse). Maintenance is aging—last release was 485 days ago—but the repository remains active and the package is marked Production/Stable.

License in practice

GPLv2 copyleft license: any derivative work or modification must be distributed under the same license. Suitable for internal tools and open-source projects, but may restrict commercial or proprietary use.

Quickstart

pip install crudini

# Set a parameter in a config file
crudini --set config.ini section parameter value

# Get a parameter
crudini --get config.ini section parameter

Verify before relying

  • Whether the package works with modern Python versions beyond 2 and 3 (classifiers list both but requires_python is unspecified)

Package facts

License GPLv2 (copyleft)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — iniparse
Maintenance aging — 485 days since the last release
Last repo commit
First released
Downloads 156,730/month — #10,776 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: crudini-0.9.6-py2.py3-none-any.whl

Keywords: ini, config, edit

Development Status :: 5 - Production/StableLicense :: OSI Approved :: GNU General Public License v2 (GPLv2)Programming Language :: Python :: 2Programming Language :: Python :: 3Topic :: System :: Systems AdministrationTopic :: Utilities

Tags

ini file editor command lineconfig file manipulation toolini parser utilityedit configuration filesini file get set delete
cli-toolconfig-managementini-files

More Utilities packages