Scripting
Once you've imported the data, the most straight-forward thing to do is to run the pre-prepared scripts
Last updated
Once you've imported the data, the most straight-forward thing to do is to run the pre-prepared scripts
Last updated
mbpy scripts list
You can run each individual script by appending the line output above after mbpy scripts run
, like this:
mbpy scripts run students_id --group health_checks
Just use the group name by itself:
mbpy scripts run health_checks
Example output:
These scripts are simply text files in the scripts
folder. They can be grouped into directories. They have to end with .mbpy
in order to be executed.
The idea is simple:
Write a query with the command line. See "Querying via the command line" for how to do that.
Copy the query into a text file that ends with .mbpy
Place it into the appropriate directory
Re-use it with mbpy scripts run your_script