a lightweight ini parser
Project description
a lightweight ini parser
how to install
pip install ini.py
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').read()
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.2.tar.gz
(1.8 kB
view details)
Built Distribution
File details
Details for the file ini.py-0.0.2.tar.gz
.
File metadata
- Download URL: ini.py-0.0.2.tar.gz
- Upload date:
- Size: 1.8 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 | 90082d0d476bd26fdc8dca8041b5decd5fa64b9af681c63b59a4df125755742f |
|
MD5 | 501bc6f47abcd7b0836c52f331c78adb |
|
BLAKE2b-256 | a911180a775220546a99036475da9750dfc650b58d9e01649008a98b070557e9 |
Provenance
File details
Details for the file ini.py-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ini.py-0.0.2-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 | 23fcb0a795fa44c5a8ddce27fda7fdfa35821b95714a5a61bc118f1eb40488e4 |
|
MD5 | 74d3055089e1e82cc998c5701e929ed5 |
|
BLAKE2b-256 | 2210831c770e6fafb3434c0c9c389f356aab0433f9bb3959484e0c3884f53e83 |