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 details)
Built Distributions
File details
Details for the file simpleiniparser-0.2.1.tar.gz
.
File metadata
- Download URL: simpleiniparser-0.2.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5cb8807a658193e22b040ffbd5333e8005a92ca5cfe7b77c69ec41a4dcce2b3 |
|
MD5 | 629a07faa8a437914268b7ee9891f745 |
|
BLAKE2b-256 | 19fbcb2b704f81e50213a2ca17121e15a54ab7d9940b4e178c817b41eb64d32d |
Provenance
File details
Details for the file simpleiniparser-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: simpleiniparser-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf4d8c493feeb4634647c7148c80c01da5536c3acf1fe172dce67994c80f263 |
|
MD5 | f3b49cfa1515ea9bf2e2a7d5b8828b3f |
|
BLAKE2b-256 | afb86546cee052a2cc8c15bc89f7b71e824a62665bc091e43a64dca87d910aae |
Provenance
File details
Details for the file simpleiniparser-0.2.1-py2-none-any.whl
.
File metadata
- Download URL: simpleiniparser-0.2.1-py2-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51badb986233df05d5a4898f7a3f14c24eb730254be01813f79460f565407a03 |
|
MD5 | 46badcda11bd94153956a0d7e404d73d |
|
BLAKE2b-256 | 29b794f6511f48deb2d1ceaf11c35b6253cbe80a914cf98e10664b5e04062c25 |