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.

Source Distribution

mysqlLink-1.3.tar.gz (1.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page