
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
mysql-shell-client
Advanced tools
MySQL Shell is an advanced client for MySQL Server that allow system administrator to perform both cluster and instance level operations, using a single binary.
This project provides a Python client to perform the most common set of operations, in addition to a set of predefined queries to cover most of the common use-cases.
Install the package from PyPi:
pip install mysql-shell-client
Import and build the executors:
from mysql_shell.executors import LocalExecutor
from mysql_shell.models import ConnectionDetails
cluster_conn = ConnectionDetails(
username="...",
password="...",
host="...",
port="...",
)
instance_conn = ConnectionDetails(
username="...",
password="...",
host="...",
port="...",
)
cluster_executor = LocalExecutor(cluster_conn, "mysqlsh")
instance_executor = LocalExecutor(instance_conn, "mysqlsh")
Import and build the query builders [optional]:
from mysql_shell.builders import CharmLockingQueryBuilder
# This is just an example
builder = CharmLockingQueryBuilder("mysql", "locking")
query = builder.build_table_creation_query()
rows = instance_executor.execute_sql(query)
Import and build the clients:
from mysql_shell.clients import MySQLClusterClient, MySQLInstanceClient
cluster_client = MySQLClusterClient(cluster_executor)
instance_client = MySQLInstanceClient(instance_executor)
In order to install all the development packages:
poetry install --all-extras
All Python files are linted using Ruff, to run it:
tox -e lint
Project testing is performed using Pytest, to run them:
tox -e unit
export MYSQL_DATABASE="test"
export MYSQL_USERNAME="root"
export MYSQL_PASSWORD="root_pass"
export MYSQL_SHELL_PATH="mysqlsh"
podman-compose -f compose/mysql-8.0.yaml up --detach && tox -e integration
podman-compose -f compose/mysql-8.0.yaml down
Commits can be tagged to create releases of the package, in order to do so:
pyproject.toml file.CHANGELOG.md.FAQs
Python client for MySQL Shell
We found that mysql-shell-client 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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.