forked from bton/matekasse
tests versuch 2
This commit is contained in:
parent
fdf385fe06
commit
c88f7df83a
2363 changed files with 408191 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
pip
|
|
@ -0,0 +1,80 @@
|
|||
Metadata-Version: 2.1
|
||||
Name: iniconfig
|
||||
Version: 2.0.0
|
||||
Summary: brain-dead simple config-ini parsing
|
||||
Project-URL: Homepage, https://github.com/pytest-dev/iniconfig
|
||||
Author-email: Ronny Pfannschmidt <opensource@ronnypfannschmidt.de>, Holger Krekel <holger.krekel@gmail.com>
|
||||
License-Expression: MIT
|
||||
License-File: LICENSE
|
||||
Classifier: Development Status :: 4 - Beta
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Operating System :: MacOS :: MacOS X
|
||||
Classifier: Operating System :: Microsoft :: Windows
|
||||
Classifier: Operating System :: POSIX
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Topic :: Software Development :: Libraries
|
||||
Classifier: Topic :: Utilities
|
||||
Requires-Python: >=3.7
|
||||
Description-Content-Type: text/x-rst
|
||||
|
||||
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,14 @@
|
|||
iniconfig-2.0.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
iniconfig-2.0.0.dist-info/METADATA,sha256=2KcBd5DEFiZclO-ruP_qzN71qcTL0hNsCw5MCDIPN6I,2599
|
||||
iniconfig-2.0.0.dist-info/RECORD,,
|
||||
iniconfig-2.0.0.dist-info/WHEEL,sha256=hKi7AIIx6qfnsRbr087vpeJnrVUuDokDHZacPPMW7-Y,87
|
||||
iniconfig-2.0.0.dist-info/licenses/LICENSE,sha256=KvaAw570k_uCgwNW0dPfGstaBgM8ui3sehniHKp3qGY,1061
|
||||
iniconfig/__init__.py,sha256=ALJSNenAgTD7RNj820NggEQuyaZp2QseTCThGJPavk0,5473
|
||||
iniconfig/__pycache__/__init__.cpython-311.pyc,,
|
||||
iniconfig/__pycache__/_parse.cpython-311.pyc,,
|
||||
iniconfig/__pycache__/_version.cpython-311.pyc,,
|
||||
iniconfig/__pycache__/exceptions.cpython-311.pyc,,
|
||||
iniconfig/_parse.py,sha256=OWGLbmE8GjxcoMWTvnGbck1RoNsTm5bt5ficIRZqWJ8,2436
|
||||
iniconfig/_version.py,sha256=WM8rOXoL5t25aMQJp4qbU2XP09nrDtmDnrAGhHSk0Wk,160
|
||||
iniconfig/exceptions.py,sha256=3V2JS5rndwiYUh84PNYS_1zd8H8IB-Rar81ARAA7E9s,501
|
||||
iniconfig/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@ -0,0 +1,4 @@
|
|||
Wheel-Version: 1.0
|
||||
Generator: hatchling 1.12.2
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
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.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue