Python MySQLdb.version_info() Examples

The following are code examples for showing how to use MySQLdb.version_info(). They are extracted from open source Python projects. You can vote up the examples you like or vote down the exmaples you don't like. You can also save this page to your account.

Example 1
Project: gprime   Author: GenealogyCollective   File:    (license) View Source Project 5 votes vote down vote up
def get_summary(cls):
        Return a diction of information about this database
        summary = {
            "DB-API version": "2.0",
            "Database SQL type": cls.__name__,
            "Database SQL module": "MySQLdb",
            "Database SQL module version": ".".join([str(v) for v in MySQLdb.version_info]),
            "Database SQL module location": MySQLdb.__file__,
        return summary