Python에서 PostgreSQL 데이터 검색
$ apt-get update
$ apt-get install libpq-dev
$ pip3 install psycopg2
>>> conn = psycopg2.connect(database='chembl_30', user='postgres')
>>> curs = conn.cursor()
>>> curs.execute('select * from rdk.mols where m@>%s',('c1cccc2c1nncc2',))
>>> curs.fetchone()
결과