Nick Doiron / May 27 2019
Remix of Python by Nextjournal

PostGIS Workshop: SQL review

Let's use Python's package manager, pip, to install a PostgreSQL client library

pip install psycopg2-binary

Here we import that library into our code:

import psycopg2
db