From a1fd2da1dcc152f9eaf14f54b003eff26191fc83 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Wed, 23 Oct 2019 12:05:33 +0300 Subject: [PATCH] Mention the CFFI port to Psycopg2 in documentation. The CFFI port works much better on PyPy and has been used in production before. The documentation mentioned the Ctypes port but not the CFFI port. I added it to the documentation. --- doc/src/install.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/src/install.rst b/doc/src/install.rst index d786dd78..3da49602 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -13,12 +13,15 @@ is a C extension and as such it is only compatible with CPython_. If you want to use Psycopg on a different Python implementation (PyPy, Jython, IronPython) there is an experimental `porting of Psycopg for Ctypes`__, but it is not as mature as the C implementation yet. +In addition to that port, there is a `CFFI port of Psycopg`__ which is +faster on PyPy and has seen some success in production environments. .. _PostgreSQL: https://www.postgresql.org/ .. _Python: https://www.python.org/ .. _libpq: https://www.postgresql.org/docs/current/static/libpq.html .. _CPython: https://en.wikipedia.org/wiki/CPython .. _Ctypes: https://docs.python.org/library/ctypes.html +.. _`CFFI port of Psycopg`: https://github.com/chtd/psycopg2cffi .. __: https://github.com/mvantellingen/psycopg2-ctypes