SP/web2py/gluon/contrib/pymysql
Saturneic 064f602b1a Add.
2018-10-25 23:33:13 +08:00
..
constants Add. 2018-10-25 23:33:13 +08:00
tests Add. 2018-10-25 23:33:13 +08:00
__init__.py Add. 2018-10-25 23:33:13 +08:00
_compat.py Add. 2018-10-25 23:33:13 +08:00
_socketio.py Add. 2018-10-25 23:33:13 +08:00
CHANGELOG Add. 2018-10-25 23:33:13 +08:00
charset.py Add. 2018-10-25 23:33:13 +08:00
connections.py Add. 2018-10-25 23:33:13 +08:00
converters.py Add. 2018-10-25 23:33:13 +08:00
cursors.py Add. 2018-10-25 23:33:13 +08:00
err.py Add. 2018-10-25 23:33:13 +08:00
LICENSE Add. 2018-10-25 23:33:13 +08:00
optionfile.py Add. 2018-10-25 23:33:13 +08:00
README.rst Add. 2018-10-25 23:33:13 +08:00
times.py Add. 2018-10-25 23:33:13 +08:00
util.py Add. 2018-10-25 23:33:13 +08:00

====================
PyMySQL Installation
====================

.. contents::
..
   This package contains a pure-Python MySQL client library.
   Documentation on the MySQL client/server protocol can be found here:
   http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol
   If you would like to run the test suite, edit the config parameters in
   pymysql/tests/base.py. The goal of pymysql is to be a drop-in
   replacement for MySQLdb and work on CPython 2.3+, Jython, IronPython, PyPy
   and Python 3. We test for compatibility by simply changing the import
   statements in the Django MySQL backend and running its unit tests as well
   as running it against the MySQLdb and myconnpy unit tests.

Requirements
-------------

+ Python 2.4 or higher

 * http://www.python.org/
 
 * 2.6 is the primary test environment.

* MySQL 4.1 or higher
    
 * protocol41 support, experimental 4.0 support

Installation
------------

# easy_install pymysql
# ... or ...
# python setup.py install

Python 3.0 Support
------------------

Simply run the build-py3k.sh script from the local directory. It will
build a working package in the ./py3k directory.