subtoml

Sed for TOML: subtitute parts of a TOML file


Licenses
GPL-3.0/GPL-3.0+
Install
pip install subtoml==0.3.0

Documentation

subtoml: Sed for TOML

subtoml is a small CLI utility that substitutes parts of a TOML file.

$ cat sample.toml
[database]
url = "postgresql://localhost/sample"
[web]
debug = true
$ subtoml database.url 'postgresql://localhost/test' < sample.toml
[database]
url = "postgresql://localhost/test"
[web]
debug = true

Distributed under GPLv3 or later.

Changelog

Version 0.2.0

Released on July 7, 2017.

  • Added -i/--input-file option.
  • Added -o/--output-file option.

Version 0.1.1

Released on April 17, 2017.

  • Fixed TypeError with the recent versions of pytoml.

Version 0.1.0

Released on September 9, 2017. Initial release.