ConfigUpdater
Parser like ConfigParser but for updating configuration files
Decision gist · record as of 2026-08-14
Yes. ConfigUpdater fills a genuine gap: it's the right tool when you need to update INI files programmatically without destroying their structure or comments. Low install friction, permissive license, active maintenance, no known vulnerabilities, and a focused scope make it a safe, reliable choice for config file automation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with a single lightweight runtime dependency (importlib-metadata).
- Actively maintained with recent commits; last release was 991 days ago but repository remains active.
License · maintenance · safety
MIT (permissive) — MIT license (permissive): you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2023-11-27 (991 days) · last repo commit 2026-08-10 · 75 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,127,072 downloads/mo, #1,967 on PyPI
Alternatives
Verify before relying
pip install configupdater
from configupdater import ConfigUpdater
updater = ConfigUpdater()
updater.read("setup.cfg")
updater["metadata"]["author"].value = "New Author"
updater.update_file()- Whether the package handles edge cases like malformed INI files or unusual whitespace patterns gracefully.
- Performance characteristics when working with very large configuration files.
What it is and what it does
ConfigUpdater is a specialized INI file editor that complements Python's built-in ConfigParser. While ConfigParser is designed for reading config files and writing new ones from scratch, ConfigUpdater solves the narrower but important problem of surgically updating existing INI files—changing only the values you specify while leaving everything else untouched. It preserves comments, the order of sections and keys, and the original letter casing, making it safe for workflows where config files are version-controlled or hand-edited.
You read a file with `read()` or `read_string()`, then access sections and keys using dictionary-like syntax to modify values, add new options with positioning control, insert comments, or remove entries. The package validates the result against ConfigParser before writing, ensuring the modified file remains valid INI. It deliberately omits features like value interpolation, default section propagation, and type conversion—keeping the scope focused on non-destructive updates.
Use it for
- Update version numbers or metadata in setup.cfg or pyproject.toml without reformatting the entire file.
- Add configuration options to an existing INI file while preserving hand-written comments and section order.
- Programmatically modify deployment or application config files in CI/CD pipelines without losing formatting.
- Rename configuration keys or sections while keeping the file structure and comments intact.
- Insert new sections with comments at specific positions in a config file for documentation or feature flags.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
ConfigUpdater fills a genuine gap: it's the right tool when you need to update INI files programmatically without destroying their structure or comments. Low install friction, permissive license, active maintenance, no known vulnerabilities, and a focused scope make it a safe, reliable choice for config file automation.
Install
configupdater on PyPI
Before you install
Low friction: pure Python wheel with a single lightweight runtime dependency (importlib-metadata). Actively maintained with recent commits; last release was 991 days ago but repository remains active.
License in practice
MIT license (permissive): you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install configupdater
from configupdater import ConfigUpdater
updater = ConfigUpdater()
updater.read("setup.cfg")
updater["metadata"]["author"].value = "New Author"
updater.update_file()
Verify before relying
- Whether the package handles edge cases like malformed INI files or unusual whitespace patterns gracefully.
- Performance characteristics when working with very large configuration files.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageimportlib-metadata |
| Maintenance | Actively maintained 991 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,127,072 / month, #1,967 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Libraries :: Python Modules |
Evidence: ConfigUpdater-3.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ini config file editor”
- ConfigUpdaterConfigUpdater reads and modifies INI configuration files while…
- crudinicrudini is a command-line utility for reading, writing, and modifying…
- commented-configparserExtends Python's standard ConfigParser to preserve comments and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also commented-configparser · config-formatter · iniparse · imperfect · configobj · iniconfig · configparser2 · click-configfile · condor-git-config · configparser