Home | Articles | CV (pdf | short)
<2013-03-06> by Lorenzo

Use Postgres advanced types in Python

Postgres has a lot of useful builtin data types, but only some of them are mapped to Python types when accessing the DB using psycopg2.

Extending the support to other types is not straightforward, and involves the following steps:

The complete code is as follows, also available as a gist: