Git Product home page Git Product logo

py-mysql-tracer's Introduction

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

py-mysql-tracer's People

Contributors

adrienhorgnies avatar

Forkers

anthonyrichir

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.