------
* Added new `templated` type
(see [templated type](https://datacraft.readthedocs.io/en/latest/coretypes.html#templated)) e.g:
json
{"filled_in": {"type": "templated", "data": "{{one}} and {{two}} and a ...", "refs": ["one", "two"]}}
* Expanded API for suppliers module. Most core types have an analog function in the suppliers module to create a value
supplier. e.g:
python
from datacraft import suppliers
supplier_map = { 'char': suppliers.values(['a', 'b', 'c']), 'num': suppliers.values([1, 2, 3]) }
template_str = 'letter {{ char }}, number {{ num }}'
supplier = suppliers.templated(supplier_map, template_str)
supplier.next(0) -> letter a, number 1
* Records now returned as list by default, so `--records-per-file` or `-r` dictates the size of this list e.g:
shell
outputs 10 total records with two per file as a list
datacraft --inline '{foo:date.iso: {}}' --format json-pretty -x --log-level off -i 10 -r 2 -o . -p demo -e .json
ls
demo-0.json demo-1.json demo-2.json demo-3.json demo-4.json
cat demo-0.json
[
{
"foo": "2022-02-01T17:17:58"
},
{
"foo": "2022-02-14T19:56:45"
}
]
* Migrated from travis-ci to circle-ci for builds
* Lots of bug fixes and code cleanup