An INI parser or config parser
Project description
iniparser2
iniparser2 is An INI parser or a Config parser.
this package is the improved version of iniparser with more features.
Quick Start
Installation
to install the package see the following step below
pip install iniparser2
|| python -m pip install iniparser2
from source: python setup.py install
Examples
test.ini
:
name = Mike Hawk
test.py
:
from iniparser2 import INI
x = INI('test.ini')
data = x.read()
print(data)
Output:
{'name': 'Mike Hawk'}
using with
keyword
test.ini
:
name = Mike Hawk
test.py
:
from iniparser2 import INI
with INI('test.ini') as i:
print(i.read())
Output:
{'name': 'Mike Hawk'}
parse without file
import iniparser2
x = """
name = Mike Hawk
"""
x = iniparser2.parse(x)
print(x)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iniparser2-1.8.4.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for iniparser2-1.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122cd2f5461cc77f812e0ecca83e3489c6215e98dd3581c494a9762e6a2e6c18 |
|
MD5 | 5e04823eb010749bdf61e0586c32301e |
|
BLAKE2b-256 | dabf42be3c7f61a9b4907e8d5d9d1867d68dc5241e9770e6acdc2f83ec7f5259 |