configparser2
This library brings the updated configparser from Python 3.5 to Python 2.6-3.5.
What it is and what it does
configparser2 is a backport of Python 3's configparser module designed to run on Python 2.6 through 3.5. It provides a unified INI-file parsing interface across multiple Python versions, with a different import name to avoid conflicts with the built-in configparser in Python 3. The package includes modern features like mapping protocol access (dict-like bracket notation), customizable interpolation syntax (BasicInterpolation and ExtendedInterpolation), fallback values in getters, and the ability to read configuration from strings or dictionaries.
The package has no runtime dependencies. It is intended for projects that need to support both Python 2 and early Python 3 versions simultaneously. However, it has been abandoned since 2015 and targets Python versions that are themselves no longer supported; modern Python includes configparser in the standard library, making this package obsolete for new projects.
Use it for:
- Parsing INI configuration files in legacy Python 2.6–3.5 codebases that need a modern configparser interface.
- Migrating a Python 2 project to Python 3 while maintaining backward compatibility during a transition period.
- Reading configuration from strings or dictionaries in projects constrained to older Python versions.
- Using advanced interpolation syntax (ExtendedInterpolation) in Python 2 code that would otherwise require custom parsing.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Backport of Python 3's configparser module to Python 2.6–3.5, allowing unified INI-file parsing across versions without naming conflicts with the built-in standard library.
No. This package is abandoned (no releases since 2015) and targets Python versions that are themselves out of support. Modern Python includes configparser in the standard library. Install only if you are maintaining legacy code on Python 2.6–3.5 and cannot upgrade; for any new project, use the built-in configparser instead.
Install
configparser2 on PyPI
pip
pip install configparser2uv
uv add configparser2poetry
poetry add configparser2Installing configparser2
Before you install
High install friction: package has been abandoned since 2015 and targets Python versions (2.6–3.5) that are themselves long out of support. No runtime dependencies, but the lack of maintenance and obsolete target versions make this a legacy-only choice.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution, making licensing a non-issue for adoption.
Quickstart
pip install configparser2
import configparser2
parser = configparser2.ConfigParser()
parser.read_string('[section]\nkey = value')
print(parser['section']['key'])
Python 2.6–3.5 only; the package is not maintained and will not work on modern Python versions (3.6+). Modern Python includes configparser in the standard library.
Verify before relying
- Whether configparser2 actually works on Python 3.2–3.5 in practice, given the 2015 abandonment date and lack of CI/testing signals.
- Whether the backport includes all fixes and features from Python 3.5's configparser or only a subset.
- Compatibility with PyPy beyond the mention of a fix in the changelog.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 4,112 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 87,452/month — #13,797 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: configparser2-4.0.0.tar.gz
Keywords: configparser, configparser2, ini, parsing, conf, cfg, configuration, file
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
configparserProvides an updated ConfigParser implementation…
permissive · top 5,000 on PyPI
HTMLParserProvides HTMLParser from Python 2.7 as a…
permissive · top 15,000 on PyPI
unittest2Backports unittest features from Python 2.7 and…
permissive · top 5,000 on PyPI
fhconfparserReads configuration files in INI, TOML, or JSON…
permissive · top 15,000 on PyPI
textwrap3Backports Python 3.6's textwrap module to…
permissive · top 5,000 on PyPI
traceback2Provides a backport of Python's traceback…
permissive · top 5,000 on PyPI
configobjConfigObj reads, writes, and validates…
permissive · top 5,000 on PyPI
pathlib2Backport of Python's standard pathlib module…
permissive · top 5,000 on PyPI
backports.csvProvides Python 3's csv module API for Python…
unclear · top 15,000 on PyPI
eightEight provides a compatibility layer that lets…
permissive · top 15,000 on PyPI