ini file parser.
Project description
ini klass
The ini file parser.
Install
To install a wheel from PyPI,
pip install --upgrade ini-klass
Usage
Example ini file,
[example]
id = 12
name = John
status = true
salary = 100.50
group = car, book, phone
To parse ini file above,
from ini import IniConfig
# read from `CONFIG` environment
config = IniConfig.read()
# read from file
config = IniConfig.read('/tmp/file.ini')
# access configuration value
name = config.example.name
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-klass-0.0.4.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for ini_klass-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9b0622af31290bb43f942d0248070e5f67d8441db5c8e2b9b3f8eca8dc8a1a |
|
MD5 | 26c4ac5c177c421893310c5640851995 |
|
BLAKE2b-256 | 2e08209173613c3ddade83a252ad82f59280a754cb63f65aa2c310cd82e3ecba |