8000 GitHub - Roman-/patch_toml: Python script to apply precise changes to a TOML config file while preserving formatting and comments · GitHub
[go: up one dir, main page]

Skip to content

About

Python script to apply precise changes to a TOML config file while preserving formatting and comments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

patch_toml

Small utility to apply precise value changes to a TOML config file while preserving formatting and comments.

Example

Patch a few settings in place while keeping the rest of the file untouched:

python3 patch_toml.py config.toml config_patched.toml \
  --set 'logger.stdout_level = 4' \
  --set 'device.report_address = ""'

The command rewrites only the targeted keys and leaves everything else exactly as it was.

About

Python script to apply precise changes to a TOML config file while preserving formatting and comments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0