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.
This commit is contained in:
Omer Katz 2019-10-23 12:05:33 +03:00 committed by GitHub
parent d70d3ee482
commit a1fd2da1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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