Coding Standards: Python External Modules

We use the following external modules regularly:

  • ll.xist — HTML generation. This is installed using an easy_install specification of “ll-xist<4”. References to this will be found wherever HTML pages or fragments need to be generated.
  • psycopg2 — PostgreSQL database connection. This is provided by the Ubuntu package python-psycopg2. Almost all use of this package goes through uw.sql.wrap so direct imports are rare.
  • flup — Web CGI server interface. This is installed using an easy_install specification of “flup==1.0.2”. This is used directly only in uw.local.webtools.

There are still a few references in the code to the following:

  • pgsql — PostgreSQL database connection, superseded by psycopg2.
  • web — Web CGI server interface, superseded by flup except for running development instance of application on local machine.
  • sqlalchemy — SQL generation.