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

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

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.6.0.tar.gz (374.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mysqlx_connector_python-9.6.0-py2.py3-none-any.whl (224.4 kB view details)

Uploaded Python 2Python 3

mysqlx_connector_python-9.6.0-cp314-cp314-win_amd64.whl (851.3 kB view details)

Uploaded CPython 3.14Windows x86-64

mysqlx_connector_python-9.6.0-cp314-cp314-manylinux_2_28_x86_64.whl (21.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.6.0-cp314-cp314-manylinux_2_28_aarch64.whl (20.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.6.0-cp314-cp314-macosx_14_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.14macOS 14.0+ x86-64

mysqlx_connector_python-9.6.0-cp314-cp314-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

mysqlx_connector_python-9.6.0-cp313-cp313-win_amd64.whl (833.9 kB view details)

Uploaded CPython 3.13Windows x86-64

mysqlx_connector_python-9.6.0-cp313-cp313-manylinux_2_28_x86_64.whl (21.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.6.0-cp313-cp313-manylinux_2_28_aarch64.whl (20.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.6.0-cp313-cp313-macosx_14_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 14.0+ x86-64

mysqlx_connector_python-9.6.0-cp313-cp313-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

mysqlx_connector_python-9.6.0-cp312-cp312-win_amd64.whl (833.9 kB view details)

Uploaded CPython 3.12Windows x86-64

mysqlx_connector_python-9.6.0-cp312-cp312-manylinux_2_28_x86_64.whl (21.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.6.0-cp312-cp312-manylinux_2_28_aarch64.whl (20.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.6.0-cp312-cp312-macosx_14_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 14.0+ x86-64

mysqlx_connector_python-9.6.0-cp312-cp312-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

mysqlx_connector_python-9.6.0-cp311-cp311-win_amd64.whl (833.9 kB view details)

Uploaded CPython 3.11Windows x86-64

mysqlx_connector_python-9.6.0-cp311-cp311-manylinux_2_28_x86_64.whl (21.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.6.0-cp311-cp311-manylinux_2_28_aarch64.whl (20.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.6.0-cp311-cp311-macosx_14_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ x86-64

mysqlx_connector_python-9.6.0-cp311-cp311-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

mysqlx_connector_python-9.6.0-cp310-cp310-win_amd64.whl (844.9 kB view details)

Uploaded CPython 3.10Windows x86-64

mysqlx_connector_python-9.6.0-cp310-cp310-manylinux_2_28_x86_64.whl (21.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

mysqlx_connector_python-9.6.0-cp310-cp310-manylinux_2_28_aarch64.whl (20.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

mysqlx_connector_python-9.6.0-cp310-cp310-macosx_14_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ x86-64

mysqlx_connector_python-9.6.0-cp310-cp310-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file mysqlx_connector_python-9.6.0.tar.gz.

File metadata

  • Download URL: mysqlx_connector_python-9.6.0.tar.gz
  • Upload date:
  • Size: 374.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for mysqlx_connector_python-9.6.0.tar.gz
Algorithm Hash digest
SHA256 c7df9881a2eb528f90984d6a2b0fd9042e9c0e6dc0f6f12cfbb262dd48c8a03a
MD5 f304975187445469d880d092b66860ae
BLAKE2b-256 19914c62bb04f6d9714546dcfc0f15605b6587fc2ea090649c49fcf54167634e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 913f48db0ed7a558fbbfa1d6eb688825c100614019cfcc7d3eec9ff638a8eed8
MD5 c26ee1ed12fd36801b044d4c9e0a4674
BLAKE2b-256 a67174ea8bf95c27ffe80ff43ff224a77aef1d3e5ef0cc6bb92e06b0ccefc97a

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.6.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 bf14f785411bbffa3af7f26faadfa1ef577d29a69e8f98ce9f9a8cefcb87cb48
MD5 fefa75220977398202de82c7af130c81
BLAKE2b-256 b54e3fedff63d5f1a71b84f1ddc5c9a9619b02add5abc3a655548fcebbbff4eb

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.6.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e9d956ddfc0c971cd5fec62e14ef280d95e52b362710487532342e5e43d3a0a
MD5 bbc93949b7e6a624f43af3c53af5cb3f
BLAKE2b-256 6f71725d32e7c8d25e837fd9deaabfe440927913cd5fa15859c3748961438e10

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.6.0-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1fda2e4c501331cd6fa378c66328f191bb304437570576333cbd2b5d26315965
MD5 93faad5d37b911badf74861d030268aa
BLAKE2b-256 16b964f4d91facef8f22cb7869c8438f23055b179e57989feb2e4968db3d7e48

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.6.0-cp314-cp314-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp314-cp314-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 c1bbbc6b42bc30f9c234bfb75e1f4aa8571c4cae76426ec9c10c9391fcaedfca
MD5 d4accddb7e568931b82d35fff86acb21
BLAKE2b-256 a1f6fe1335c52c4f0a6e7b828d5db59b212d4461d5f68c0cdbc53d745ec90389

See more details on using hashes here.

File details

Details for the file mysqlx_connector_python-9.6.0-cp314-cp314-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 efc920167256b73277a5b77236fc9006ef9785c9cd1d23a07ee8f5f3f79ffe4f
MD5 4e7cb700effd790a481087528f7d67a1
BLAKE2b-256 b961e09e3b498159079f047da50999f1384d554dd9f0063dec9dd16b2072d0de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1a4b4af3e18bcab49bdc0ac9584cac895ce28dffac7599db73e9724c910010bf
MD5 8697da600f8e6e2a6a03042b3eb106b2
BLAKE2b-256 58bead0e85c817a399fdfe1a32f15be6ebdd7f814f7f154154130128dc352bc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 837a06d9fcd9cbe8f912b9edf684b62483cdbe8cadef3ab6d18f3d75a08e37a4
MD5 212cb89fb5151e7c188919faf290c56f
BLAKE2b-256 62ed753534c85ca875b699b2c5836a4a527fab28d00fc9ea26bb7341bd70de99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 07d39f3cfd8384111e3b2b3661f5ce0055f0a0a01c8db87fa2f6cd93da5aaaac
MD5 0ec74b4ded6aaf256b99a69b195afa62
BLAKE2b-256 2ad246c8a97eb898169ffe306a411a1f54579f33d5a6ace25a1c0ebe9a3ba2be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp313-cp313-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 7a7ed60c4530356f659acc37fc5d357fc3c0b684d598eec2eec62e74356c7ed6
MD5 6519e2e3a9fb128faaa39333c6c67198
BLAKE2b-256 257058c18be4a08d50a49abdeadbb5ac5653ac6a1755440251db51349ac4b7da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 36e439ae38070b8f995990b28aee9c95b193212014a24fcc7cfb6512a0b64337
MD5 96e8388dda49018d6e2902229fe1f135
BLAKE2b-256 2f54fecc77fb96a7816999cde0a534af14c58cfb544e590b7669a26152a9f4ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 731fd730d5e5c4059cbfd2051abe13c950a4f1c00d1ce63b89789e120d5525ca
MD5 09b4200b3632a5c7eea809c1eb602a22
BLAKE2b-256 0d7e97522988b99a6d04233848cbb278a0d1c8b39183adef35f3d7e8dcf1333e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c7a0e655bf587ba16aeee6fa85ae9fd7fe90ee4c1385612b0b47806ac2adfd75
MD5 74336495b87dbfcabe057b3edc70ce7b
BLAKE2b-256 60335b25d0150ec2f9dae23a91d8f8195806b71564821d79a0eb5633925c018b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f6a42db18e051fd332bdc62683201d77a69367c89044ee26ce85c270a6ff4ef3
MD5 dc2004467ca71ec87be378a3c76e8fd8
BLAKE2b-256 8d202e1e19aec44dc53e71dc7e7bb454f01d2c36bf81cceebc94b0fffc5d99e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 bb3261e73d7c1f4ea4d327284ade3498f21f4951fb8b7b871e4bd738ee118d3f
MD5 979838706e60160b27ef4cb28191088a
BLAKE2b-256 3820ad89a16bce26ef1db8b0c9752c40560b6a0b41c09881d57365bb5da26adc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6fd6b3dd94c7dc523c2641b3fe16e94f4607abc57a4ee4dbbbd727368093108a
MD5 b546e82dfa544510826e159ff577c2b2
BLAKE2b-256 0ebf694170d6bd8148ef7ef239938bd3c1fe01e110fdf6a684ded627c37163ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 09424a71c29a28c715daf098fb70c5c7ebb5858585632c742715c8bcfa5ea01f
MD5 d7705dfd0944eb90db62cdea64fa225a
BLAKE2b-256 dff2ca8d82bc3bf9a1f4d876896efc49ff5258bc34f81406843ddcb3a75bb3b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1cbae061ac19ffc93efa06280b380418c53ea69dcb23c74b6fac4a5799e5d66b
MD5 759e18898cb42dc75908445acd208dc3
BLAKE2b-256 1490c282c4cd4d30f64447989795363d785a8410bcd82eb7646a9ab458bc95f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 133a420497085dfb190a225200f064a6e42cc04d7e3c754d34c5a5e7708d21e4
MD5 b852eb0d737d8c896c6f1fe429802a47
BLAKE2b-256 f29a45a970a5f60448e7ec6c901a6107a34aade10a39f9f65ad8e559a7e243f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp311-cp311-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 620e8033d2c7e78a981ced6d1978c71934dd66ac75a2e997abed4a65140e59cd
MD5 108bc7dce466013d652b1783208e2996
BLAKE2b-256 6d65a142d0084f9dde7adabb3b0949ba7f02c9fad885538177f0f68795ba13cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 79b7a6f05eb71f4e2c741e29fc2df8753c764ab6852476d3073cedb593e3b094
MD5 2a029ce3637e6ace4778dd2cb4c93f33
BLAKE2b-256 b554858c7f5592e2c606b608605505b9c9c7dc77e74033b4f3608939cea9dc96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fc7cbdde32d5bc22da882721f96c3ddbd5f21fb9b3a294da4c35f7a3a5676fc9
MD5 788caa854a8f2fbe020566b80a7494d9
BLAKE2b-256 537504cb810799a81e96dd8a68710eaac83b4102c18324160b5adf50c7670abc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c355f8f069525baa070a59873d6c2420cc591374221f5c90a2f45f0a3637ac73
MD5 118d8fccbd2aa7b609e936cfcda01f6a
BLAKE2b-256 4f6052063222df15dd950a2a0892c9332bc538f8d362927e00dcfb576f4edb85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4b0dd64a1b5193981936a32237702783d888555952461dcfe0ae54d565f7e51c
MD5 d56cbbb80ee6f0e699d3799c447e5549
BLAKE2b-256 3c8aa31d3535b0e5c64a9fd18d2e3468d711408c41aab32055b931238399834a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp310-cp310-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 78466a017b8e853910c40596d14a68d73e0acb307399b2631744b25484a95936
MD5 ce88dbda645488929345327a33918c47
BLAKE2b-256 91e60d45611779e6d02ad9e07f105b9def33fd6c24af7cc682d4b27b285be680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.6.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b87e3de2191184bc40f65c58c57cbb541aa66a049b94cbd0f756ac74228bac6f
MD5 672c200c45fad7cef3cb614f3457a461
BLAKE2b-256 9a0e8fe7990134297a1a1488424504f7cfc47a7dbe50d9e747293c96a05942e8

See more details on using hashes here.

Supported by

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