Skip to main content

An implementation of the psycopg2 module using cffi.

Project description

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

In order to satisfy cffi==0.4 requirement, you currently need to install cffi from source:

pip install -e hg+https://bitbucket.org/cffi/cffi#egg=cffi

After that you can install psycopg2cffi from pypi:

pip install psycopg2cffi

Or from source:

python setup.py develop

To use this package with Django or SQLAlchemy create somewhere in your python path (e.g. the site-packages of your virtual env) a psycopg2.py file with the following:

from psycopg2cffi import compat
compat.register()

This will map psycopg2cffi to psycopg2.

This module is only tested with python 2.6+ and PyPy trunk (will be 2.0 release, right now you can get a nighlty build for Linux or OS X from http://buildbot.pypy.org/nightly/trunk/).

This is a port of (Michael van Tellingen port https://github.com/mvantellingen/psycopg2-ctypes of Alex Gaynor’s rpython port (https://bitbucket.org/alex_gaynor/pypy-postgresql/overview) of psycopg2 to python + ctypes) to cffi.

To run tests, install pytest and run them with:

py.test psycopg2cffi

Submit issues to https://github.com/chtd/psycopg2cffi/issues

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psycopg2cffi-0.1.2.tar.gz (48.3 kB view details)

Uploaded Source

File details

Details for the file psycopg2cffi-0.1.2.tar.gz.

File metadata

  • Download URL: psycopg2cffi-0.1.2.tar.gz
  • Upload date:
  • Size: 48.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for psycopg2cffi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c8d86d5efdf4301b7fd0fd0182468511db65f18a28532d27e475ffbfe37619b4
MD5 ff58cf81b5a6aad872f9e03050220a52
BLAKE2b-256 9263ae0fc84a4b5dd60530357aaf645b89114a5676cbf960f3fedbf7733cb875

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page