Description
Connects Python applications to PostgreSQL with the newer psycopg adapter. It helps programs run SQL, stream data, manage transactions, and integrate PostgreSQL access into synchronous or asynchronous Python code.
Database code can expose or modify critical data. Use parameterized queries, connection security, least-privilege accounts, and tested transaction boundaries.