Skip to main content

Inirama -- Simplest parser for INI files. Interpolation supported.

Project description

Inirama – Simplest parser for INI files. Interpolation supported.

Build Status

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


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.8.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file Inirama-0.2.8.tar.gz.

File metadata

  • Download URL: Inirama-0.2.8.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Inirama-0.2.8.tar.gz
Algorithm Hash digest
SHA256 4be0ee6ccf94a3931c88ac1491b3ac928383116486b8281b4f8c48d75d224eac
MD5 b7c91188f685986fe02c6ca4d798096b
BLAKE2b-256 b55bf660ddda7d4aafc7f2c5088b10d4b110b08892f084b90de79201bc8eae2c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page