Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

a tool for linking mysql with python3.6, base on module pymysql

Project description

From to Python. Based on work done by Frank Timmermann\ [#]_.
See `license.txt`__.


% python 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 <>`_ any bugs.

Use functions in my module can help you work easily when you are developing DBS with MySQL.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mysqlLink-1.3.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page