# twp - tableau workbook parser
twp is a command line tool for parsing sql queries & related information out of tableau workbooks (.twb & .twbx files). It works by taking a tableau workbook, parsing the xml, and formatting information about worksheets, connections to those worksheets, their connection(db) details, and the corresponding custom sql (assuming it exists) in a valid sql & human readable format.
$ twp input.twb(x) > output.sql
$ python -m pip install twp
Forked from (and based mostly on) https://github.com/levikanwischer/tabtosql, work (c) 2016 by Levi Kanwischer