A Python driver which implements the X DevAPI, an Application Programming Interface for working with the MySQL Document Store.
Project description
MySQL Connector/Python contains an implementation of the XDevAPI - An Application Programming Interface for working with the MySQL Document Store.
Installation
The recommended way to install Connector/Python is via pip.
Make sure you have a 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
Built Distributions
Hashes for mysqlx-connector-python-9.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f840c25add86c04f14327323ed3c1f33041861ee8910249d72b59c31797594c9 |
|
MD5 | ebd4927ea36eea4328ab41d9063fb84c |
|
BLAKE2b-256 | 720af00a0a600b848d8cb15b9584e473e0fa27d4738b73407c2fc4452da07e4e |
Hashes for mysqlx_connector_python-9.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42a4e4ee7921c7b6bbaffa8e712c4e2fb6f68f1f684a616739d4699814f70a88 |
|
MD5 | e0516fccc54a0006e3bcb161cef9fda7 |
|
BLAKE2b-256 | 9540bd01cb8f3d88caf03703635023fa5aa9ce457fd56b3499451e952e01d624 |
Hashes for mysqlx_connector_python-9.1.0-cp313-cp313-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0808ff4f3a6bfc87e29868da2f8aa6a1308c4299b99e424b4e1b58f06314b56 |
|
MD5 | e1a7ebb86c6b66404d761bb8372d201f |
|
BLAKE2b-256 | 9814347779eaa9434c7b6cb1839989ab5f90e6ddc8af31065ed58ce55525e1f8 |
Hashes for mysqlx_connector_python-9.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56438125cc7c921747f289aabd0b91afed863a18e376d454da427c19c7bcc970 |
|
MD5 | 8b7eeee7a1a8e36140da25c13106a6cb |
|
BLAKE2b-256 | 55070b5f78b0ae2f0669904f331cd6fb55fcfc4df5dee3617d571fada4a3727f |
Hashes for mysqlx_connector_python-9.1.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcaf5f68cdf18623d57741dd02bfdec9c9cb3243182d6e1338865438e029762d |
|
MD5 | fc3a4529050af786d7a5feef75b3b091 |
|
BLAKE2b-256 | 908b6625f1d56a8de5db405e7a21d7e05fe6d95e3cf92a1aab110d3c0422a751 |
Hashes for mysqlx_connector_python-9.1.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d92bf9bbdad11d89b24363a97d6701f3d6fd571101978545df3918f2554034f8 |
|
MD5 | 5ce2b414fa30ddf0b05a5636f76d6ab9 |
|
BLAKE2b-256 | d52e9c8f7d1fb38b52b9d457f19c348b6167c89a6da57b44faf671fffff27095 |
Hashes for mysqlx_connector_python-9.1.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a709b1d25e62ff6f759367a30a975c909dc643493c294ca444c440151c9c6ec |
|
MD5 | ac258719be8bf33cde0b2228e89bc1ee |
|
BLAKE2b-256 | 13cdf1492ced3cfb6373935f1121f47c9bdec150f183df66dec321a7bd6bd767 |
Hashes for mysqlx_connector_python-9.1.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff68a7a07d7230924a8294cdcaef78d1dd0593ca08c599d84f6237dee394a6f8 |
|
MD5 | e27c9bbe017820c71c9250b24746634c |
|
BLAKE2b-256 | 997ce089c07361fc38dbe716e7eb5b03a953c850a10284663a525d87f59e76c0 |
Hashes for mysqlx_connector_python-9.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 318d23d1ee6f2c88d1d83f205f31dbe132ba5f0772fecf98ee2e02ec8f71ecec |
|
MD5 | 8665e47348a35480d7b435a5000336c0 |
|
BLAKE2b-256 | 448dee408835934ae011e9b48b4a36f8e6882466c904102faca8940d6c80e9cf |
Hashes for mysqlx_connector_python-9.1.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c64f41b14490d7da45952049dd8b2ff47ad37295eabd6c532e1763479da2186 |
|
MD5 | c854dbedc5eb1891bba5ed3158532f25 |
|
BLAKE2b-256 | 3ee107356e0d56446556bbf2b657a51720c861317ef846338aecc6fe67fbd955 |
Hashes for mysqlx_connector_python-9.1.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a965766d9bf15cf9eb9a524f37e832aa63231e2a4355d7e81e9cc1fcb3e4887 |
|
MD5 | b0365effce1e69a5e295e1e3e6e888be |
|
BLAKE2b-256 | c686e01e4829c97995b68777022e42c46fc39efb8200daba0c1b108c8dffaadc |
Hashes for mysqlx_connector_python-9.1.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e90c02c0d2b676350d2d4db90e9948ef33b4ddd6e608156943bcc172463eae |
|
MD5 | 6c5fa26f0d4098ad7efe96d9bba32aa5 |
|
BLAKE2b-256 | df6286d561ae129b86c4d8eead66f6d96932fc61102144ffe7dfc19dff2f6b70 |
Hashes for mysqlx_connector_python-9.1.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8207e61e8aef6aef4ae5e64a1f9c16cfa3ef351b95abc5e0206e70f1e25088f |
|
MD5 | f2f5a247f2326885439c34cdbd17d021 |
|
BLAKE2b-256 | d6b4dc3ef9f315bec53783491ccff35a8174234e2091d35534b596c1a1c29815 |
Hashes for mysqlx_connector_python-9.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bc80a4938147f6ebf93507f86e644f2cf8eb2c8afc326ac68e5d75ff1c7773a |
|
MD5 | 12c0e7b223a5c1da8db8ea147d7e7353 |
|
BLAKE2b-256 | 54b904ff783c628dbf90e2ea8f74ecf57d1fd84c26c1914e4c70b30de27ac500 |
Hashes for mysqlx_connector_python-9.1.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 726995b707698f18f04f6444d51133f86c5bb258583ada9b336360a50a587918 |
|
MD5 | e97588de527f131ebae1ef5355d0ff7f |
|
BLAKE2b-256 | a5182f444da8a03faec83723fe9830812889d287b32ff40664e726868d1495a8 |
Hashes for mysqlx_connector_python-9.1.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90682761fe26505bc157406d9b4ec42b471935f6f958eaf3e5a6703edbe7a799 |
|
MD5 | fbf79e56f4cb2b5470016becc3f3ee32 |
|
BLAKE2b-256 | e55ced6c2e91dbd7dd40d56753ca0b051f749f67236f4b3b6d62dbc28091b6c3 |
Hashes for mysqlx_connector_python-9.1.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c276a935fcca49e5f1838220a5bb6285e23d3c4cfcbf4f6f8a5c778d425f91 |
|
MD5 | 6681ef85c894e61cb425b6e71840ca77 |
|
BLAKE2b-256 | c55fbcaba22c67dbf992644d2324816057bf0d4b98c300e258a54a5f83f14d4e |
Hashes for mysqlx_connector_python-9.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891b227948edae51834bbd107593623fd793f09da77669acf5be50b030f72da4 |
|
MD5 | fd9669469c119f3b0b8413b1974fd443 |
|
BLAKE2b-256 | c498bb8188d564012b7ace8d7d4fcf2d32a3171e7667bb0c03ef4bc1e717ff75 |
Hashes for mysqlx_connector_python-9.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32ef1be1b02f102c41e4f8c63ec83db7bd0c066fac88e576794a91f62b22467a |
|
MD5 | 4994bd94db32e508840f562b00d5329f |
|
BLAKE2b-256 | 2a456839e593d52afaf0265625ec0ab9dcdc56f39c78595e486195543591785d |
Hashes for mysqlx_connector_python-9.1.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdc7cd236973c59693d89cac327c28b79bed650abd76928968b67b7ab848517a |
|
MD5 | 3e7f70043cdb867f5f219441d5679c99 |
|
BLAKE2b-256 | b657eebc88eed41601a603395bba1c94219f57ce12aa927057731a8ec765ca28 |
Hashes for mysqlx_connector_python-9.1.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1572a5751bc2b618cfdf2dad74017cf9042db1765c54e801aed8311987f4207b |
|
MD5 | 06e0df648079b27d68e71b234caeff76 |
|
BLAKE2b-256 | d9efa81180d15d1e9ca841dc36cdcef7c5272990c0ec6894ae1276832bf34c7c |
Hashes for mysqlx_connector_python-9.1.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a335b1604e27a71bdd39a9401ebe9e23f8a11a0078bb54881af562648b3d89 |
|
MD5 | 8f3095933dc834df1bfec0e206a5b821 |
|
BLAKE2b-256 | 46b22162246869a6a365b652af029df85f134314f1f523037ef6e05ce00c09f3 |
Hashes for mysqlx_connector_python-9.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99569d77f6473f383e7d2c93eb80cb677687d9c37d6dfe5824664b466e075049 |
|
MD5 | 6e23da0db605b7d6f9fdbe59636b2d16 |
|
BLAKE2b-256 | b876cf617ce040d8049430f88961713a5b39365ec80f3bc2863eb2e45fe441f0 |
Hashes for mysqlx_connector_python-9.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e0b24d649dafd3fa8b5397ab4ef8f508ac32d2aefeb7535e7dc4b5ff9629817 |
|
MD5 | 5dd77350641ecfbc3804b931466fdae6 |
|
BLAKE2b-256 | b78f405375264b943fabf92de61c39880c1548c8b0d563de31b52f795c041b1e |
Hashes for mysqlx_connector_python-9.1.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de4449ffa043d52f9daddaf6e9d58df2c525a97185b859f0261de868c2196754 |
|
MD5 | bfd035aefabbb31259f6244765538c75 |
|
BLAKE2b-256 | 32a42fc36093bc1b141b01e7c69bd1b047b7c1aa9c9ef7c2f5ce8bb916158e7b |
Hashes for mysqlx_connector_python-9.1.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7e75199dd5266eeb66ba15dda3318df2ba8de6904fea598e260ac811641f66a |
|
MD5 | 4d85e82e73665ec29eae12f303818dae |
|
BLAKE2b-256 | 201362955fe240268fa3e24931d7a81ae5a5d040c43a42f93c5884fd765fbb51 |
Hashes for mysqlx_connector_python-9.1.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2faa17cbc306fe5249078d0fff60534f12864297045e25e34ba7e769867ed70e |
|
MD5 | 748315612b85af16c6df4932dc5b0fd5 |
|
BLAKE2b-256 | 634f33b5f387c91980e4cac1462656f06d3d436625d0d497cd5c91e3f6d4a1da |