Skip to main content

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

Project description

Inirama – Simplest parser for INI-style files.

Features:

  • One single module;

  • No requirements;

  • Tiny interface;

  • Supports variable interpolation;

Build Status Coverals Version Downloads Donate

Docs are available at https://inirama.readthedocs.org/. Pull requests with documentation enhancements and/or fixes are awesome and most welcome.

Requirements

  • python (2.6, 2.7, 3.2, 3.3)

Installation

Inirama could be installed using pip:

pip install inirama

Quickstart

from inirama import Namespace

ns = Namespace()
ns.read('config.ini')

print ns['section']['key']

ns['other']['new'] = 'value'
ns.write('new_config.ini')

Interpolation

from inirama import InterpolationNamespace

ns = InterpolationNamespace()
ns.parse("""
    [main]
    test = value
    foo = bar {test}
    more_deep = wow {foo}
""")
print ns['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.8.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

Inirama-0.8.0-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for Inirama-0.8.0.tar.gz
Algorithm Hash digest
SHA256 67ef50d0f2d0f88aa22de0267feeede214d804875b381f1808ad2071089f6a5f
MD5 dccfe5977ea98ba20dbbabb9482fa08c
BLAKE2b-256 4e128296c7e6aab4024808743aca192ab58f96944a76a8050e69256de114df9f

See more details on using hashes here.

File details

Details for the file Inirama-0.8.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Inirama-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b4b94072591257d99c027001d142d6f88e5af6a99e89534cf25e0faafdef75a8
MD5 2618bee468ed9204dc9db4263ce04801
BLAKE2b-256 c14e865257a16b410c314d9ca169f693c710d8db5330720601594a512d73c7ae

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