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.13.tar.gz
(3.2 kB
view hashes)
Built Distributions
Close
Hashes for simpleiniparser-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f3cbc95b2e37123946cd2a959b9ea51ecdeab64c80e0900923e5b3a9aac1f4c |
|
MD5 | 003cade52d7c1d3ac129434cca1f0d69 |
|
BLAKE2b-256 | 69b543c897eb702eaa25307d16f44696e560daba8a56962a9b337145987dc9d2 |
Close
Hashes for simpleiniparser-0.0.13-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbe98c62ea2f807c0914ba04156aa9cc998719384c6ea06950fe3f4bb8b695e6 |
|
MD5 | 8a3fd2855fd8106d575d58daf98e9f9a |
|
BLAKE2b-256 | 21cc58fb099ba080ab3554ae95ac7c441f7c3d905a88d8db0f5d3b51c2e35ff0 |