Skip to main content

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

Project description

Inirama – Simplest parser for INI files.

Features:

  • One single file;

  • Tiny interface;

  • Interpolation support;

  • No dependencies from python modules;

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.7, 3.2, 3.3)

Installation

Inirama should 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.3.0.tar.gz (5.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Inirama-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c558e74aa1034155f8a7da0bed0be684fcd5abc86a6733d05cc2e449768c9a3b
MD5 6c3eb863b83e012bae1996affb7bad82
BLAKE2b-256 3f74eeba4c3eb02109aa21b3977a161b7dcb64d11e7ebce694397e4edef12540

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