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.10.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for simpleiniparser-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449d23d35244f3db089950c10552cc2abd43ef1bcedad9111217cd5a600b1645 |
|
MD5 | 7bef05464be066c8826d00892a9dcc13 |
|
BLAKE2b-256 | aeb5f5564fffe10515f7dcc170fb18e02e814d014edfa889657bd6f202ec499f |