configparser
Updated configparser from stdlib for earlier Pythons.
What it is and what it does
ConfigParser is a backport of Python's standard library ConfigParser module, synchronized periodically with upstream CPython to bring newer features and fixes to Python 3.9+. It reads and writes INI-style configuration files with support for sections, options, and interpolation. The package is maintained by the same developer who maintains the vanilla ConfigParser in CPython, ensuring compatibility and feature parity.
It has no external runtime dependencies and installs with low friction. The project uses semantic versioning and tracks which upstream CPython functionality each release incorporates, making it straightforward to understand what you're getting. The repository is active with recent commits as of 2026-04-13.
Use it for:
- Reading INI configuration files in applications that need features from newer Python versions while supporting Python 3.9.
- Standardizing configuration parsing across codebases that must maintain compatibility with Python 3.9.
- Accessing ConfigParser enhancements before upgrading the minimum Python version requirement.
- Testing code that relies on newer ConfigParser behavior without upgrading your entire Python environment.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides an updated ConfigParser implementation for Python 3.9+ that backports enhancements from later Python standard library versions.
Yes, if you need ConfigParser features from newer Python versions but are constrained to Python 3.9+. The package is actively maintained, has no dependencies, and carries permissive licensing. However, if your project already supports a recent Python version, the built-in stdlib ConfigParser may be sufficient—verify whether the backported enhancements matter for your use case.
Install
configparser on PyPI
pip
pip install configparseruv
uv add configparserpoetry
poetry add configparserInstalling configparser
Before you install
Low friction installation with no runtime dependencies. Actively maintained with recent commits; last release was 524 days ago.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package with minimal legal constraints in most contexts.
Quickstart
pip install configparser
import configparser
config = configparser.ConfigParser()
config.read('settings.ini')
value = config.get('section', 'key')
Requires Python 3.9 or later.
Verify before relying
- Which specific enhancements from later Python versions are included in version 7.2.0 compared to Python 3.9's stdlib ConfigParser.
- Whether this backport is necessary for current Python versions or primarily useful for projects constrained to Python 3.9.
- How to import and use the backport—whether it replaces the stdlib module or requires explicit backports namespace import.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 524 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,842,775/month — #1,359 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: configparser-7.2.0-py3-none-any.whl
Keywords: configparser, ini, parsing, conf, cfg, configuration, file
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
configparser2Backport of Python 3's configparser module to…
permissive · top 15,000 on PyPI
logutilsProvides additional logging handlers for…
permissive · top 15,000 on PyPI
iniparseiniparse is an INI file parser that preserves…
permissive · top 15,000 on PyPI
pickle5Backports the pickle 5 protocol (PEP 574) and…
permissive · top 15,000 on PyPI
importlib-resourcesProvides a backport of Python's standard…
permissive · top 1,000 on PyPI
contextlib2contextlib2 backports the Python standard…
permissive · top 5,000 on PyPI
stdlib-listProvides lists of Python standard library…
permissive · top 5,000 on PyPI
importlib-metadataProvides third-party access to Python package…
permissive · top 100 on PyPI
commented-configparserExtends Python's standard ConfigParser to…
permissive · top 15,000 on PyPI
config-formatterAutomatically formats .ini and .cfg…
permissive · top 15,000 on PyPI