This example uses the psycopg2 library to connect to PostgreSQL and perform a simple query.
pip install psycopg2-binary
Note: You can retrieve the Service URI from the Aiven Console overview tab.
./main.py --service-uri postgres://<user>:<password>@<host>:<port>/<database>?<options>