iniparse
Accessing and Modifying INI files
Decision gist · record as of 2026-08-14
Yes, if you need to read and write INI files while preserving formatting and comments. iniparse is stable, permissively licensed, has no known vulnerabilities, and installs easily. It is a solid choice for config file handling in projects where structure preservation matters. However, if you only need basic INI parsing without formatting concerns, Python's built-in configparser may suffice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single runtime dependency (six).
- Maintained as active, though the latest release was in 2020 and the repository has minimal activity (18 stars).
- Suitable for stable, long-term use in projects that do not require frequent updates.
License · maintenance · safety
MIT (permissive) — Licensed under MIT, a permissive open-source license. You may use, modify, and distribute iniparse freely in commercial and private projects with minimal restrictions.
last release 2020-01-29 (2389 days) · last repo commit 2026-07-09 · 18 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 403,554 downloads/mo, #6,916 on PyPI
Alternatives
Verify before relying
pip install iniparse
from iniparse import INIConfig
cfg = INIConfig(open('config.ini'))
print(cfg.section.option) # dotted notation access- Whether iniparse works reliably with modern Python versions beyond 3.4, given classifiers only list up to 3.4
- Performance characteristics when handling large INI files or frequent read/write cycles
- Compatibility with edge cases in INI syntax (e.g., duplicate keys, special characters in values)
What it is and what it does
iniparse is a Python INI file parser designed to read and write configuration files while preserving their original structure—comments, blank lines, indentation, and section order remain intact when the file is modified. This is especially valuable for config files that are edited both by users and by programs, where reformatting would be disorienting. The package provides backward-compatible implementations of ConfigParser, RawConfigParser, and SafeConfigParser from the Python standard library, so it can be used as a drop-in replacement. It also offers more convenient access patterns: configuration values can be read using dotted notation (e.g., `cfg.user.name`) or standard dictionary syntax (e.g., `cfg['user']['name']`).
The package depends only on six for Python 2/3 compatibility and installs with low friction. It has been stable since its 2007 release and is classified as Production/Stable. The repository is actively maintained but receives infrequent updates, reflecting its mature and settled state.
Use it for
- Preserve user-edited INI files when a program needs to update configuration values programmatically
- Build configuration management tools where maintaining file formatting and comments is important for user experience
- Replace the standard ConfigParser in legacy Python projects that need structure preservation
- Create image gallery or similar applications where the order of entries in a config file carries semantic meaning
- Read and modify application settings files while keeping inline documentation and comments intact
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to read and write INI files while preserving formatting and comments.
iniparse is stable, permissively licensed, has no known vulnerabilities, and installs easily. It is a solid choice for config file handling in projects where structure preservation matters. However, if you only need basic INI parsing without formatting concerns, Python's built-in configparser may suffice.
Install
iniparse on PyPI
Before you install
Low install friction with a single runtime dependency (six). Maintained as active, though the latest release was in 2020 and the repository has minimal activity (18 stars). Suitable for stable, long-term use in projects that do not require frequent updates.
License in practice
Licensed under MIT, a permissive open-source license. You may use, modify, and distribute iniparse freely in commercial and private projects with minimal restrictions.
Quickstart
pip install iniparse
from iniparse import INIConfig
cfg = INIConfig(open('config.ini'))
print(cfg.section.option) # dotted notation access
Verify before relying
- Whether iniparse works reliably with modern Python versions beyond 3.4, given classifiers only list up to 3.4
- Performance characteristics when handling large INI files or frequent read/write cycles
- Compatibility with edge cases in INI syntax (e.g., duplicate keys, special characters in values)
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesix |
| Maintenance | Actively maintained 2,389 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 403,554 / month, #6,916 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 LicenseLicense :: OSI Approved :: Python Software Foundation LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Topic :: Software Development :: Libraries :: Python Modules |
Evidence: iniparse-0.5-py2-none-any.whl; iniparse-0.5-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 file structure preservation”
- iniparseiniparse is an INI file parser that preserves formatting (comments,…
- commented-configparserExtends Python's standard ConfigParser to preserve comments and…
- configobjConfigObj reads, writes, and validates INI-format configuration files…
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 · crudini · config-formatter · configobj · ConfigUpdater · imperfect · configparser · pyconfigurator · INITools · ConfigArgParse