a lightweight ini parser
Project description
a lightweight ini parser
converts an ini file to a python dictionary
example ini file
; main section
[section]
key = value
key2 = "value2"
key3 = 'value3'
reading it using ini.py
import ini
text = open('config.ini', 'r')
config = ini.parse(text)
section = config['section']
print(section['key'], section['key2'], section['key3'])
output
value value2 value3
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ini.py-0.0.1.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file ini.py-0.0.1.tar.gz
.
File metadata
- Download URL: ini.py-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 097e97f671c39542652de2b1876d60267f20cd48e40e82e3d91d9e3f3ba1fc38 |
|
MD5 | ec20002a5261a2209012d65c232e1a7c |
|
BLAKE2b-256 | 01fb81dca7e263a60a2a15c455b4fb89173033b9c0efbde7e4bc0a7939158cc4 |
Provenance
File details
Details for the file ini.py-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ini.py-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1695cdd3a71c7520356339bc26321fb20e246f072c5badf16a7e9a07405d3b8 |
|
MD5 | 668f359211f9d3c027b914635a21dd03 |
|
BLAKE2b-256 | 9498592b1c07d7059b9e76ad8af06426a0f2fa628a5bdbaaaa1e48795dd3526d |