A MySQL client to run queries, write execution reports and export results
Project description
mysql_tracer
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.
Installing
Package is available on PyPi:
pip install mysql_tracer
Usage
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.
Development
You can install development dependencies with pip install -r requirements.txt
.
You can run tests with pytest
.
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 setup.py sdist bdist_wheel
All dependencies have their version frozen. To install new versions of the dependencies, uninstall them, install the mysql-tracer package and then freeze them again
pip freeze | xargs pip uninstall -y
python setup.py sdist
pip install -e .[dev]
pip freeze | grep -v mysql-tracer > requirements.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mysql_tracer-2.0.3.tar.gz
.
File metadata
- Download URL: mysql_tracer-2.0.3.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94862b8a0eef12eb5ffd71542a0c2158ba2e860eb0766b42019d1c65b9f634b1 |
|
MD5 | 8f3a3aba2697f285a28f401ad5986fa2 |
|
BLAKE2b-256 | 18ae27a5bab0e51a9368e817ba13b8e7a262788327d82bc08f9719d100bafe31 |
File details
Details for the file mysql_tracer-2.0.3-py3-none-any.whl
.
File metadata
- Download URL: mysql_tracer-2.0.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8288c75196065e6cc7688e6bf5e07699f5a27d296076904e57e7f10b702d317c |
|
MD5 | ef4ebdd038e34ed21e951f92dc521ad6 |
|
BLAKE2b-256 | 198fa89a8d247876864e9ab2b9a5d61a3e4a3db329b54abb2508cfaf94d3a2d0 |