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.14.tar.gz
(3.2 kB
view hashes)
Built Distributions
Close
Hashes for simpleiniparser-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23939afac4e408a883b1b7d44974818aa1b9f80f82f0766684a2175e3cd3752d |
|
MD5 | 734db1f0ce70f94d0c9f68af2af80745 |
|
BLAKE2b-256 | fd07372bc408b78384df301fd4dfbd00844a7eb5be08ab4e91ead39b42ab2bd0 |
Close
Hashes for simpleiniparser-0.0.14-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 231cb03bec48f3e8291852e7c99131f5a80e586335001d23063c57752315aa6d |
|
MD5 | b0c46d516cee2f3a4e6aeb629c953455 |
|
BLAKE2b-256 | 211ae2906652b4d61a2567e8dc5aa5acd64d84ddfc08688b3046a15b0d54e377 |