mvantellingen / psycopg2-ctypes

ctypes port of psycopg2 (see https://github.com/chtd/psycopg2cffi)
Other
56 stars 59 forks source link

Note: this module is no longer supported by me. If you want to take over the maintenance then let me know, otherwise see https://github.com/chtd/psycopg2cffi


An implementation of the psycopg2 module using ctypes. The module is currently compatible with Psycopg 2.4.4.

To use this package with Django or SQLAlchemy create a psycopg2.py file somewhere in your python path (e.g. the current working dir) and add::

from psycopg2ct import compat
compat.register()

This will map psycopg2ct to psycopg2.

This module is only tested with python 2.6+ and PyPy 1.6+

This is a port of Alex Gaynor's rpython port (https://bitbucket.org/alex_gaynor/pypy-postgresql/overview) of psycopg2 to python + ctypes.