Inirama -- Simple parser for INI files
Project description
Inirama – Simple parser for INI files
Requirements
python 2.7, 3.2
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 InterpolationNamespace parser = InterpolationNamespace() 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.2.7.tar.gz
(4.1 kB
view details)
File details
Details for the file Inirama-0.2.7.tar.gz
.
File metadata
- Download URL: Inirama-0.2.7.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b0503f9a756b9c26e14efe8d3389d4abf8e012edf9a92c058fd75928f91ec1 |
|
MD5 | 80038dbdd74838e1a49d7eb33396fb3f |
|
BLAKE2b-256 | 7b27c9f40ce4d03259696db0cf8155de6ce21a5b51ce47d05073a4e9584b7e2f |