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.0.tar.gz
(3.4 kB
view hashes)
Built Distributions
Close
Hashes for simpleiniparser-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d8573c2bc38ba45bec1159dd6a7f0731dda73740393c2eaa1ae64fe42c7db8 |
|
MD5 | ae49600dd17eabfd74c1f9a7c2b84d78 |
|
BLAKE2b-256 | e6ef2e0db44cb616d7156ce5e99fb5a6e44529ac166a93c08b60e9da7428fd1b |
Close
Hashes for simpleiniparser-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ef4d79aeba90cbc1d1ea820277ef10e283ca8a6150b84a8970d4420485eaa6e |
|
MD5 | 774551e0e1c0062a18fc4dbcc904fce2 |
|
BLAKE2b-256 | 0dc126af42fb4413cfae13326f1bebc8b015e0a51fb57290f84a1e3bec35da6f |