I am writing a class to be used as part of a much larger modeling algorithm. My part does spatial analysis to calculate distances from certain points to other points. Ther
You can use psycopg2.sql to compose dynamic queries. Unlike AsIs it will protect you from SQL injection.
AsIs