Skip to content

Commit

Permalink
update to v1.0.12 (python2)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnKaijser committed Nov 28, 2013
1 parent c8d857d commit 2e0e05e
Show file tree
Hide file tree
Showing 48 changed files with 8,965 additions and 3,378 deletions.
446 changes: 412 additions & 34 deletions ChangeLog

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Metadata-Version: 1.0
Name: mysql-connector-python
Version: 1.0.12
Summary: MySQL driver written in Python
Home-page: http://dev.mysql.com/doc/connector-python/en/index.html
Author: Oracle and/or its affiliates
Author-email: UNKNOWN
License: GNU GPLv2 (with FOSS License Exception)
Download-URL: http://dev.mysql.com/downloads/connector/python/
Description: MySQL driver written in Python which does not depend on MySQL C client
libraries and implements the DB API v2.0 specification (PEP-249).

Keywords: mysql db
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.4
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Database
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
122 changes: 43 additions & 79 deletions README
Original file line number Diff line number Diff line change
@@ -1,80 +1,44 @@
MySQL Connector/Python 1.0

This is a release of MySQL Connector/Python, Oracle's dual-
license Python Driver for MySQL. For the avoidance of
doubt, this particular copy of the software is released
under the version 2 of the GNU General Public License.
MySQL Connector/Python is brought to you by Oracle.

Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.

License information can be found in the COPYING file.

MySQL FOSS License Exception
We want free and open source software applications under
certain licenses to be able to use the GPL-licensed MySQL
Connector/Python (specified GPL-licensed MySQL client libraries)
despite the fact that not all such FOSS licenses are
compatible with version 2 of the GNU General Public License.
Therefore there are special exceptions to the terms and
conditions of the GPLv2 as applied to these client libraries,
which are identified and described in more detail in the
FOSS License Exception at
<http://www.mysql.com/about/legal/licensing/foss-exception.html>

This software is OSI Certified Open Source Software.
OSI Certified is a certification mark of the Open Source Initiative.

This distribution may include materials developed by third
parties. For license and attribution notices for these
materials, please refer to the documentation that accompanies
this distribution (see the "Licenses for Third-Party Components"
appendix) or view the online documentation at
<http://dev.mysql.com/doc/>
A copy of the license/notices is also reproduced below.

GPLv2 Disclaimer
For the avoidance of doubt, except that if any license choice
other than GPL or LGPL is available it will apply instead,
Oracle elects to use only the General Public License version 2
(GPLv2) at this time for any software where a choice of GPL
license versions is made available with the language indicating
that GPLv2 or any later version may be used, or where a choice
of which version of the GPL is applied is otherwise unspecified.

MySQL Connector/Python MySQL driver written in Python
==============================================================================
Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
Use is subject to license terms. (See COPYING)

MySQL Connector/Python is implementing the MySQL Client/Server protocol
completely in Python. This means you don't have to compile anything or MySQL
(client library) doesn't even have to be installed on the machine.

Disclaimer
=====================

!!!!!!!!!!! THIS IS STILL IN DEVELOPMENT !!!!!!!!!!!!!!!!!!!
!!!!!!!! EXPECT THING TO NOT WORK OR GO WRONG !!!!!!!!!!!!!!
!!!! DO NOT USE IN PRODUCTION etc.. etc... !!!!!!!!!!!!!!!!!

Ah, and make backups!

Dependencies
=====================

* Python 2.5 or greater
* Python 3.1 or greater

Connects to:
* MySQL 4.1 or greater
* Will not work with MySQL servers using 'old passwords'!

Installation
=====================

To install MySQL Connector/Python, first unpack the ZIP archive or
'tar ball' you download:

shell> unzip mysql-connector-python-0.2.0-devel.zip
or
shell> tar xzf mysql-connector-python-0.2.0-devel.tar.gz

Then simply execute the setup.py script with the 'install' argument:

shell> cd mysql-connector-python-0.2.0/
shell> python setup.py install

setup.py will figure out which Python version you have and install the
correct modules.

Usage
=====================

There are examples provided for both Python v2 and v3. Please check
the following directories which comes with the MySQL Connector/Python
distribution:

* For Python v2: python2/examples/
* For Python v3: python3/examples/

Simply execute the examples as follows after installation:

shell> python engines.py

Testing
=====================

Unit tests are provided and can be run using the unittests.py script. Mind
that you best edit the file so the connection parameters are correct for your
MySQL Server.

Report problems
=====================

Report problems using LaunchPad's bug system here:
https://bugs.launchpad.net/myconnpy

Credits
=====================

* Andy Dustman - we owe you big time for MySQLdb
* Jess Balint - early development of native Python driver, helped a bit
* Everyone reporting bugs through Launchpad
11 changes: 6 additions & 5 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.myconnpy"
name="MySQL Connector/Python"
version="0.3.2"
provider-name="http://forge.mysql.com/projects/project.php?id=302">
version="1.0.12"
provider-name="MySQL">
<requires>
<import addon="xbmc.python" version="2.0"/>
<import addon="xbmc.python" version="2.1.0"/>
</requires>
<extension point="xbmc.python.module" library="lib"/>
<extension point="xbmc.addon.metadata">
<summary>MySQL Connector/Python</summary>
<description>MySQL Connector/Python is implementing the MySQL Client/Server protocol completely in Python. This means you don't have to compile anything or MySQL (client library) doesn't even have to be installed on the machine.</description>
<summary lang="en">MySQL Connector/Python</summary>
<description lang="en">MySQL Connector/Python is implementing the MySQL Client/Server protocol completely in Python. This means you don't have to compile anything or MySQL (client library) doesn't even have to be installed on the machine.</description>
<license>GPLv2</license>
<platform>all</platform>
<website>http://dev.mysql.com/doc/connector-python/en/index.html</website>
</extension>
</addon>
17 changes: 0 additions & 17 deletions download.sh

This file was deleted.

25 changes: 13 additions & 12 deletions lib/examples/client.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
# Use is subject to license terms. (See COPYING)

# MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.

# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptions to the terms and
# conditions of the GPLv2 as it is applied to this software, see the
# FOSS License Exception
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation.
#
# There are special exceptions to the terms and conditions of the GNU
# General Public License as it is applied to this software. View the
# full text of the exception in file EXCEPTIONS-CLIENT in the directory
# of this software distribution or see the FOSS License Exception at
# www.mysql.com.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

"""
Simple CLI using the Connector/Python. It does not take arguments so
Expand Down
23 changes: 23 additions & 0 deletions lib/examples/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# -*- coding: utf-8 -*-

# MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.

# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptions to the terms and
# conditions of the GPLv2 as it is applied to this software, see the
# FOSS License Exception
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

class Config(object):
"""Configure me so examples work
Expand Down
Loading

0 comments on commit 2e0e05e

Please sign in to comment.