python-iniconfig
Port variant v13
Summary Brain-dead simple config-ini parsing (3.13)
Package version 2.3.0
Homepage https://github.com/pytest-dev/iniconfig
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 24 JUL 2026, 16:11:02 UTC
Port created 24 JUL 2026, 16:11:02 UTC
Subpackage Descriptions
single iniconfig: brain-dead simple parsing of ini files ======================================================= iniconfig is a small and simple INI-file parser module having a unique set of features: * maintains order of sections and entries * supports multi-line values with or without line-continuations * supports "#" comments everywhere * raises errors with proper line-numbers * no bells and whistles like automatic substitutions * iniconfig raises an Error if two sections have the same name. If you encounter issues or have feature wishes please report them to: https://github.com/RonnyPfannschmidt/iniconfig/issues Basic Example =================================== If you have an ini file like this: .. code-block:: ini # content of example.ini [section1] # comment name1=value1 # comment name1b=value1,value2 # comment [section2] name2= line1 line2 then you can do: .. code-block:: pycon >>> import iniconfig >>> ini = iniconfig.IniConfig("example.ini") >>> ini['section1']['name1'] # raises KeyError if not exists 'value1' >>> ini.get('section1', 'name1b', [], lambda x: x.split(",")) ['value1', 'value2'] >>> ini.get('section1', 'notexist', [], lambda x: x.split(",")) [] >>> [x.name for x in list(ini)] ['section1', 'section2'] >>> list(list(ini)[0].items()) [('name1', 'value1'), ('name1b', 'value1,value2')] >>> 'section1' in ini True >>> 'inexistendsection' in ini False
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Download groups
main mirror://PYPIWHL/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8
Distribution File Information
f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12 7484 python-src/iniconfig-2.3.0-py3-none-any.whl
Ports that require python-iniconfig:v13
python-pytest:v13 Pytest: simple powerful testing with Python (3.13)