Coder Social home page Coder Social logo

mysql-ctypes's Introduction

mysql-ctypes

A ctypes implementation of a PEP 249 (DB API 2.0) compliant database driver for use with MySQL. It is importable as MySQLdb for compatibility with the extremely common C-extension, by the same name. It is tested under CPython 2.6, CPython 2.7, and PyPy 1.5.

There are a number of things to note:

  • This was originally developed for use with PyPy, though it works with both CPython and PyPy, where performance is concerned it will try to favor PyPy.
  • The original MySQLdb, with which we attempt to remain compatible, is not always 100% in line with the DB API spec, where it was necessary for use with the project this was developed for, we've followed MySQLdb rather than the spec, sadly.
  • Not all errors are appropriately upgraded to a DatabaseError subclass (e.g. ProgrammingError or IntegrityError) these will be done on an ongoing bases, as tests for the conditions (or reasons they are impossible to write) are developed.
  • This project is strictly test-driven-developed, if you're interested in contributing, we appreciate patches, but please make sure they include tests.

Tests are run using py.test, you can invoke it directly on the command line:

$ py.test

Or use tox to automatically test it against CPython 2.6 and 2.7, as well as PyPy:

$ tox

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.