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
| System | Port | Version |
|---|---|---|
| MidnightBSD | databases/py-psycopg2 | 2.8.6_1 |
| FreeBSD | databases/py-psycopg2 | 2.9.13 |
| OpenBSD | databases/py-psycopg2 | 2.9.13p0 |
| NetBSD | databases/py-psycopg2 | 2.9.13 |
| DragonFly | databases/py-psycopg2 | 2.9.10 |
| HardenedBSD | databases/py-psycopg2 | 2.9.13 |
| GhostBSD | databases/py-psycopg2 | 2.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
Required by 2
Configuration
No options to configure.
- USES
- pgsql python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| psycopg2-2.8.6.tar.gz | 383797 | fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543 |
Master sites 1
- PYPI