PostgreSQL Connection String — SQLAlchemy

The SQLAlchemy PostgreSQL connection string uses the format postgresql+psycopg2://user:password@host:port/database. Use this builder to generate the correct create_engine URL for your PostgreSQL database. Requires psycopg2-binary installed alongside SQLAlchemy.

Build your connection string


        
      

Install

pip install sqlalchemy psycopg2-binary

Usage


    

Back to PostgreSQL drivers