updates
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,79 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: iniconfig
|
||||
Version: 2.3.0
|
||||
Summary: brain-dead simple config-ini parsing
|
||||
Author-email: Ronny Pfannschmidt <opensource@ronnypfannschmidt.de>, Holger Krekel <holger.krekel@gmail.com>
|
||||
License-Expression: MIT
|
||||
Project-URL: Homepage, https://github.com/pytest-dev/iniconfig
|
||||
Classifier: Development Status :: 4 - Beta
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Operating System :: MacOS :: MacOS X
|
||||
Classifier: Operating System :: Microsoft :: Windows
|
||||
Classifier: Operating System :: POSIX
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Programming Language :: Python :: 3.14
|
||||
Classifier: Topic :: Software Development :: Libraries
|
||||
Classifier: Topic :: Utilities
|
||||
Requires-Python: >=3.10
|
||||
Description-Content-Type: text/x-rst
|
||||
License-File: LICENSE
|
||||
Dynamic: license-file
|
||||
|
||||
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
|
||||
@@ -0,0 +1,15 @@
|
||||
iniconfig-2.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
iniconfig-2.3.0.dist-info/METADATA,sha256=QNdz-E5OES9JW79PG-nL0tRWwK6271MR910b8yLyFls,2526
|
||||
iniconfig-2.3.0.dist-info/RECORD,,
|
||||
iniconfig-2.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
||||
iniconfig-2.3.0.dist-info/licenses/LICENSE,sha256=NAn6kfes5VeJRjJnZlbjImT-XvdYFTVyXcmiN3RVG9Q,1098
|
||||
iniconfig-2.3.0.dist-info/top_level.txt,sha256=7KfM0fugdlToj9UW7enKXk2HYALQD8qHiyKtjhSzgN8,10
|
||||
iniconfig/__init__.py,sha256=XL5eqUYj4mskAOorZ5jfRAinJvJzTI-fJxpP4xfXtaw,7497
|
||||
iniconfig/__pycache__/__init__.cpython-312.pyc,,
|
||||
iniconfig/__pycache__/_parse.cpython-312.pyc,,
|
||||
iniconfig/__pycache__/_version.cpython-312.pyc,,
|
||||
iniconfig/__pycache__/exceptions.cpython-312.pyc,,
|
||||
iniconfig/_parse.py,sha256=5ncBl7MAQiaPNnpRrs9FR4t6G6DkgOUs458OY_1CR28,5223
|
||||
iniconfig/_version.py,sha256=KNFYe-Vtdt7Z-oHyl8jmDAQ9qXoCNMAEXigj6BR1QUI,704
|
||||
iniconfig/exceptions.py,sha256=mipQ_aMxD9CvSvFWN1oTXY4QuRnKAMZ1f3sCdmjDTU0,399
|
||||
iniconfig/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
@@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: setuptools (80.9.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2010 - 2023 Holger Krekel and others
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1 @@
|
||||
iniconfig
|
||||
Reference in New Issue
Block a user