跳转到主要内容

Sed for TOML: 替换TOML文件的部分

项目描述

subtoml 是一个小型CLI工具,用于替换TOML文件的部分。

$ 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

请阅读 subtoml --help 获取更多信息。

根据 GPLv3 或更高版本进行分发。

变更日志

版本 0.3.0

发布于2017年8月29日。

  • 添加了 -d/--delete/--delete-key 选项。

  • 添加了 --version 选项。

版本 0.2.0

发布于2017年7月7日。

  • 添加了 -i/--input-file 选项。

  • 添加了 -o/--output-file 选项。

版本 0.1.1

发布于2017年4月17日。

  • 修复了与 pytoml 近期版本相关的 TypeError

版本 0.1.0

发布于 2017 年 9 月 9 日。首次发布。

项目详情


下载文件

下载适合您平台的文件。如果您不确定该选择哪个,请了解有关 安装包 的更多信息。

源代码发行版

subtoml-0.3.0.tar.gz (3.1 kB 查看哈希值)

上传时间 源代码

构建发行版

subtoml-0.3.0-py2.py3-none-any.whl (4.6 kB 查看哈希值)

上传时间 Python 2 Python 3