a tool for linking mysql with python3.6, base on module pymysql
Project description
mysqlLink
===========
From del.icio.us to Python. Based on work done by Frank Timmermann\ [#]_.
See `license.txt`__.
Installation::
% python setup.py install
or pip install mysqlLink
And either import the (documented) class::
>>> import mysqlLink
Use the functions on the module, listed below.
def mysql_connect(Host, Port, User, Passwd, Db, Charset):# Make a link object
def execute_sql(connect, sql):# Execute sql after making a link object
method for using:
if __name__ == '__main__':
print("please input:localhost port user password db_name charset!")
cur = sys.stdin.readline()
localhost, port, user, passwd, db, charset = cur.split()
port = int(port)
newConnect = mysql_connect(localhost, port, user, passwd, db, charset)
print("please input sql!")
sql = sys.stdin.readline()
execute_sql(newConnect, sql)
Please do `Email <1341449544@qq.com>`_ any bugs.
Overview
--------
Use functions in my module can help you work easily when you are developing DBS with MySQL.
Documentation
-------------
Historical
----------
===========
From del.icio.us to Python. Based on work done by Frank Timmermann\ [#]_.
See `license.txt`__.
Installation::
% python setup.py install
or pip install mysqlLink
And either import the (documented) class::
>>> import mysqlLink
Use the functions on the module, listed below.
def mysql_connect(Host, Port, User, Passwd, Db, Charset):# Make a link object
def execute_sql(connect, sql):# Execute sql after making a link object
method for using:
if __name__ == '__main__':
print("please input:localhost port user password db_name charset!")
cur = sys.stdin.readline()
localhost, port, user, passwd, db, charset = cur.split()
port = int(port)
newConnect = mysql_connect(localhost, port, user, passwd, db, charset)
print("please input sql!")
sql = sys.stdin.readline()
execute_sql(newConnect, sql)
Please do `Email <1341449544@qq.com>`_ any bugs.
Overview
--------
Use functions in my module can help you work easily when you are developing DBS with MySQL.
Documentation
-------------
Historical
----------
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mysqlLink-1.3.tar.gz
(1.9 kB
view details)
File details
Details for the file mysqlLink-1.3.tar.gz
.
File metadata
- Download URL: mysqlLink-1.3.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 318ec27c21f7f65b925a3b0f0fb411311ee51a11f152cccdf5872362f5f8f941 |
|
MD5 | 31fbf6e43cb0d43bbb4293de909ffe09 |
|
BLAKE2b-256 | 059e95ad9c2ba25d5765ffaaec328d05fcd38a3349cba87235b206e19e1a9be5 |