jars

Next-generation objects for omics data


License
BSD-3-Clause
Install
pip install jars==0.0.1

Documentation

jars - Handlebars for JSON

To install jars, run the following: pip install jars

To run jars, run the following: jars file.json

Placeholders

# input 
{"source": "test", "target": "{{source}}"}

# output
{"source": "test", "target": "test"}

Multipliers

# input
{"sources": [{"name": "Joshua"}, {"name":  "Peter"}], "targets":  [{"owner": "{{source.name}}" }]}

# output
{"sources": [{"name": "Joshua"}, {"name":  "Peter"}], "targets":  [{"owner": "Joshua" }, {"owner": "Peter" }]}