Skip to content
ServerlessSam edited this page Sep 17, 2022 · 19 revisions

Welcome to data-file-merge: The open-source tool for programatically merging data files! data-file-merge (denoted as dfm from now on) can be used as a python library or a standalone CLI. The project's documentation will assist you in:

  • Installing and using dfm
  • Creating your own dfm config file
  • Contributing to the open-source project!

Summary

dfm uses a set of rules in order to merge multiple data files (JSON currently only supported) into a single data file. dfm accepts up to two arguments in order to run:

  • A configuration file - The file containing the rules for dfm to follow
  • A set of key-value parameters (optional) - Parameters can be used in path substitution logic to control what files are used in the merge

An example CLI command would be dfm merge -p key1:value1,key2:value2 <path to config file>

It can also be used as a python library (see Python Usage).

Clone this wiki locally