Configuration file merge utility
Project description
ConfMerge - Python3 configuration file merge utility
ConfMerge lets you merge multiple configuration files into one file. Currently supported file formats are INI, YAML and JSON.
Table of contents:
Installation
To install ConfMerge directly from Github:
pip install git+https://github.com/Aisbergg/python-confmerge@v0.2.0
Usage
usage: confmerge [-d] [-f] [-h] [-m MODE] [-t FILE_TYPE] [--debug] [--version]
src [src ...] dest
Merge multiple configuration files into one file
positional arguments:
src The source files
dest The destination file
optional arguments:
-d, --dry-run Print the merged content on stdout instead of writing
it to the destination file
-f, --force Force overwriting of any existing destination file
-h, --help Show this help message and exit
-m MODE, --mode MODE File mode for newly created files
-t FILE_TYPE, --type FILE_TYPE
Type of file can be one of 'ini', 'json' or 'yaml'. If
not specified the type will be guessed from the file
extension
--debug Print debug trace on error
--version Print the program version and exit
Examples
Merge multiple INI files and write result into res.ini
confmerge -f 1.ini 2.ini 3.ini res.ini
Merge different types of configuration files:
confmerge -f 1.yml 2.json 3.ini res.yml
Perform a dry run (don't write output file but print result on stdout):
confmerge --dry-run 1.yml 2.yml not-touched.yml
License
ConfMerge is released under the LGPL v3 License. See LICENSE.txt for more information.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ConfMerge-0.2.0.tar.gz.
File metadata
- Download URL: ConfMerge-0.2.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12f08f311e97517a9f9f6b34be0cac6febd308a9e1bfeaa8e5700bdb9bbd9172
|
|
| MD5 |
8031aa16a76959ed6b0e2ba1d0f39dfd
|
|
| BLAKE2b-256 |
32bb21f7ae2f2f637f873cb2747767020849d345f0e407d18e78495df21ddbfb
|
File details
Details for the file ConfMerge-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ConfMerge-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
984d0c39047d71f58530d693bc8b0b8596cb29a63df7a424e8dac2536d2e2ad7
|
|
| MD5 |
d00ddae8302fb9a210e17e908e95dd83
|
|
| BLAKE2b-256 |
a5218fd70543217171f2fca777cbf0ba97984253b37937f170ea951fd9ce4a5f
|