1psycopg2 is a PostgreSQL database adapter for the Python programming language.
2It was written from scratch with the aim of being small, fast and stable. It
3supports the full Python DBAPI-2.0 and is thread safe.
4
5psycopg2 is different from the other database adapter because it was designed
6for heavily multi-threaded applications that create and destroy lots of cursors
7and make a conspicuous number of concurrent INSERTs or UPDATEs. Every open
8Python connection keeps a pool of real (UNIX or TCP/IP) connections to the
9database. Every time a new cursor is created, a new connection does not need to
10be opened; instead one of the unused connections from the pool is used. That
11makes psycopg very fast in typical client-server applications that create a
12servicing thread every time a client request arrives.
13
14WWW: http://initd.org/psycopg/
15WWW: https://github.com/psycopg/psycopg2
16