Skip to main content

MySQL Connector/Python

https://img.shields.io/pypi/v/mysqlx-connector-python.svg https://img.shields.io/pypi/pyversions/mysqlx-connector-python.svg https://img.shields.io/pypi/l/mysqlx-connector-python.svg

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 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

Metadata

Release files for mysqlx-connector-python 26.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mysqlx-connector-python 26.10.0
File Size Uploaded Provenance
mysqlx_connector_python-26.10.0.tar.gz 375.0 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for mysqlx-connector-python 26.10.0
File
mysqlx_connector_python-26.10.0-py2.py3-none-any.whl Python 3, Python 2 none any Details
mysqlx_connector_python-26.10.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
mysqlx_connector_python-26.10.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details
mysqlx_connector_python-26.10.0-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details
mysqlx_connector_python-26.10.0-cp314-cp314-macosx_14_0_arm64.whl CPython 3.14 CPython 3.14 macOS 14.0+ ARM64 Details
mysqlx_connector_python-26.10.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
mysqlx_connector_python-26.10.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
mysqlx_connector_python-26.10.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details
mysqlx_connector_python-26.10.0-cp313-cp313-macosx_14_0_arm64.whl CPython 3.13 CPython 3.13 macOS 14.0+ ARM64 Details
mysqlx_connector_python-26.10.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
mysqlx_connector_python-26.10.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details
mysqlx_connector_python-26.10.0-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details
mysqlx_connector_python-26.10.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
mysqlx_connector_python-26.10.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
mysqlx_connector_python-26.10.0-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details
mysqlx_connector_python-26.10.0-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details
mysqlx_connector_python-26.10.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
mysqlx_connector_python-26.10.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details
mysqlx_connector_python-26.10.0-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details
mysqlx_connector_python-26.10.0-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details

Total release size: 222.3 MB

Release files / mysqlx_connector_python-26.10.0.tar.gz

Download URL mysqlx_connector_python-26.10.0.tar.gz
Size 375.0 kB
Tags Source
SHA-256 checksum
How to use checksums
407aa652eb5ec34eade24ea8e06c1338aea5ebee58898205a4248b2897b42382
BLAKE2b-256 checksum
How to use checksums
40d4822d7d417ba0869797ffd51b1e21844b6995864b46e95e9c626aa7378d27
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.10.0-py2.py3-none-any.whl

Download URL mysqlx_connector_python-26.10.0-py2.py3-none-any.whl
Size 224.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
470449c0f85fd35c37e11c6d76933ed2c966f8efdd0ab330414e502b5bc363cb
BLAKE2b-256 checksum
How to use checksums
421edbaf32e66ead2e7d856cedd743cca7baa980a009dcae709e1c0faadbbbd3
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.10.0-cp314-cp314-win_amd64.whl

Download URL mysqlx_connector_python-26.10.0-cp314-cp314-win_amd64.whl
Size 851.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
0dc556ca612d3ebfa2be9718db8f0fc816f3a7c79551853b108aea2a8dcd1957
BLAKE2b-256 checksum
How to use checksums
6fec8403abc0da6a48de33c484fb630aba2cfb4aa3eff902d39261a7288e51ee
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.10.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL mysqlx_connector_python-26.10.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
62df69e09c263f528a62916acc00cb1b1398d5352001e333e91bde446675e45b
BLAKE2b-256 checksum
How to use checksums
7e8a838cfc1f90b4daba8f4734f475cb0cc4e980bad952bf4b491a6e762acf95
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.10.0-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL mysqlx_connector_python-26.10.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
05a7b913883f08284bd27eff581eae34befc4806e1f19be93264e023fc24bf6a
BLAKE2b-256 checksum
How to use checksums
5d9a5ffb26d74d325e26b6ecc49c63d4aaa425de380bf2341157e2162ebd495b
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.10.0-cp314-cp314-macosx_14_0_arm64.whl

Download URL mysqlx_connector_python-26.10.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
a253bb630ab32e0a0bd984e87d2cb1c14602a407af44d2f63271480da2494a3d
BLAKE2b-256 checksum
How to use checksums
984c2e815645116f17a7de0062796aafb251c43c48051575b4ae59b61340a74c
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.10.0-cp313-cp313-win_amd64.whl

Download URL mysqlx_connector_python-26.10.0-cp313-cp313-win_amd64.whl
Size 834.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
81e179b33947dedb231375476e3e3fe2d57a9f533a8c633d7aa474611a1d08fb
BLAKE2b-256 checksum
How to use checksums
0c72bd19c3bf536f148715805b8803d8866291cbac660509be12a04814dd1187
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.10.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL mysqlx_connector_python-26.10.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
62fc79d0ae841264e37e6cf993b996b49956ee8529df4ac76a983f2b6c7e5208
BLAKE2b-256 checksum
How to use checksums
f660ad1a4b967022ae78ebda180dc386e29995c6c8e6f2636c69aac9aaee9d9c
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.10.0-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL mysqlx_connector_python-26.10.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
e448a33589d5549eee1abab95e3671f19bbf4f8b97b4f7de9856140cae1bb6de
BLAKE2b-256 checksum
How to use checksums
ccadc3082f1a021710bf5a7abb0c05a718cebf9f35d8c4186dd81887fd42d401
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.10.0-cp313-cp313-macosx_14_0_arm64.whl

Download URL mysqlx_connector_python-26.10.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
b9c3bac7178d7ec91e215ac3194c2100980f5d46a2756f75edab888bc89b8c52
BLAKE2b-256 checksum
How to use checksums
f311d03b35b01972df60cd9599671d56a14b6b84e5e4fc7d1d4aaeeb4554f1a7
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.10.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL mysqlx_connector_python-26.10.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
148f90e7de3e483f55c27e0ead2cba76436b4be4241cabf288f9bf14fb987cc7
BLAKE2b-256 checksum
How to use checksums
d5d10aadedb7769e8f711909f5ca5038a05b4d432181a2fec05a494719f0959e
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.10.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL mysqlx_connector_python-26.10.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
7e72c848d8081557d062e991b91e00555f2b3795e793fe3c778ad299f703e540
BLAKE2b-256 checksum
How to use checksums
a3c78ab5d0555204d2d762be34c38feebd0956c7c8dd2faf24370eb9543a56f2
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.10.0-cp312-cp312-macosx_14_0_arm64.whl

Download URL mysqlx_connector_python-26.10.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
ac53028c8d93d5e34c1dfb0a9762c794046a368a9da75b8286e0c7203b8af04b
BLAKE2b-256 checksum
How to use checksums
8efbbecac6dab8ec7ddcc57c0d5389d91e9e943d5d1724d7e57800e52237feb0
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.10.0-cp311-cp311-win_amd64.whl

Download URL mysqlx_connector_python-26.10.0-cp311-cp311-win_amd64.whl
Size 834.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
42e3939178db497e7b1ca7b057fa3b3aab64e6c984174b104817b9983d6ba7b8
BLAKE2b-256 checksum
How to use checksums
47f23593b94e9ce7e59c254beb32e4ba3d7fc041a45334b57ca98e0457154857
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.10.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL mysqlx_connector_python-26.10.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
6d33314ba6e38b6097ea047de1c7fe18804ab5de610b6bbc19b8b975b63b3fde
BLAKE2b-256 checksum
How to use checksums
967fc77f61560d3c7bb37fb4a8fbdcddd3ad3f89f7737b3ad616dd2cce3a51b6
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.10.0-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL mysqlx_connector_python-26.10.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
8545480f690f95f9be7378f7cd37d45b705a1507968157bd3d1ce77ca131d8b1
BLAKE2b-256 checksum
How to use checksums
17542efe434992b81f657f9c7ad8a724cfb2c126c37b4de4d0593c005010783b
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.10.0-cp311-cp311-macosx_14_0_arm64.whl

Download URL mysqlx_connector_python-26.10.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
a59fa15a9e1b3f08d216f04c4258e48a5e627beaee2e01f71046bb20e5a1c869
BLAKE2b-256 checksum
How to use checksums
66145c80f8caec6c21f2feafe64e329a9316e06c97dd54be5814b46cd8857621
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.10.0-cp310-cp310-win_amd64.whl

Download URL mysqlx_connector_python-26.10.0-cp310-cp310-win_amd64.whl
Size 845.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
f0b4ce094dba738f85fa06332ecaed3aa8082fbe7356564255f32a752a137610
BLAKE2b-256 checksum
How to use checksums
96927705e598a703524a179ec54b1152e4683467c8a4e2e4c32ce8b1929a56af
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.10.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL mysqlx_connector_python-26.10.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
73b7d52455d80d89ee2170f59dfd28fefe35399709a2549498f8651fa69202ec
BLAKE2b-256 checksum
How to use checksums
bcbf424b4f2a527d9397489e6aea8f14e751a62092750ab72c4f7bbdc6708953
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.10.0-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL mysqlx_connector_python-26.10.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
4babe1b988674c831ccf5fd771f649fe88ef03c67c854a2d7c733954af933822
BLAKE2b-256 checksum
How to use checksums
79867f424760d7bdf3f4a48236ad7a4cf7f381f33497233b865b210ab79a845c
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.10.0-cp310-cp310-macosx_14_0_arm64.whl

Download URL mysqlx_connector_python-26.10.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
4e723272549454b8bfc450984e1d687053ffc531a8481615e8cb0150cbeb4294
BLAKE2b-256 checksum
How to use checksums
2bfa5bdd727d1fc40cf8c6837bcfe82e08450d412ca4cbaf0a84b9235e618c19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for mysqlx-connector-python 26.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page