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.1.0.tar.gz
(3.4 kB
view hashes)
Built Distributions
Close
Hashes for simpleiniparser-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec592d714fc322253b10c11b4142e388cd37f9edbec5fa064044c52d46fab410 |
|
MD5 | b22006694f1eaf9afda9eef2e745ed31 |
|
BLAKE2b-256 | f093f24c6b7568e8640eadf0d73a78e8b4f137bc23c39d4219a81ed14f9d14b2 |
Close
Hashes for simpleiniparser-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24f5bc17ecdea4adf52db7ec809c89a61f36d4d957a49e5adc741c80c82f391b |
|
MD5 | 3ea32a308c8bbb56b25b9ba174137189 |
|
BLAKE2b-256 | a37d56c785e5fd91bf8adf0522b3201396f1a3c1eef8de2db45a4a4a32e8c6d6 |