Simple tooling to seamlessly parse ini file
Project description
It may feel boring to rewrite a parser fore every project you start.
Filling your ini file with pythonic values will make you save time.
Does the boring stuff for you as long as you behave like a conscenting adult.
>>> config = """
... [SECTION]
... intvalue=2
... floatvalue=7.8
... stringvalue=some_value
... cr_list = item1
... item2
... boolean=False
... comma_list_s='abc','def'
... comma_list_i=1,2,3
... comma_list_f=1.0,2.5,3
... """
...
>>> from simpleiniparser.simple_iniconfig_parser import from_string
>>> config = from_string(config)
>>> config['SECTION']['floatvalue']
7.8
>>> config['SECTION']['cr_list']
['item1', 'item2']
"""
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
simpleiniparser-0.0.15.tar.gz
(3.2 kB
view hashes)
Built Distributions
Close
Hashes for simpleiniparser-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9a15764501125e5d8e6af9c3a9321934e23a82913875ee84fdf8166dcdde692 |
|
MD5 | ee3bf1d86c5bca9e9cc2c20a6442bfee |
|
BLAKE2b-256 | be677eab104f7bfcb411c1402623df5a198a9d16fe483b4bc44d88f4b3f9a085 |
Close
Hashes for simpleiniparser-0.0.15-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a56788bafca02f270361e79b5f07caa7c5dc077a8d8e594bce6a53d1831fdd3 |
|
MD5 | 06733ad36f245b64defad774893a6134 |
|
BLAKE2b-256 | d135ef9fde2affc168d7254b3209090b48ee2776632f52c78a9c606960106787 |