psycopg2
Package — DatabasePython 3.7+Intermediate
PostgreSQL adapter: most popular Python driver for PostgreSQL
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.7+
- Dependencies
- libpq (PostgreSQL C library required)
- Install
pip install psycopg2-binary
Learn by Difficulty
Quick Example
python
# Install: pip install psycopg2-binary import psycopg2 # Basic psycopg2 usage print(f"Using psycopg2") # See documentation for detailed examples
psycopg2 is a third-party package. PostgreSQL adapter: most popular Python driver for PostgreSQL. Install with: pip install psycopg2-binary
Try in PlaygroundTags
packagedatabaseormpersistence