Metadata-Version: 2.1
Name: sc-mysqlhelper
Version: 0.1.4
Summary: A helper for MySQL using python language
Home-page: https://github.com/Scott-Lau/sc-mysqlhelper
Author: Scott Lau
Author-email: exceedego@126.com
License: MIT
Keywords: mysql helper connection pool python
Platform: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
License-File: LICENSE
Requires-Dist: PyMySQL (>=1.0.2)
Requires-Dist: DBUtils (>=2.0)

.. image:: https://badge.fury.io/py/sc-mysqlhelper.svg
    :target: https://badge.fury.io/py/sc-mysqlhelper
.. image:: https://img.shields.io/pypi/pyversions/sc-mysqlhelper
    :alt: PyPI - Python Version

MySQL helper for Python
========================================

A helper for working with mysql written in python, with
connection-pooling feature


Installation
------------

It is possible to install the tool with `pip`::

    pip install sc-mysqlhelper

Features
--------

* Connection pooling


Configuration
-------------

The script itself is currently configuration free.


Dependencies
------------

* PyMySQL 1.0.2
* DBUtils 2.0


Usage
-------
Sample usage::

    from mysqlhelper import MySQLHelper

    helper = MySQLHelper(host="localhost", port=3306, user="test", password="test", database="test")
    rs = helper.select_one(sql="select count(*) from users")
    print(rs[0])

License
-------

The script is released under the MIT License.  The MIT License is registered
with and approved by the Open Source Initiative [1]_.

.. [1] https://opensource.org/licenses/MIT


