Skip to main content

A MySQL client to run queries, write execution reports and export results

Project description


A MySQL client to run queries, write execution reports and export results.

It is made with the purpose to support SELECT statements only. Other statements will work but the features offered by this module will provide little help or make no sense.

It uses Python 3.


Package is available on PyPi:

pip install mysql_tracer


This package defines a command line tool named mst. To get help about how to use it: mst -h

It exposes the class Query. The constructor needs a path to a file containing a single sql statement and instances expose the method export which creates a timestamped copy of the original file with additional metadata and the results exported in the CSV format.


You can install development dependencies with pip install -r requirements.txt.

You can run tests with pytest.


You can run the module from sources by running the whole package:

python mysql_tracer -h

You can build a package with setuptools.

python sdist bdist_wheel

All dependencies have their version frozen. To install new versions of the dependencies, uninstall them, install the billing-check package and then freeze them again

pip freeze | xargs pip uninstall -y
python sdist
pip install -e .[dev]
pip freeze | grep -v mysql-tracer > requirements.txt

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mysql-tracer, version 2.0.2
Filename, size File type Python version Upload date Hashes
Filename, size mysql_tracer-2.0.2-py3-none-any.whl (9.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mysql_tracer-2.0.2.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page