My final goal is to setup a server on my raspberry pi which can connect to a local postgresql server. Im a bit familiar with postgres therefore I installed it on my raspberry pi immediately. however, I dont see any reasonable solution on how to connect to it from within python. Any help is welcome.
1 Answer
Here is a link to a SQL Alchemy post which can help
Connecting postgresql with sqlalchemy
you will need to install pyscopg2
1 Comment
Craig Ringer
Or just use
psycopg2 directly if you don't want the abstraction layer.