Skip to main content

A helper for MySQL using python language

Project description

https://badge.fury.io/py/sc-mysqlhelper.svg 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

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 sc-mysqlhelper, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size sc_mysqlhelper-0.1.4-py3-none-any.whl (6.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sc-mysqlhelper-0.1.4.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page