CodeQL for Python

The following tutorials and worked examples are designed to help you learn how to write effective and efficient queries for Python projects. You should work through these topics in the order displayed.

Other resources

  • For examples of how to query common Python elements, see the Python cookbook.
  • For the queries used in LGTM, display a Python query and click Open in query console to see the code used to find alerts.
  • For more information about the library for Python see the CodeQL library for Python.