a lightweight ini parser
Project description
a lightweight ini parser
how to install
pip install ini.py
converts an ini file to a python dictionary
example ini file
; main section
[section]
key = value
key2 = "value2"
key3 = 'value3'
reading it using ini.py
import ini
text = open('config.ini', 'r').read()
config = ini.parse(text)
section = config['section']
print(section['key'], section['key2'], section['key3'])
output
value value2 value3
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ini.py-0.0.2.tar.gz
(1.8 kB
view hashes)
Built Distribution
ini.py-0.0.2-py3-none-any.whl
(2.6 kB
view hashes)