Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
mysqlx-connector-python
Advanced tools
A Python driver which implements the X DevAPI, an Application Programming Interface for working with the MySQL Document Store.
.. image:: https://img.shields.io/pypi/v/mysql-connector-python.svg :target: https://pypi.org/project/mysql-connector-python/ .. image:: https://img.shields.io/pypi/pyversions/mysql-connector-python.svg :target: https://pypi.org/project/mysql-connector-python/ .. image:: https://img.shields.io/pypi/l/mysql-connector-python.svg :target: https://pypi.org/project/mysql-connector-python/
MySQL Connector/Python contains an implementation of the XDevAPI <https://dev.mysql.com/doc/x-devapi-userguide/en>
_
MySQL Document Store <https://dev.mysql.com/doc/refman/en/document-store.html>
_.The recommended way to install Connector/Python is via pip <https://pip.pypa.io/>
_.
Make sure you have a recent pip <https://pip.pypa.io/>
_ 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 <https://pip.pypa.io/en/latest/installation/>
_.
.. code-block:: bash
$ pip install mysqlx-connector-python
Please refer to the installation tutorial <https://dev.mysql.com/doc/dev/connector-python/installation.html>
_
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.
.. code-block:: bash
# 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:
.. code:: python
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()
MySQL Connector/Python X DevAPI Reference <https://dev.mysql.com/doc/dev/connector-python/>
_MySQL Connector/Python Forum <http://forums.mysql.com/list.php?50>
_MySQL Public Bug Tracker <https://bugs.mysql.com>
_Slack <https://mysqlcommunity.slack.com>
_ (Sign-up <https://lefred.be/mysql-community-on-slack/>
_ required if you do not have an Oracle account)Stack Overflow <https://stackoverflow.com/questions/tagged/mysql-connector-python>
_Oracle Blogs <https://blogs.oracle.com/search.html?q=connector-python>
_There are a few ways to contribute to the Connector/Python code. Please refer
to the contributing guidelines <CONTRIBUTING.md>
_ for additional information.
Please refer to the README.txt <README.txt>
_ and LICENSE.txt <LICENSE.txt>
_
files, available in this repository, for further details.
FAQs
A Python driver which implements the X DevAPI, an Application Programming Interface for working with the MySQL Document Store.
We found that mysqlx-connector-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.