DB API 2.0 works. ORMs are convenient but sometimes overkill.
sql is a lightweight wrapper sitting on top of any DB API 2.0
connection offering a postgres like interface which makes working
with SQL results bliss.
If you want to build this for use with Python 3.x (needs the
optional dependency python3) pass the script PYTHON3=yes, like
Maintained by: Dimitris Zlatanidis
(the SlackBuild does not include the source)