Skip to main content

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
----------

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 mysqlLink, version 1.3
Filename, size File type Python version Upload date Hashes
Filename, size mysqlLink-1.3.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page