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
Metadata
Release files for mysql-tracer 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mysql_tracer-2.0.3.tar.gz | 6.5 kB | Without provenance | Details for mysql_tracer-2.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mysql_tracer-2.0.3-py3-none-any.whl | Python 3 | none | any | Details for mysql_tracer-2.0.3-py3-none-any.whl |
Total release size: 15.9 kB
Release files / mysql_tracer-2.0.3.tar.gz
| Download URL | mysql_tracer-2.0.3.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94862b8a0eef12eb5ffd71542a0c2158ba2e860eb0766b42019d1c65b9f634b1
|
|
BLAKE2b-256 checksum How to use checksums |
18ae27a5bab0e51a9368e817ba13b8e7a262788327d82bc08f9719d100bafe31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / mysql_tracer-2.0.3-py3-none-any.whl
| Download URL | mysql_tracer-2.0.3-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8288c75196065e6cc7688e6bf5e07699f5a27d296076904e57e7f10b702d317c
|
|
BLAKE2b-256 checksum How to use checksums |
198fa89a8d247876864e9ab2b9a5d61a3e4a3db329b54abb2508cfaf94d3a2d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for mysql-tracer 2.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.