Skip to main content

I/O facility for Idefix/Pluto ini files

Project description

inifix

PyPI PyPI codecov pre-commit.ci status Code style: black Imports: isort

inifix in a small Python library with I/O methods to read and write Idefix (or Pluto) inifiles as Python dictionaries.

Installation

From the top level of the repo, run

$ python3 -m pip install -u -e .

Usage

import inifix

# read
conf = inifix.load("pluto.ini")

# patch
conf["Time"].update({"CFL": 0.1})

# write back
inifix.dump(conf, "pluto-mod.ini")

Contribution guidelines

We use the pre-commit framework to automatically lint for code style and common pitfals.

Before you commit to your local copy of the repo, please run this from the top level

$ python3 -m pip install -u -e .[dev]
$ pre-commit install

Testing

We use the pytest framework to test inifix. The test suite can be run from the top level with a simple pytest invocation.

$ pytest

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

inifix-0.1.0.tar.gz (17.2 kB view hashes)

Uploaded Source

Built Distribution

inifix-0.1.0-py3-none-any.whl (17.5 kB view hashes)

Uploaded Python 3

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