databases/py-psycopg2 - The NetBSD Packages Collection

PostgreSQL database adapter for Python

psycopg is a PostgreSQL database adapter for the Python programming language
(just like pygresql and popy.) It was written from scratch with the aim of
being very small and fast, and stable as a rock. The main advantages of
psycopg are that it supports (well... *will* support) the full Python
DBAPI-2.0 and being thread safe at level 2.

psycopg 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.

This is version 2, a complete rewrite of the original code to provide
new-style classes for connection and cursor objects and other
sweet candies. Like the original, psycopg 2 was written with the aim of
being very small and fast, and stable as a rock.

Build dependencies

pkgtools/cwrappers

Runtime dependencies

devel/py-setuptools lang/python38 lang/python38 databases/postgresql12-client databases/postgresql12-client

Binary packages

OSArchitectureVersion
NetBSD 8.0earmv7hfpy27-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy36-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy37-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy38-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy39-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy27-psycopg2-2.8.4.tgz
NetBSD 8.0earmv7hfpy36-psycopg2-2.8.4.tgz
NetBSD 8.0earmv7hfpy37-psycopg2-2.8.4.tgz
NetBSD 8.0earmv7hfpy38-psycopg2-2.8.4.tgz
NetBSD 8.0earmv7hfpy27-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy36-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy37-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy38-psycopg2-2.8.6.tgz
NetBSD 8.0earmv7hfpy39-psycopg2-2.8.6.tgz
NetBSD 8.0i386py27-psycopg2-2.8.4.tgz
NetBSD 8.0i386py36-psycopg2-2.8.4.tgz
NetBSD 8.0i386py37-psycopg2-2.8.4.tgz
NetBSD 8.0i386py38-psycopg2-2.8.4.tgz
NetBSD 8.0i386py27-psycopg2-2.8.6.tgz
NetBSD 8.0i386py36-psycopg2-2.8.6.tgz
NetBSD 8.0i386py37-psycopg2-2.8.6.tgz
NetBSD 8.0i386py38-psycopg2-2.8.6.tgz
NetBSD 8.0i386py39-psycopg2-2.8.6.tgz
NetBSD 8.0i386py27-psycopg2-2.8.6.tgz
NetBSD 8.0i386py36-psycopg2-2.8.6.tgz
NetBSD 8.0i386py37-psycopg2-2.8.6.tgz
NetBSD 8.0i386py38-psycopg2-2.8.6.tgz
NetBSD 8.0i386py39-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy27-psycopg2-2.8.4.tgz
NetBSD 8.0powerpcpy36-psycopg2-2.8.4.tgz
NetBSD 8.0powerpcpy37-psycopg2-2.8.4.tgz
NetBSD 8.0powerpcpy38-psycopg2-2.8.4.tgz
NetBSD 8.0powerpcpy27-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy36-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy37-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy38-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy39-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy27-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy36-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy37-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy38-psycopg2-2.8.6.tgz
NetBSD 8.0powerpcpy39-psycopg2-2.8.6.tgz
NetBSD 8.0x86_64py27-psycopg2-2.8.4.tgz
NetBSD 8.0x86_64py36-psycopg2-2.8.4.tgz
NetBSD 8.0x86_64py37-psycopg2-2.8.4.tgz
NetBSD 8.0x86_64py38-psycopg2-2.8.4.tgz
NetBSD 8.0x86_64py27-psycopg2-2.8.6.tgz
NetBSD 8.0x86_64py36-psycopg2-2.8.6.tgz
NetBSD 8.0x86_64py37-psycopg2-2.8.6.tgz
NetBSD 8.0x86_64py38-psycopg2-2.8.6.tgz
NetBSD 8.0x86_64py39-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py27-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py36-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py37-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py38-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py39-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py27-psycopg2-2.8.4.tgz
NetBSD 9.0aarch64py36-psycopg2-2.8.4.tgz
NetBSD 9.0aarch64py37-psycopg2-2.8.4.tgz
NetBSD 9.0aarch64py38-psycopg2-2.8.4.tgz
NetBSD 9.0aarch64py27-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py36-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py37-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py38-psycopg2-2.8.6.tgz
NetBSD 9.0aarch64py39-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy27-psycopg2-2.8.4.tgz
NetBSD 9.0earmpy36-psycopg2-2.8.4.tgz
NetBSD 9.0earmpy37-psycopg2-2.8.4.tgz
NetBSD 9.0earmpy38-psycopg2-2.8.4.tgz
NetBSD 9.0earmpy27-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy36-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy37-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy38-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy39-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy27-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy36-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy37-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy38-psycopg2-2.8.6.tgz
NetBSD 9.0earmpy39-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy27-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy36-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy37-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy38-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy39-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy27-psycopg2-2.8.4.tgz
NetBSD 9.0earmv6hfpy36-psycopg2-2.8.4.tgz
NetBSD 9.0earmv6hfpy37-psycopg2-2.8.4.tgz
NetBSD 9.0earmv6hfpy38-psycopg2-2.8.4.tgz
NetBSD 9.0earmv6hfpy27-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy36-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy37-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy38-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy39-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy27-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy36-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy37-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy38-psycopg2-2.8.6.tgz
NetBSD 9.0earmv6hfpy39-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy27-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy36-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy37-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy38-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy39-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy27-psycopg2-2.8.4.tgz
NetBSD 9.0earmv7hfpy36-psycopg2-2.8.4.tgz
NetBSD 9.0earmv7hfpy37-psycopg2-2.8.4.tgz
NetBSD 9.0earmv7hfpy38-psycopg2-2.8.4.tgz
NetBSD 9.0earmv7hfpy27-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy36-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy37-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy38-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy39-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy27-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy36-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy37-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy38-psycopg2-2.8.6.tgz
NetBSD 9.0earmv7hfpy39-psycopg2-2.8.6.tgz
NetBSD 9.0i386py27-psycopg2-2.8.4.tgz
NetBSD 9.0i386py36-psycopg2-2.8.4.tgz
NetBSD 9.0i386py37-psycopg2-2.8.4.tgz
NetBSD 9.0i386py38-psycopg2-2.8.4.tgz
NetBSD 9.0i386py27-psycopg2-2.8.6.tgz
NetBSD 9.0i386py36-psycopg2-2.8.6.tgz
NetBSD 9.0i386py37-psycopg2-2.8.6.tgz
NetBSD 9.0i386py38-psycopg2-2.8.6.tgz
NetBSD 9.0i386py39-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy27-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy36-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy37-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy38-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy39-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy27-psycopg2-2.8.4.tgz
NetBSD 9.0mips64ebpy36-psycopg2-2.8.4.tgz
NetBSD 9.0mips64ebpy37-psycopg2-2.8.4.tgz
NetBSD 9.0mips64ebpy38-psycopg2-2.8.4.tgz
NetBSD 9.0mips64ebpy27-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy36-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy37-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy38-psycopg2-2.8.6.tgz
NetBSD 9.0mips64ebpy39-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy27-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy36-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy37-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy38-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy39-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy27-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy36-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy37-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy38-psycopg2-2.8.6.tgz
NetBSD 9.0mipselpy39-psycopg2-2.8.6.tgz
NetBSD 9.0powerpcpy27-psycopg2-2.8.6.tgz
NetBSD 9.0powerpcpy36-psycopg2-2.8.6.tgz
NetBSD 9.0powerpcpy37-psycopg2-2.8.6.tgz
NetBSD 9.0powerpcpy38-psycopg2-2.8.6.tgz
NetBSD 9.0powerpcpy39-psycopg2-2.8.6.tgz
NetBSD 9.0powerpcpy27-psycopg2-2.8.4.tgz
NetBSD 9.0powerpcpy36-psycopg2-2.8.4.tgz
NetBSD 9.0powerpcpy37-psycopg2-2.8.4.tgz
NetBSD 9.0powerpcpy38-psycopg2-2.8.4.tgz
NetBSD 9.0sh3elpy27-psycopg2-2.8.4.tgz
NetBSD 9.0sh3elpy36-psycopg2-2.8.4.tgz
NetBSD 9.0sh3elpy37-psycopg2-2.8.4.tgz
NetBSD 9.0sh3elpy38-psycopg2-2.8.4.tgz
NetBSD 9.0sh3elpy27-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy36-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy37-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy38-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy39-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy27-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy36-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy37-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy38-psycopg2-2.8.6.tgz
NetBSD 9.0sh3elpy39-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py27-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py36-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py37-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py38-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py39-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py27-psycopg2-2.8.4.tgz
NetBSD 9.0sparc64py36-psycopg2-2.8.4.tgz
NetBSD 9.0sparc64py37-psycopg2-2.8.4.tgz
NetBSD 9.0sparc64py38-psycopg2-2.8.4.tgz
NetBSD 9.0sparc64py27-psycopg2-2.8.4.tgz
NetBSD 9.0sparc64py36-psycopg2-2.8.4.tgz
NetBSD 9.0sparc64py37-psycopg2-2.8.4.tgz
NetBSD 9.0sparc64py38-psycopg2-2.8.4.tgz
NetBSD 9.0sparc64py27-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py36-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py37-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py38-psycopg2-2.8.6.tgz
NetBSD 9.0sparc64py39-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py27-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py36-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py37-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py38-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py39-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py27-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py36-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py37-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py38-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py39-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py27-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py36-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py37-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py38-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py39-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py27-psycopg2-2.8.4.tgz
NetBSD 9.0x86_64py36-psycopg2-2.8.4.tgz
NetBSD 9.0x86_64py37-psycopg2-2.8.4.tgz
NetBSD 9.0x86_64py38-psycopg2-2.8.4.tgz
NetBSD 9.0x86_64py27-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py36-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py37-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py38-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py39-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py27-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py36-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py37-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py38-psycopg2-2.8.6.tgz
NetBSD 9.0x86_64py39-psycopg2-2.8.6.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.