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.1.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file iniparser2-1.8.1.tar.gz
.
File metadata
- Download URL: iniparser2-1.8.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19844a579f588435386b0e738696e70bbf647dc199694fce331acc0cbcee9fe4 |
|
MD5 | 8c62958c7826260ef2f74661c300d09e |
|
BLAKE2b-256 | ccf5509c16702925adae7f060eb1a2ee1a7f5a90125263527e8b2f6da37b9edb |
File details
Details for the file iniparser2-1.8.1-py3-none-any.whl
.
File metadata
- Download URL: iniparser2-1.8.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a221d676b2fb50ca2ffd02c48fe7ebe6f6e6ced2ef30d6ceaa3847991fc3015 |
|
MD5 | 0bfbf11ffe4138474ea4c93f60d35414 |
|
BLAKE2b-256 | fc762e52ffd2858bd2617d2da305d21c9cf2c6b4beefa28a061d0978ea83ebdd |