📌
MBPY: Schools Technology
  • About this Resource
  • Installation
    • Requirements
    • Getting Started Local Install
    • Getting Started using Docker
    • Further instructions with Docker
    • Updating with Docker
  • Tutorials
    • Configuration
    • Importing
    • Extracting
    • Streaming
    • Pipelines
    • Scripting
    • Big Query
  • Querying & Tranformations
    • Querying Commands
    • Querying the Database
    • Querying via Script
    • Querying via an SQLite Client
  • Scripts
    • Daily Homeroom Attendance Report
  • Pipelines
    • Dataframes with pandas
    • Pipelines
    • Example Pipelines
      • Bulk Change Email domain
      • Enrollment by Gender
  • Plugins
    • mbpy_powerschool_plugin
      • PowerSchool Plugin
        • API reference
      • mbpy Plugin
        • mbpy plugin source code
    • Plugins Overview
    • mbpy_plugin_example
    • mbpy_plugin_destiny
    • mbpy_plugin_attendance_reports
Powered by GitBook
On this page
  • View the scripts available
  • Run a script
  • Run an entire group of scripts
  • Write a script

Was this helpful?

Export as PDF
  1. Tutorials

Scripting

Once you've imported the data, the most straight-forward thing to do is to run the pre-prepared scripts

PreviousPipelinesNextBig Query

Last updated 1 year ago

Was this helpful?

View the scripts available

mbpy scripts list

Run a script

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

Run an entire group of scripts

Just use the group name by itself:

mbpy scripts run health_checks

Example output:

Write a script

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:

  1. Copy the query into a text file that ends with .mbpy

  2. Place it into the appropriate directory

  3. Re-use it with mbpy scripts run your_script

Write a query with the command line. See "" for how to do that.

Querying via the command line