---
title: "Discussion on \"connect Postgres SQL in python\" | Hashnode"
description: "Discussion on \"connect Postgres SQL in python\". Pre-requisites:\n\nPostgres database\n\nPython\n\n\nstep -1\npip install psycopg2-binary\n\nstep -2\npostgres credentials\nhost='localhost'\ndbname='practice_db'\nusername='postgres'\npassword=123456\nport=5432\n\nstep -3\nimport the pscopg2 module and use the connect ..."
url: "https://hashnode.com/posts/connect-postgres-sql-in-python/668d5089ad96e714e7d8cfc6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [connect Postgres SQL in python](https://notes123.hashnode.dev/connect-postgres-sql-in-python?utm_source=hashnode&utm_medium=feed)

Pre-requisites: Postgres database Python step -1 pip install psycopg2-binary step -2 postgres credentials host='localhost' dbname='practice\_db' username='postgres' password=123456 port=5432 step -3 import the pscopg2 module and use the connect ...

Jul 9, 2024 · 1 min read · notes123.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#databases](https://hashnode.com/tag/databases)

## Written by

[navinkumar](https://hashnode.com/@navinkumar05)

@navinkumar05 · India, Chennai

  
[View profile](https://hashnode.com/@navinkumar05)

Data Engineer

A passionate data engineer skilled in ETL, Data warehousing, SQL, Python, Docker &amp; Kubernetes and more. Follow my blog for tech insights!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
