Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 528 Bytes

File metadata and controls

14 lines (10 loc) · 528 Bytes

Mode Python SQL

Dumps the queries from one or more reports to the local file system as SQL files.

Forked from https://github.com/mode/mode_python_sql

Steps to use this script:

  1. In Mode, generate API token (under Settings -> Your Name -> API Tokens).
  2. Add the token and password values to the mode.yml file.
  3. Add the name of your organisation to the mode.yml file.
  4. Add each report you want to retrieve queries from to the mode.yml file.
  5. Run this script using: python demo.py [-o output_directory]