Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ischeme4u/sc-mysqlhelper
A simple connection pool for mysql using dbutils.pooled_db
https://github.com/ischeme4u/sc-mysqlhelper
connection-pooling helper mysql python
Last synced: about 2 months ago
JSON representation
A simple connection pool for mysql using dbutils.pooled_db
- Host: GitHub
- URL: https://github.com/ischeme4u/sc-mysqlhelper
- Owner: iScheme4U
- License: mit
- Created: 2021-01-21T08:42:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T01:15:23.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T06:47:39.215Z (about 2 months ago)
- Topics: connection-pooling, helper, mysql, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
.. 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 VersionMySQL helper for Python
========================================A helper for working with mysql written in python, with
connection-pooling featureInstallation
------------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.0Usage
-------
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