qtableview
PyQt5 based SQL query executor demo tutorial and reference. Uses DB-API and SQLite3. Performs syntax highlighting in QTextEdit using pygments.