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.7.0.tar.gz (374.3 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.7.0-py2.py3-none-any.whl (224.4 kB view details)

Uploaded Python 2Python 3

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

Uploaded CPython 3.14Windows x86-64

mysqlx_connector_python-9.7.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.7.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.7.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.7.0-cp314-cp314-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

mysqlx_connector_python-9.7.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.7.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.7.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.7.0-cp313-cp313-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

mysqlx_connector_python-9.7.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.7.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.7.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.7.0-cp312-cp312-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

mysqlx_connector_python-9.7.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.7.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.7.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.7.0-cp311-cp311-macosx_14_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

mysqlx_connector_python-9.7.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.7.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.7.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.7.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.7.0.tar.gz.

File metadata

  • Download URL: mysqlx_connector_python-9.7.0.tar.gz
  • Upload date:
  • Size: 374.3 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.7.0.tar.gz
Algorithm Hash digest
SHA256 f314425d2b00ccc0d2f5ec8bd8c5a211d0a43197eaa87d453209725dd117b5f1
MD5 ce5e58fda81398707e92dcc6a31e03b1
BLAKE2b-256 0712656f6d33c1fae8fd87a5433ee20bb6c2834b04e0da366062c9fea9020797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2fe3e1450bd98e323470ae4a3e8a201de9b1da01c425ccba042d99f6ca419b74
MD5 180cf5b8f4f3201216cda152da632137
BLAKE2b-256 cf6300950a381134738b01a940c14802361c238b1f33d822eede605db6ab8bbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5ac556c8547804ec770d0a794a45889ca187d46d5ec3456fe556b2b55c6b1e59
MD5 eb5b80434f5520b2764f680c224e7f5f
BLAKE2b-256 7702b6fd36e71590c36d44ec808896cb8485634b78bfbc63e18e933da91164c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b03f49d1e70c4d0c70e229e37a24e8cb9b3b136a537cf02797e1fbbe487feeca
MD5 3ed49e1b33ac703aa34b3666af300099
BLAKE2b-256 4ebd1917d27e200e9a0e7ca96dd1d712444d4c833aeece460a59c09829029899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 260f5a1590e23a57b970dea0148550da73abf5a99483ceb2bb4c2fa79efd428a
MD5 ccbf06790e8df4849e28f625ee1258b0
BLAKE2b-256 8f42122311d6eb1ed48f05811d0d1db786c22b3eacb2db0a9d8a88ba2984d09a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp314-cp314-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 e3a6862ab293e686a92233c62badcad49f80733a005912b050cf7227219894c3
MD5 c5dfa65d7e72de66bfd59aa6ba52bca7
BLAKE2b-256 3d213579fd6e2889dc1072ed22bb5c790f5049e706f3b3a760aa869394d03aca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fef3fa8cc2806febc16f6c8ed378e2863d35b3ee5b72c2b1d744e821fdec7b9d
MD5 0005d42f2870166f8e862d6e7c143f24
BLAKE2b-256 57d2db24c508ae52c9bd74c31917bfee23e6b9df3d58e6c171fd890d189c81aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4947b43cd07560c7ba3d9bdc6fb34fa1b46bdc7f3bc0169be6054a492885a8d5
MD5 63c1ad9213af2499deffd3057294481e
BLAKE2b-256 ab148060c14f4083dc89aeaef7f8c4538e004060153335ead94f350bec58db72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 006a96cb26fbe0633acbb20e759aeae08550442bf1512ecb5409cb0bd9fddb72
MD5 354986ed8db2a96586566d27381e8bf5
BLAKE2b-256 40936c7be21307a3eccf4d15448cb0175ea7359733dc1dfcbd1f7c2442f621fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 69f0dbaeb943056a4fffe21bf1c289e41f83b5f7adce68188552312fe1b0de41
MD5 9db27d40e5e32ab081012926c8545488
BLAKE2b-256 fc64178e17f58bd1018afa533d65a3b38af57bf55902baa5608f8bff08b74cff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp313-cp313-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 edec5cd06f0a41763a807a63586b27f02e038b7c8d07e9582449a645ccbf1464
MD5 2cdae49ddf1d513b309c0b5b04480f9d
BLAKE2b-256 eb7ce76ee675292de2e012c47bdc4c0f77bce80f1013dbef2a89ab3d9f8ad5a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 464f786b6f499ddf5b11e1a2927c1d8ec6a88ba1abde5abb4c1260ae3e3b7016
MD5 d2c026ee1e8c11a8460e2ab3ab509bc0
BLAKE2b-256 72477cf6fec051b2a7febaaa8bd3e21e1ca97fcfb7c1a2523c4739c53a1c30f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d917065a5da764b6d2779eab97e3f54eb84a549d2e6e5da056fbaf63f963e27d
MD5 09b7771f4041c866cf793a179a98806f
BLAKE2b-256 68c9dd2aad3b792f98fb3a9aad326292017da7ad1a185fd09999b2747e205d62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2019081a5af60690d20510805d695af254ff03c6d794bac9fa5ac25c98f7c251
MD5 79a189a24f4af04d9c4321d4b7445123
BLAKE2b-256 63fb9dc797d9d4b33c8d6014255813cbae6f935609e7366a64a441722e6274d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 55723fb4a787854c964588dfea5566b2a6c70b1707d4afb009d2a77c6285df91
MD5 ba6d6dc12e6a0b4df45b30feee1ec7c4
BLAKE2b-256 c27ee2b11c47dfdaba0d99f14d50d25690563d3bacdfd918af32b3070f577822

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 96eab81fe927407add3f194e0c8a7b10786d73ba7405541405d30652162ddffc
MD5 e8f5a8b9031a9b7e72519c7d0dced0c5
BLAKE2b-256 e1cfdf16c0be259521dfe1c24f1dc3a1578ad67b7a241e95201ce80d1c6e8b99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f5168f36eeeab4002a4af14a46c3658f5a91059fe17ef1120f51c60a3e601027
MD5 73201db061e8e3602d1d886260debb08
BLAKE2b-256 b224dbebd5a6eb9dc7e05deb173d1d844191c54fa5aa5164d1ecaa67aa9cf304

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 334c1edbf2473692e66c34fae500b8ef0cdef6626d6bba6c01be7ed70f6c7599
MD5 86d97fbba9b9ae4601640ac88d2506fd
BLAKE2b-256 8e60543318d1e2e32e408afd1099acde9f5f10d8bf7e94bf0de1e83df3cde917

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 021c60df3755cc64112de730d87a3216f18566f32f9f1c76c3944e0bd9c9f054
MD5 57a8892a4230cb89f851e8daedc2ec98
BLAKE2b-256 d6c8f963bb0d508489825236b41a83ae5f3c156a4759910033b8a7dfa7f5d89e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp311-cp311-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 744fef5791ca7cd84cbf815b561a428e2745983a4330f365e4217df7e98bec47
MD5 786e74c6a0cb155bb3816f6ffc87ceeb
BLAKE2b-256 59acb260b08b6035f945434fa107ccc50fe1b83f418130461accae59265c8fde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 723796ec69bd5d4ae65c96a7efe02a6d3fa1f8a90cec8dcc24570964d654cac0
MD5 f5f1173413d3cc083ece532c6a6adffc
BLAKE2b-256 9d38de813f3e1995945b568960484df4fc424ceba709d7abcd1cf99fa674c804

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 15f17b76b6fbb583ee63580024f3ab2b05f1cffe815c713384f5476e46294d8b
MD5 c005809015fc411fed23b04e74513b2f
BLAKE2b-256 999fd13f00e937db4fb77f5c47c1835ba0a3f8654626f8633cd711687e74fb00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 32529738238e64bb554b657603da24eadf9f3c38ed11939528ad0f4f9d03a0e5
MD5 cc6ee13f761dd7edb32b5efde3265dd6
BLAKE2b-256 a1532351d9762f5870b549e279c0a8e79ed9420ab90528e974070767f7d8b0c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 248597860247dae61e6c14e2f5f00afdb8cad51941900e8de04f2eac0e47ba19
MD5 4a438e5a1672d2b1c82f12c6d656ccb2
BLAKE2b-256 fd9fb4425f051a71963045abb5f6e8742a691eadcc27e456f9c88cfd05aede62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp310-cp310-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 b0bd4caf4bfc521e95079a9741e8551314e172638f75bbd244d577643a1d08c1
MD5 e3596a4739f3735a9a650170028f2f7e
BLAKE2b-256 8f6086ab0e15b0144003bc9c0a660564028d80aed5394c40494feab7d6ff1591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mysqlx_connector_python-9.7.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e6d78151cd38faca3faa5c3f47ee21b82da41c59bac71c31d409caf84fba9045
MD5 0c52d48d93fd3654e96d086af9b70f01
BLAKE2b-256 c03fbdd09a4b51c885a6e5eaf5c7ea095701a1b2869d04f41218ab2ef9ef7444

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