pythondatabasepython-db-api

DB-API x database module


What is a DB-API (Python) and what is a database module and how do they interact ?

I have a TCC project and I need to understand the difference and the purpose of these terms. I thought DB-API was, for example, a driver like psycopg2 but psycopg2 is a driver and has another purpose. If I'm wrong, correct me.


Solution

  • DB-API is a specification that SQL database modules written in Python adhere to.

    etc.