The module we will use for this tutorial is psycopg. It is available from http://www.initd.org/projects/psycopg1. So download it and install it using the directions that come with the package.
Once it is installed, you can import it like any other module:
# libs for database interface import psycopg
If any of your fields require a date or time, you will also want to import the datetime module, which comes standard with Python.