.. SPDX-FileCopyrightText: 2021 Veit Schiele
..
.. SPDX-License-Identifier: BSD-3-Clause
Psycopg
=======
`Psycopg `_ is a PostgreSQL adapter based on the C
library for PostgreSQL `libpq
`_. Among other things, it
offers:
* DB API 2.0 compatibility
* Multithreading with thread safety
* `Connections pooling `_
to be able to use a cache of existing database connections for queries.
* `Asynchronous
`_ and
`Coroutines support
`_
* `Adaptation of the Python types in SQL
`_
Install
-------
With Spack you can provide psycopg2 in your kernel, e.g. with
.. code-block:: console
$ spack env activate python-311
$ spack install py-psycopg2