CodeQL library for Python
codeql/python-all 0.6.4 (changelog, source)
Search

Module Import

Import path

import semmle.python.Import

Imports

Classes

Alias

An alias in an import statement, the mod as name part of import mod as name. May be artificial; import x is transformed into import x as x

Import

An import statement

ImportExpr

An artificial expression representing an import

ImportMember

A from ... import ... expression

ImportStar

An import * statement

ImportingStmt

A statement that imports a module. This can be any statement that includes the import keyword, such as import sys, from sys import version or from sys import *.