metapack-build¶
Quick Start¶
Generate a new Metapack package with examples:
$ mp new -o metatab.org -d tutorial -L -E -T "Quickstart Example Package"
You now have a Metapack package in the metatab.org-tutorial
directory,
with two example data resources. Build the data packages with:
$ mp build metatab.org-tutorial/ -f -e -z
Now the metatab.org-tutorial/_packages
directory has a Zip, Excel and
Filesystem package, along with links to each package’s unversioned name.
Explore the schema for one of the built packages with:
$ cd metatab.org-tutorial/_packages/
$ mp info -s metatab.org-tutorial-1.zip#random_names
And dump a sample of the data for a resource in a table format:
$ mp run -T metatab.org-tutorial-1.zip#random_names
Also, open the Excel package (metatab.org-tutorial-1.xlsx) to see the pretty
formatting of the metadata, and the generated HTML documentation in
metatab.org-tutorial-1/index.html
That’s just a quick preview of how the system works. For more details see Getting Started.