crudini
A utility for manipulating ini files
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 crudiniuv
uv add crudinipoetry
poetry add crudiniInstalling 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
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
iniparseiniparse is an INI file parser that preserves…
permissive · top 15,000 on PyPI
j2clij2cli is a command-line tool that renders…
permissive · top 5,000 on PyPI
imperfectParses and edits configparser-compatible INI…
permissive · top 15,000 on PyPI
click-configfileExtends click with configuration file support,…
permissive · top 15,000 on PyPI
config-formatterAutomatically formats .ini and .cfg…
permissive · top 15,000 on PyPI
jinjanatorA command-line tool that renders Jinja2…
permissive · top 5,000 on PyPI
INIToolsINITools parses and manipulates INI-style…
permissive · top 15,000 on PyPI
ConfigUpdaterConfigUpdater reads and modifies INI…
permissive · top 5,000 on PyPI
perkyPerky parses a minimal, human-friendly text…
permissive · top 15,000 on PyPI
configobjConfigObj reads, writes, and validates…
permissive · top 5,000 on PyPI