The transform component allows users to attach scripting to Qri datasets. This allowing for automated updates and workflows that combine several datasets into a single output dataset.
Qri transforms are written in Starlark, a programming language similar in syntax to Python3.
Transforms are currently view-only in Qri Desktop. Each dataset component has its own tab in Qri Desktop's sidebar. If a dataset version contains a transform, you can click the transform tab to view it.
You can use
qri get to inspect a dataset's transform, which will write the starlark code to the terminal.
$ qri get transform.script b5/world_bank_population
Likewise, you can commit changes to transform using
qri save and providing a
$ qri save --file transform.starusing dataset [me/my_dataset]dataset saved: foo/[email protected]/ipfs/QmXciFZ7CZj3PfauaXSpKd6amyUpWh4qiPhPGywFbzjhWa