updates
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,131 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: PyMySQL
|
||||
Version: 1.1.2
|
||||
Summary: Pure Python MySQL Driver
|
||||
Author-email: Inada Naoki <songofacandy@gmail.com>, Yutaka Matsubara <yutaka.matsubara@gmail.com>
|
||||
License-Expression: MIT
|
||||
Project-URL: Project, https://github.com/PyMySQL/PyMySQL
|
||||
Project-URL: Documentation, https://pymysql.readthedocs.io/
|
||||
Project-URL: Changelog, https://github.com/PyMySQL/PyMySQL/blob/main/CHANGELOG.md
|
||||
Keywords: MySQL
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Topic :: Database
|
||||
Requires-Python: >=3.8
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE
|
||||
Provides-Extra: rsa
|
||||
Requires-Dist: cryptography; extra == "rsa"
|
||||
Provides-Extra: ed25519
|
||||
Requires-Dist: PyNaCl>=1.4.0; extra == "ed25519"
|
||||
Dynamic: license-file
|
||||
|
||||
[](https://pymysql.readthedocs.io/)
|
||||
[](https://codecov.io/gh/PyMySQL/PyMySQL)
|
||||
[](https://deepwiki.com/PyMySQL/PyMySQL)
|
||||
|
||||
# PyMySQL
|
||||
|
||||
This package contains a pure-Python MySQL and MariaDB client library, based on
|
||||
[PEP 249](https://www.python.org/dev/peps/pep-0249/).
|
||||
|
||||
## Requirements
|
||||
|
||||
- Python -- one of the following:
|
||||
- [CPython](https://www.python.org/) : 3.9 and newer
|
||||
- [PyPy](https://pypy.org/) : Latest 3.x version
|
||||
- MySQL Server -- one of the following:
|
||||
- [MySQL](https://www.mysql.com/) LTS versions
|
||||
- [MariaDB](https://mariadb.org/) LTS versions
|
||||
|
||||
## Installation
|
||||
|
||||
Package is uploaded on [PyPI](https://pypi.org/project/PyMySQL).
|
||||
|
||||
You can install it with pip:
|
||||
|
||||
$ python3 -m pip install PyMySQL
|
||||
|
||||
To use "sha256_password" or "caching_sha2_password" for authenticate,
|
||||
you need to install additional dependency:
|
||||
|
||||
$ python3 -m pip install PyMySQL[rsa]
|
||||
|
||||
To use MariaDB's "ed25519" authentication method, you need to install
|
||||
additional dependency:
|
||||
|
||||
$ python3 -m pip install PyMySQL[ed25519]
|
||||
|
||||
## Documentation
|
||||
|
||||
Documentation is available online: <https://pymysql.readthedocs.io/>
|
||||
|
||||
For support, please refer to the
|
||||
[StackOverflow](https://stackoverflow.com/questions/tagged/pymysql).
|
||||
|
||||
## Example
|
||||
|
||||
The following examples make use of a simple table
|
||||
|
||||
``` sql
|
||||
CREATE TABLE `users` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`email` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
`password` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
|
||||
AUTO_INCREMENT=1 ;
|
||||
```
|
||||
|
||||
``` python
|
||||
import pymysql.cursors
|
||||
|
||||
# Connect to the database
|
||||
connection = pymysql.connect(host='localhost',
|
||||
user='user',
|
||||
password='passwd',
|
||||
database='db',
|
||||
cursorclass=pymysql.cursors.DictCursor)
|
||||
|
||||
with connection:
|
||||
with connection.cursor() as cursor:
|
||||
# Create a new record
|
||||
sql = "INSERT INTO `users` (`email`, `password`) VALUES (%s, %s)"
|
||||
cursor.execute(sql, ('webmaster@python.org', 'very-secret'))
|
||||
|
||||
# connection is not autocommit by default. So you must commit to save
|
||||
# your changes.
|
||||
connection.commit()
|
||||
|
||||
with connection.cursor() as cursor:
|
||||
# Read a single record
|
||||
sql = "SELECT `id`, `password` FROM `users` WHERE `email`=%s"
|
||||
cursor.execute(sql, ('webmaster@python.org',))
|
||||
result = cursor.fetchone()
|
||||
print(result)
|
||||
```
|
||||
|
||||
This example will print:
|
||||
|
||||
``` python
|
||||
{'password': 'very-secret', 'id': 1}
|
||||
```
|
||||
|
||||
## Resources
|
||||
|
||||
- DB-API 2.0: <https://www.python.org/dev/peps/pep-0249/>
|
||||
- MySQL Reference Manuals: <https://dev.mysql.com/doc/>
|
||||
- Getting Help With MariaDB <https://mariadb.com/kb/en/getting-help-with-mariadb/>
|
||||
- MySQL client/server protocol:
|
||||
<https://dev.mysql.com/doc/internals/en/client-server-protocol.html>
|
||||
- "Connector" channel in MySQL Community Slack:
|
||||
<https://lefred.be/mysql-community-on-slack/>
|
||||
- PyMySQL mailing list:
|
||||
<https://groups.google.com/forum/#!forum/pymysql-users>
|
||||
|
||||
## License
|
||||
|
||||
PyMySQL is released under the MIT License. See LICENSE for more
|
||||
information.
|
||||
@@ -0,0 +1,43 @@
|
||||
pymysql-1.1.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
pymysql-1.1.2.dist-info/METADATA,sha256=tybjtEhDSfbAzYS5Ag7-X7mAglkvBrOcEJMW1o7_Dqg,4298
|
||||
pymysql-1.1.2.dist-info/RECORD,,
|
||||
pymysql-1.1.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
pymysql-1.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
||||
pymysql-1.1.2.dist-info/licenses/LICENSE,sha256=MUEg3GXwgA9ziksxQAx27hTezR--d86cNUCkIbhup7Y,1070
|
||||
pymysql-1.1.2.dist-info/top_level.txt,sha256=IKlV-f4o90sOdnMd6HBvo0l2nqfJOGUzkwZeaEEGuRg,8
|
||||
pymysql/__init__.py,sha256=0sUOasTjx9try2-4ZmPaogG0PVar7v37HBkq1ef1xLU,4262
|
||||
pymysql/__pycache__/__init__.cpython-312.pyc,,
|
||||
pymysql/__pycache__/_auth.cpython-312.pyc,,
|
||||
pymysql/__pycache__/charset.cpython-312.pyc,,
|
||||
pymysql/__pycache__/connections.cpython-312.pyc,,
|
||||
pymysql/__pycache__/converters.cpython-312.pyc,,
|
||||
pymysql/__pycache__/cursors.cpython-312.pyc,,
|
||||
pymysql/__pycache__/err.cpython-312.pyc,,
|
||||
pymysql/__pycache__/optionfile.cpython-312.pyc,,
|
||||
pymysql/__pycache__/protocol.cpython-312.pyc,,
|
||||
pymysql/__pycache__/times.cpython-312.pyc,,
|
||||
pymysql/_auth.py,sha256=7bIFnJ7lJrFEhKLEnHGo1-h7E5cnZB2211KE1vatBAQ,7638
|
||||
pymysql/charset.py,sha256=Y4GgMDxn0Yz-99NwstfCLeCfoRFdwywWoHrn5Gnvghk,10258
|
||||
pymysql/connections.py,sha256=Bs8PG2UacyQF4hrJ7N68mdpifm7t5At0vTHvZFHZG8k,53908
|
||||
pymysql/constants/CLIENT.py,sha256=SSvMFPZCTVMU1UWa4zOrfhYMDdR2wG2mS0E5GzJhDsg,878
|
||||
pymysql/constants/COMMAND.py,sha256=TGITAUcNWlq2Gwg2wv5UK2ykdTd4LYTk_EcJJOCpGIc,679
|
||||
pymysql/constants/CR.py,sha256=Qk35FWRMxRHd6Sa9CCIATMh7jegR3xnLdrdaBCT0dTQ,2320
|
||||
pymysql/constants/ER.py,sha256=nwqX_r0o4mmN4Cxm7NVRyJOTVov_5Gbl5peGe6oz5fk,12357
|
||||
pymysql/constants/FIELD_TYPE.py,sha256=ytFzgAnGmb9hvdsBlnK68qdZv_a6jYFIXT6VSAb60z8,370
|
||||
pymysql/constants/FLAG.py,sha256=Fy-PrCLnUI7fx_o5WypYnUAzWAM0E9d5yL8fFRVKffY,214
|
||||
pymysql/constants/SERVER_STATUS.py,sha256=m28Iq5JGCFCWLhafE73-iOvw_9gDGqnytW3NkHpbugA,333
|
||||
pymysql/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
pymysql/constants/__pycache__/CLIENT.cpython-312.pyc,,
|
||||
pymysql/constants/__pycache__/COMMAND.cpython-312.pyc,,
|
||||
pymysql/constants/__pycache__/CR.cpython-312.pyc,,
|
||||
pymysql/constants/__pycache__/ER.cpython-312.pyc,,
|
||||
pymysql/constants/__pycache__/FIELD_TYPE.cpython-312.pyc,,
|
||||
pymysql/constants/__pycache__/FLAG.cpython-312.pyc,,
|
||||
pymysql/constants/__pycache__/SERVER_STATUS.cpython-312.pyc,,
|
||||
pymysql/constants/__pycache__/__init__.cpython-312.pyc,,
|
||||
pymysql/converters.py,sha256=8Jl-1K1Nt-ZKAiahBJV4MoSvO1O-PZtu8CfQG9EDftk,9523
|
||||
pymysql/cursors.py,sha256=a4-JHYP148kx-9qVNRz8vTtlilGlKDbk_QtFlWph5L4,16535
|
||||
pymysql/err.py,sha256=wLe0af6AmK6z7fq_MnYfgYsc6LnUuMj7EliHPZKquBA,4178
|
||||
pymysql/optionfile.py,sha256=eQoz6c43yvmHtp5MI9TB2GPRdoggOLemcUWABksfutk,651
|
||||
pymysql/protocol.py,sha256=aD-PGPRYcwkSI6ZJoJWZVRKn9H_A0f70KfPDu65tq0o,11812
|
||||
pymysql/times.py,sha256=_qXgDaYwsHntvpIKSKXp1rrYIgtq6Z9pLyLnO2XNoL0,360
|
||||
@@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: setuptools (80.9.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2010, 2013 PyMySQL contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
@@ -0,0 +1 @@
|
||||
pymysql
|
||||
Reference in New Issue
Block a user