Skip to main content

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.

Metadata

Release files for Inirama 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Inirama 0.8.0
File Size Uploaded
Inirama-0.8.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Inirama 0.8.0
File Interpreter ABI Platform
Inirama-0.8.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.9 kB

Release files / Inirama-0.8.0.tar.gz

Download URL Inirama-0.8.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
67ef50d0f2d0f88aa22de0267feeede214d804875b381f1808ad2071089f6a5f
BLAKE2b-256 checksum
How to use checksums
4e128296c7e6aab4024808743aca192ab58f96944a76a8050e69256de114df9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Inirama-0.8.0-py2.py3-none-any.whl

Download URL Inirama-0.8.0-py2.py3-none-any.whl
Size 7.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b4b94072591257d99c027001d142d6f88e5af6a99e89534cf25e0faafdef75a8
BLAKE2b-256 checksum
How to use checksums
c14e865257a16b410c314d9ca169f693c710d8db5330720601594a512d73c7ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page