Skip to content

Commit b154f03

Browse files
committed
Python: Fix names of supported PyPI packages
1 parent 19305a2 commit b154f03

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

docs/codeql/support/reusables/frameworks.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ Python built-in support
166166
multidict, Utility library
167167
yarl, Utility library
168168
mysql-connector-python, Database
169-
MySQLdb, Database
169+
mysql-connector, Database
170+
MySQL-python, Database
170171
psycopg2, Database
171172
sqlite3, Database
172173
cryptography, Cryptography library

python/ql/src/semmle/python/frameworks/MySQLdb.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/**
2-
* Provides classes modeling security-relevant aspects of the `MySQLdb` PyPI package.
2+
* Provides classes modeling security-relevant aspects of the `MySQL-python` PyPI package
3+
* (imported as `MySQLdb`).
4+
*
35
* See
46
* - https://mysqlclient.readthedocs.io/index.html
57
* - https://pypi.org/project/MySQL-python/
@@ -13,7 +15,7 @@ private import semmle.python.ApiGraphs
1315
private import semmle.python.frameworks.PEP249
1416

1517
/**
16-
* Provides models for the `MySQLdb` PyPI package.
18+
* Provides models for the `MySQL-python` PyPI package (imported as `MySQLdb`).
1719
* See
1820
* - https://mysqlclient.readthedocs.io/index.html
1921
* - https://pypi.org/project/MySQL-python/

python/ql/src/semmle/python/frameworks/MysqlConnectorPython.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
2-
* Provides classes modeling security-relevant aspects of the `mysql-connector-python` package.
2+
* Provides classes modeling security-relevant aspects of the `mysql-connector-python`
3+
* and `mysql-connector` (old package name) PyPI packages (imported as `mysql`).
34
* See
45
* - https://dev.mysql.com/doc/connector-python/en/
56
* - https://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html
@@ -13,7 +14,8 @@ private import semmle.python.ApiGraphs
1314
private import semmle.python.frameworks.PEP249
1415

1516
/**
16-
* Provides models for the `mysql-connector-python` package.
17+
* Provides classes modeling security-relevant aspects of the `mysql-connector-python`
18+
* and `mysql-connector` (old package name) PyPI packages (imported as `mysql`).
1719
* See
1820
* - https://dev.mysql.com/doc/connector-python/en/
1921
* - https://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html

0 commit comments

Comments
 (0)