MySQL Connector/Python contains an implementation of the X DevAPI - An Application Programming Interface for working with the MySQL Document Store.
Licensing
Please refer to the README.txt and LICENSE.txt files, available in this repository, for further details.
Contributing
We greatly appreciate feedback from our users, including bug reports and code contributions. Your input helps us improve, and we thank you for any issues you report or code you contribute. Please refer to the CONTRIBUTING.md document for additional information.
Installation
Connector/Python contains the Classic and X DevAPI connector APIs, which are installed separately. Any of these can be installed from a binary or source distribution.
Binaries are distributed in the following package formats:
On the other hand, the source code is distributed as a compressed file from which a wheel package can be built.
The recommended way to install Connector/Python is via pip, which relies on WHEEL packages. For such a reason, it is the installation procedure that is going to be described moving forward.
Please, refer to the official MySQL documentation Connector/Python Installation to know more about installing from an RPM, or building and installing a WHEEL package from a source distribution.
Before installing a package with pip, it is strongly suggested to have the most recent pip version installed on your system. If your system already has pip installed, you might need to update it. Or you can use the standalone pip installer.
$ pip install mysqlx-connector-python
Please refer to the installation tutorial for installation alternatives of the X DevAPI.
Installation Options
Connector packages included in MySQL Connector/Python allow you to install optional dependencies to unleash certain functionalities.
# 3rd party packages to unleash the compression functionality are installed
$ pip install mysqlx-connector-python[compression]
This installation option can be seen as a shortcut to install all the dependencies needed by a particular feature. Mind that this is optional and you are free to install the required dependencies by yourself.
Available options:
dns-srv
compression
Sample Code
import mysqlx
# Connect to server
session = mysqlx.get_session(
host="127.0.0.1",
port=33060,
user="mike",
password="s3cr3t!")
schema = session.get_schema("test")
# Use the collection "my_collection"
collection = schema.get_collection("my_collection")
# Specify which document to find with Collection.find()
result = collection.find("name like :param") \
.bind("param", "S%") \
.limit(1) \
.execute()
# Print document
docs = result.fetch_all()
print(r"Name: {0}".format(docs[0]["name"]))
# Close session
session.close()
Additional Resources
Release files for mysqlx-connector-python 26.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mysqlx_connector_python-26.7.0.tar.gz | 374.8 kB | Details |
Built distributions (wheels)
Total release size: 231.0 MB
Release files / mysqlx_connector_python-26.7.0.tar.gz
| Download URL | mysqlx_connector_python-26.7.0.tar.gz |
|---|---|
| Size | 374.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76c8aebe47c55b88a74012a715c063153c36a239c0a47dac29cc01caa9323137
|
|
BLAKE2b-256 checksum How to use checksums |
e7865859d319799e0ba60071f91822076aa693f8704b179744b16b398eea7b57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-py2.py3-none-any.whl
| Download URL | mysqlx_connector_python-26.7.0-py2.py3-none-any.whl |
|---|---|
| Size | 224.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
838d58d86247a30174dffafacb10c17b6abbef5486fd8afb031f92308c0cabae
|
|
BLAKE2b-256 checksum How to use checksums |
3c13dc0badcd0eb3679d2094c2b9b6eacdc50317dbfd0a88cd8816b481a4f0ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp314-cp314-win_amd64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 851.4 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cb94d27970fcef728c314649a1445f9f3e9e942de2a64bac63fe75bad7951545
|
|
BLAKE2b-256 checksum How to use checksums |
6ecab6a23702e91f7bce7ddaef6450121cbe7bd5ca60c1bc458005e916c41068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.1 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
dc4454ac52ea294e66b062a8e5be1c5ee57fe259ce50aca2c1db8221b404a33c
|
|
BLAKE2b-256 checksum How to use checksums |
93cfcbaea4081c5e21965bca1688356ca187862a5b8b07f2b4b566e53a8df963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp314-cp314-manylinux_2_28_aarch64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp314-cp314-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 20.8 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
dcc591c483ab47dec53123b747ace89afe2456a866fb72e5ff9e4bdb003bc640
|
|
BLAKE2b-256 checksum How to use checksums |
79968a07296de33441f06f123ac46d54bc3b8e93393db32e78c7900c5012a666
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp314-cp314-macosx_14_0_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp314-cp314-macosx_14_0_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.14 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
821ab7707505798957c03e71628c58e97173992ac47bcd6a4b666eb484c950ed
|
|
BLAKE2b-256 checksum How to use checksums |
27f8ea706cc4ae33aae0c09eefd637b032d206c9194f961035ebb3953e9892f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp314-cp314-macosx_14_0_arm64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp314-cp314-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.14 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b2da9369c758a3fc37611d8a4762fa3061d6df2046414fed34d07b7245e327b7
|
|
BLAKE2b-256 checksum How to use checksums |
919651323555eeda8b472568b30e0b41e8735399c5da124f41e228f7ec2eec14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp313-cp313-win_amd64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 834.0 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
415b461e24dbdee29806aad97c01f54379c1e9b98db42d5f50d2372107007989
|
|
BLAKE2b-256 checksum How to use checksums |
c4badfbc1a9eed65b8a35042b759f9a5548ae22d23215c0b519ab024a8dbc88d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.1 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
1c9db0dd158e9f4434c5a48ca28dd3b675d95fe27744d90f2050bd086c8930c1
|
|
BLAKE2b-256 checksum How to use checksums |
2bb06f607e490f09dd091ac47ebfc7a62e2414a63f81715a43498f2e3385274a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp313-cp313-manylinux_2_28_aarch64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp313-cp313-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 20.8 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
2a5f2cc989d27e53c779dfe435974fb7467870fe9a44efdd6b6eac61890ebed1
|
|
BLAKE2b-256 checksum How to use checksums |
5640fc7130debef9779b1081fb6ce70ef90eaeef76821cfe4ef36e2b6e4d66a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp313-cp313-macosx_14_0_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp313-cp313-macosx_14_0_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.13 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
5ca897cf65a9c84365a276e26e5af8f654cec3af07428602fda325ce46ba0412
|
|
BLAKE2b-256 checksum How to use checksums |
f9f4f3e2383324827e2f888512512038894cb1473b0752ea7154d51ebb13c0b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f8e810dab80838218925a70b5a96bb4c6991c5c934fd24a8cebe9c0b12e9ccc0
|
|
BLAKE2b-256 checksum How to use checksums |
ecc8f1f0589e5e912966b357f7d2050a46126c59d6560dc82e560dad3ed53cc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.1 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b1ad35cc551c0a157705616032edb363f3eb80b32a067ea1b0d519e43d33c679
|
|
BLAKE2b-256 checksum How to use checksums |
378717e57343f83188b85f1d7bdc90d88695535001fff1ca84171c541f8b8f11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp312-cp312-manylinux_2_28_aarch64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp312-cp312-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 20.8 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
a14f1e83f3ec413a7adbcf680769e97f54bc1196bb850d22ede95cdf71d25de9
|
|
BLAKE2b-256 checksum How to use checksums |
e9f496c149ee0d9d695907f158cd7a9a5013f8e3a713b7663013ccc222d62e02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp312-cp312-macosx_14_0_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp312-cp312-macosx_14_0_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.12 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
3b098b9935c50e8bb78b774848bfe3c7d05822829e2a3b39ddb872630b057eda
|
|
BLAKE2b-256 checksum How to use checksums |
1a8f870cb499654031e63f2564955b31e1dd45e7511821c71ddc06ad2196abf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ed66e2ca4fd1a79dd4079a35f675ce970c0600777e348778e5f4adb0e5ab4ef5
|
|
BLAKE2b-256 checksum How to use checksums |
0f0483d9e427c91f7c5931824027c23003018e4b537f384986dcd7419f76bf33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp311-cp311-win_amd64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 834.0 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
eafde9199fac5d07733c781b8b0fcdc37bf4013d6691e3bd6d7452e20fc31ee9
|
|
BLAKE2b-256 checksum How to use checksums |
a80ce74b7796820abb4ac04ba4c00c000ce34a374064a91ed2d263c5fdf55a1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.1 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
33239cbe94805312357d6d584dd26437f5f68032aae64919232307ee8bb41c77
|
|
BLAKE2b-256 checksum How to use checksums |
342e1d6b5b986e6494156ea10996cb794f06e4d0ff3fce19771a219259075d65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp311-cp311-manylinux_2_28_aarch64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp311-cp311-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 20.8 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
36f67f32915d3d4d90c5ae347936cdfd0b1f2ee61b1afeb9638e720cfe82bb35
|
|
BLAKE2b-256 checksum How to use checksums |
82a53f74dd757974d600bf9aea9c78a46d9f4ba656e9fd9d148225ac0306c2d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp311-cp311-macosx_14_0_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp311-cp311-macosx_14_0_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
6b6b653b415f2936e7591fa6e5bb12b2115e4d7bad198d5c4ffbbf7f4cf225da
|
|
BLAKE2b-256 checksum How to use checksums |
3fc2497b46897d7b0417738d9c70775a3a1f4d42b84fe18c70bb34e65b6e8e8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d64a455448b9357bb8df0e25326b4207e99e1c67a32643040240e3f86d509a97
|
|
BLAKE2b-256 checksum How to use checksums |
727a859845ae15d206b85525fdaeffede83fc83e7988210f4014956ca33ca9db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp310-cp310-win_amd64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 845.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f1c1e42c0c95738e4fc94aeb1599b594f065ab3dd3a4410531a504d05b61afa8
|
|
BLAKE2b-256 checksum How to use checksums |
d1e10583c9a37e9054850ff91690aba377539ee1ab2db670c22b49ae618e731c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.1 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
eb6b6e3341d325f89758ab82337718086617d9d0d9c7f7678dfd2fab059d232a
|
|
BLAKE2b-256 checksum How to use checksums |
a0785e48458f80df61545d489a8073737794edfec12dcd89e58e6aa693039c6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp310-cp310-manylinux_2_28_aarch64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp310-cp310-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 20.8 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
724ec8958401aa9b5236857a1ce7adefffe51969958db22bfea800652b113775
|
|
BLAKE2b-256 checksum How to use checksums |
abd17fe8320b64052d953b12191f4e13c76dfa1b7fb0e6e5aaa3765573a1ceec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp310-cp310-macosx_14_0_x86_64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp310-cp310-macosx_14_0_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
39134a32ae012195eb125c766ca29ed970757e2ed94c8eff2879c63687c1d006
|
|
BLAKE2b-256 checksum How to use checksums |
78b4b6dd45f90bfbb1f76cabc1d5a326c4249201203cb0d6726a2d8a9b4544cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mysqlx_connector_python-26.7.0-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | mysqlx_connector_python-26.7.0-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c616b93bc8e503ecc9894f7d752fa920ee1e6858ece6f81271cec9128f57a06a
|
|
BLAKE2b-256 checksum How to use checksums |
287cc3d81274d9b3e6a98504afa1fcd3697254885117d2649499f1429d146d17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|