Skip to main content

A Python driver which implements the X DevAPI, an Application Programming Interface for working with the MySQL Document Store.

Project description

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

MySQL Connector/Python contains an implementation of the XDevAPI - An Application Programming Interface for working with the MySQL Document Store.

Installation

Connector/Python contains the classic and XDevAPI 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 XDevAPI.

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

Contributing

There are a few ways to contribute to the Connector/Python code. Please refer to the contributing guidelines for additional information.

License

Please refer to the README.txt and LICENSE.txt files, available in this repository, for further details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mysqlx-connector-python-9.3.0.tar.gz (3.6 MB view details)

Uploaded Source

Built Distributions

mysqlx_connector_python-9.3.0-py2.py3-none-any.whl (196.6 kB view details)

Uploaded Python 2Python 3

mysqlx_connector_python-9.3.0-cp313-cp313-win_amd64.whl (784.8 kB view details)

Uploaded CPython 3.13Windows x86-64

mysqlx_connector_python-9.3.0-cp313-cp313-manylinux_2_28_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.3.0-cp313-cp313-manylinux_2_28_aarch64.whl (19.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.3.0-cp313-cp313-macosx_14_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 14.0+ x86-64

mysqlx_connector_python-9.3.0-cp313-cp313-macosx_14_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

mysqlx_connector_python-9.3.0-cp312-cp312-win_amd64.whl (784.8 kB view details)

Uploaded CPython 3.12Windows x86-64

mysqlx_connector_python-9.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.3.0-cp312-cp312-manylinux_2_28_aarch64.whl (19.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.3.0-cp312-cp312-macosx_14_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ x86-64

mysqlx_connector_python-9.3.0-cp312-cp312-macosx_14_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

mysqlx_connector_python-9.3.0-cp311-cp311-win_amd64.whl (784.7 kB view details)

Uploaded CPython 3.11Windows x86-64

mysqlx_connector_python-9.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.3.0-cp311-cp311-manylinux_2_28_aarch64.whl (19.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.3.0-cp311-cp311-macosx_14_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 14.0+ x86-64

mysqlx_connector_python-9.3.0-cp311-cp311-macosx_14_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

mysqlx_connector_python-9.3.0-cp310-cp310-win_amd64.whl (792.5 kB view details)

Uploaded CPython 3.10Windows x86-64

mysqlx_connector_python-9.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.3.0-cp310-cp310-manylinux_2_28_aarch64.whl (19.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.3.0-cp310-cp310-macosx_14_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10macOS 14.0+ x86-64

mysqlx_connector_python-9.3.0-cp310-cp310-macosx_14_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

mysqlx_connector_python-9.3.0-cp39-cp39-win_amd64.whl (792.4 kB view details)

Uploaded CPython 3.9Windows x86-64

mysqlx_connector_python-9.3.0-cp39-cp39-manylinux_2_28_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.3.0-cp39-cp39-manylinux_2_28_aarch64.whl (19.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.3.0-cp39-cp39-macosx_14_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9macOS 14.0+ x86-64

mysqlx_connector_python-9.3.0-cp39-cp39-macosx_14_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

File details

Details for the file mysqlx-connector-python-9.3.0.tar.gz.

File metadata

  • Download URL: mysqlx-connector-python-9.3.0.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for mysqlx-connector-python-9.3.0.tar.gz
Algorithm Hash digest
SHA256 29c30c29043bfdb04fd9b05de4834421c97c09d67bd7c6279c5e448adf5c4d27
MD5 fc8fafbc482203d1f3eceb7c7a8a911d
BLAKE2b-256 95d1ddffb5aaef471b829c769f635ebb4e5945678473786a60cc1509ca4f85a5

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bfb1a1561ed47b78cf0c7a878a2ce76168d5380ff812d85114c4de16d245ac31
MD5 db1d4cef105c32c302b079460c1c4073
BLAKE2b-256 0d4790067729222f2005025b55e2f798682641459d483da7677ace79ae0394df

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 50c129559c22150049e03751e538b33b7f242a9c1601cc728048eb8f69519799
MD5 02fa3817497aa56de3ec09e5fc32c610
BLAKE2b-256 316b15e51494a6416739dec16da1cb282bee3aee6e3dec93b550f5aa1593e9fb

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 82522c3d9305d303d8a3adcac7b270801c3684abd37495e46d062a1323d7632e
MD5 151648fd58b0553ec891c36d50c2592f
BLAKE2b-256 70dd760fb2cb0c94c971c0cd8c64cb063f2d24c5c43ea827c37279af931ff8e1

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c4649c4fe5126d5963dac8d3be7460fcbf2999adda969c48e8aa9fe4e86ccfe1
MD5 39032c21d8feb1f74db5d7e5187a9fcb
BLAKE2b-256 7d285f445508c263780c3d5cafb705f4ee42cd9c3ae186191d4469560b4b71fc

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp313-cp313-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp313-cp313-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 13578dabe613e786285e1972fcedf029079610e4c2032ba9cbbabe2a1c03ba22
MD5 11b83e3d8c28efeae7f9bd98f35baf26
BLAKE2b-256 505f1186a971a3047b9c2a556f581e7297659d59d1a6a5f79fe94cae03a8064e

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a23039d81081031ac289060ac9bbdaaa9565c539568ef8407806de23a605ebc0
MD5 bd20a501d6a728129f195057dcb8c5e5
BLAKE2b-256 141c6391ee3875d1546ecc2581510de7dcd5a480aa27b2c95c843d6f5a692619

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 217b9df956c2be9d33288f3c2394ae4f65e2d33fcb0846ee5e81489625488ce9
MD5 60338230ac073c4f523e0fedfd179d55
BLAKE2b-256 2d68cecec39ac1a04a8ed2f70781421efc6810c65ce3f66266689ea0ddb14a34

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8c552114ef5a6e22f18897d2a7ccf4cb417689edd9f741145e9590cf906a226d
MD5 27d0c0573a2229350bebc511439fb500
BLAKE2b-256 df5b3f8f7b65f0bff86298908b80cc007b90fb11d6a1fb0b0c1969d41bfd9fd0

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ca10747abf6d9cc0109d4372919ab18a040dfe454ba53dac7d381957cf5ecc56
MD5 da543897b1a2288013a5221a9f98684e
BLAKE2b-256 57f594cbab3c07c2d1feda4f80456a7e0187947ed6472f06bb403f994f0949b7

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp312-cp312-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 f56203072549781d42732272344ab4fdf153817fee484453ded661c648056f8a
MD5 bb23ad8e2e21d694abc2daa2c3c0cc6d
BLAKE2b-256 1264890f55c00c4656c9e4829f253322e21f98303b26d7bcf7e5a59ae25489a7

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c838122ac6051a77a3a9e555778fdb978063d1e30b41a4a2c5f99fb008599969
MD5 8ef90ca0fbc1ddccdf63b579b1425460
BLAKE2b-256 ee954f7095f0a9adfc7a0331494e8f468b857e2064a1a7f2cbfd51483d9cf715

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f112dd8170df872d3c36cd2371ab2ffc726a91de70a76f29a0c26af0f5f0a677
MD5 b909cd58bd61e68d4a2b7b5adda0ad7f
BLAKE2b-256 98734d46a9d0bb3b7f3fec5b551bd774feb833701789f48a9434275e2c8697a2

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d65ed89fa0ef98f788c7997684d0c4055f1bd25f3ac1bf0130da2c9a9dfadf50
MD5 14709f9c98455d84ce4a6e63b0e20d17
BLAKE2b-256 cc4ed114b111498fa41376e5a76df91aebe55b9002306a6cad3c125aa0536972

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 91a61b1a048f5657a4a2dbf8be8c8908b5d07ec85fac0a359907d945320eff16
MD5 b7c57e1627d34c1cfb95803350fbaf2b
BLAKE2b-256 24ef796860c19229b7b1e5cb88732a247aa79dbe09972ff7f4513e364d0c49e8

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp311-cp311-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp311-cp311-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 a74c96f58fa89d9546789a8292e5f5bc8142f33b48ec3bee82fbe78f21722d92
MD5 c39c5956990723d25337099bb92c2360
BLAKE2b-256 73c6241c02f3622946a91e87e2ecef883f33f895288e88bed7b18de00bbd7128

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c98faf190bb5daf1ad46a63c85a89b606c17dd063e0fd45e63f15182b708970a
MD5 42ed653f33605236d86123dab1e6b04c
BLAKE2b-256 6c7761f348e6ffe00e8716704560fcda1480bd0d275db7008bfefbd5e4328803

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f59b1b79f96c0d5ff22fd3c40c0f740ee9809e1d93ac58becc915305c90b3ad9
MD5 c9b5a0d069a2389bf5930e7dc91aa6a1
BLAKE2b-256 2d93b6cbd09771715b9cc0dbe966ed26ac1aa7191869065bab3ae81809452f58

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 58e8340de3d283aef1ab035fd857d23cd884c8a4135d554a8e5cc6068cfd6f80
MD5 e9942a3d805c2b1554312900d5c1c8bc
BLAKE2b-256 01bdda39b265a52d18821800bca3af5ec58a6035d8b7e2c68a01c61336d1d8c1

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b3bcf8463e1773c861e3618579247d1fcffb78eefa37af8f2988c82ed896aff5
MD5 d48b17205c9c9f3e518b72f13969f94f
BLAKE2b-256 10d3ee487e1410971d39598e832aab9881d24d017c64063b48bfe832a6718839

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp310-cp310-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp310-cp310-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 8debf06a2a3156f7d8f28315fbf1645964995a33cc8aa67215ff7729e99e9121
MD5 b692cd8c598dd100b808d4543a125c06
BLAKE2b-256 ecdf3e17eab8a284ca4e0ac36075bdca68b4792275e094ffbf261801a885ca41

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 994a8e26f62cae21901b256f52fed7207a7996d4b249d9170991ce97c5f79251
MD5 6f5e30d9af4a03dd6d106c77d23dcd45
BLAKE2b-256 96378cce7fda31bd2ac9ce82bb8d9b464b2e1a74c3fb744b43b18d7e1c368f7e

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 60584cd740bbb740aeadf3e19b24bb0c4544c968997196efe146a96000a9460d
MD5 6e1527d89cd471f13f32ed0326cd2dae
BLAKE2b-256 eb7ef38cc3a68bee2351882c20fa46a5f8fb633f3cccf5f09b4cc804d8f3be42

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c7fbb4d75bdab2ea8cedef7d6597af9dbf4038931f3348eae4133ddf5d98883
MD5 fbfb065e3bb7c7de6d6c3919128e4723
BLAKE2b-256 9af426f199ae351f22c2365db0daf01c8a5edee1d94db177e0476f9b195373b2

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 df63f68f6494f15f6496eb68faddf59b420bdfe71f094e5f0f0dbecbc273d02c
MD5 8012f6a949c9f4a951c01c35a04711bb
BLAKE2b-256 831b3623b58fd634d54f3d5a69afac7a24204a2b8cc4e8c5ee09b58d4aa42595

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp39-cp39-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp39-cp39-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 7c44110687826539705cfc149d4c30bf46276f8e3b6dadfc049e79fa31993a1f
MD5 e3f329d0c446fae43c1e7bd852082896
BLAKE2b-256 ccf7ee1939b14d6d3619d0d7391a01daaab3e9049326276747f0fa06ab1c0a30

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.3.0-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.3.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6163f122e6f67f8457aa9003c51049481698b914e5a00cc8c3a9f27b1dac6e72
MD5 215c305d78f08f0b4cee189a9986c5da
BLAKE2b-256 36d85d0379d9c412b7c74a916f535e6035e01740cd93ea58e911a4e3f08b08f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page