BSD Ports

databases/py-psycopg2 2.8.6_1 MidnightBSD

High performance Python adapter for PostgreSQL

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
lgpl3
Categories
databases, python

Description

psycopg2 is a PostgreSQL database adapter for the Python programming language. It was written from scratch with the aim of being small, fast and stable. It supports the full Python DBAPI-2.0 and is thread safe.

psycopg2 is different from the other database adapter because it was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a conspicuous number of concurrent INSERTs or UPDATEs. Every open Python connection keeps a pool of real (UNIX or TCP/IP) connections to the database. Every time a new cursor is created, a new connection does not need to be opened; instead one of the unused connections from the pool is used. That makes psycopg very fast in typical client-server applications that create a servicing thread every time a client request arrives.

In the other systems

SystemPortVersion
MidnightBSDdatabases/py-psycopg22.8.6_1
FreeBSDdatabases/py-psycopg22.9.13
OpenBSDdatabases/py-psycopg22.9.13p0
NetBSDdatabases/py-psycopg22.9.13
DragonFlydatabases/py-psycopg22.9.10
HardenedBSDdatabases/py-psycopg22.9.13
GhostBSDdatabases/py-psycopg22.9.13

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}psycopg2

From mports:

cd /usr/mports/databases/py-psycopg2 && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2

Dependencies

Configuration

No options to configure.

USES
pgsql python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
psycopg2-2.8.6.tar.gz383797fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543
Master sites 1
  • PYPI