I/O facility for Idefix/Pluto ini files
Project description
inifix
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
Release history Release notifications | RSS feed
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)
Built Distribution
inifix-0.1.0-py3-none-any.whl
(17.5 kB
view hashes)