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.11.tar.gz
(3.2 kB
view hashes)
Built Distributions
Close
Hashes for simpleiniparser-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c36691f4517d658d70e8875a5d034c12ee9fc5f1a1f978d4345dd181cbb5d72 |
|
MD5 | 18548fbe6e0e61d376357a20b4670016 |
|
BLAKE2b-256 | d427ef613f7397473ea30b15079201c7cda58ff2624ae7178c0d017cf4802e9d |
Close
Hashes for simpleiniparser-0.0.11-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55cd3bb0c2ee7757d62310e5f71a376845beaae9cb009396e686066683ad1728 |
|
MD5 | 0b81b828f34923e1209c502cb987c12c |
|
BLAKE2b-256 | 4b5d880ecc06dc356adb35dfc542e951bea9b16af16b05f1df355c779d8db8da |