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.2.1.tar.gz
(3.2 kB
view hashes)
Built Distributions
Close
Hashes for simpleiniparser-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf4d8c493feeb4634647c7148c80c01da5536c3acf1fe172dce67994c80f263 |
|
MD5 | f3b49cfa1515ea9bf2e2a7d5b8828b3f |
|
BLAKE2b-256 | afb86546cee052a2cc8c15bc89f7b71e824a62665bc091e43a64dca87d910aae |
Close
Hashes for simpleiniparser-0.2.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51badb986233df05d5a4898f7a3f14c24eb730254be01813f79460f565407a03 |
|
MD5 | 46badcda11bd94153956a0d7e404d73d |
|
BLAKE2b-256 | 29b794f6511f48deb2d1ceaf11c35b6253cbe80a914cf98e10664b5e04062c25 |