Inirama -- Simple parser for INI files
Project description
Inirama – Simple parser for INI files
Requirements
python >= 2.6
Installation
Inirama should be installed using pip:
pip install inirama
Usage
from inirama import Namespace parser = Namespace() parser.read('config.ini') print Parser['section']['key'] parser['other']['new'] = 'value' parser.write('new_config.ini')
Interpolation
from inirama import Namespace parser = Namespace() parser.parse(""" [main] test = value foo = bar {test} more_deep = wow {foo} """) print parser['main']['more_deep'] # wow bar value
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/inirama/issues
Contributing
Development of inirama happens at github: https://github.com/klen/inirama
Contributors
klen (Kirill Klenov)
License
Licensed under a BSD license.
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
Inirama-0.1.0.tar.gz
(3.8 kB
view details)
File details
Details for the file Inirama-0.1.0.tar.gz
.
File metadata
- Download URL: Inirama-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fe1d03c09d76147b4332c0d523aab651d0e444215461147cacbfa91dd023150 |
|
MD5 | 7d6a3409f3639dea5a2028d3090c319f |
|
BLAKE2b-256 | fe613eaf2ecb144197fd511a92bab72ba26ecb2a91f64ef2cf6dda755b5cdcfb |