pgdb
PostgreSQL wrapper
What it is and what it does
pgdb is a lightweight wrapper around PostgreSQL connections that converts query results from tuples into dictionaries keyed by column name. It provides a simplified API with methods like query(), get(), execute(), and executemany() to reduce boilerplate when working with PostgreSQL from Python.
The package has been abandoned since mid-2021 with no maintenance activity since then. It declares support for Python 3.5 and carries no runtime dependencies, but exhibits high install friction. While it is licensed permissively under Apache v2.0, the lack of active maintenance means it will not receive security updates, compatibility fixes, or support for modern Python or PostgreSQL versions.
Use it for:
- Quick prototyping of Python scripts that query PostgreSQL without writing raw tuple-unpacking boilerplate.
- Legacy applications that depend on dictionary-based result handling from an older codebase.
- Educational projects where simplified PostgreSQL access is more important than production robustness.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Wraps PostgreSQL connections to return query results as dictionaries keyed by column name instead of tuples, and provides simplified methods for common database operations.
No. The package is abandoned (last update 2021) with no maintenance activity for over three years. High install friction, unclear Python version support, and lack of security updates make it unsuitable for new projects. Use a maintained alternative like psycopg2 or sqlalchemy instead.
Install
pgdb on PyPI
pip
pip install pgdbuv
uv add pgdbpoetry
poetry add pgdbInstalling pgdb
Before you install
High install friction and abandoned maintenance status since 2021. Last commit was over three years ago; the package receives no active updates or security reviews.
License in practice
Licensed under Apache v2.0 (permissive), so you may use and modify it freely, but the lack of active maintenance means security patches or compatibility fixes will not be forthcoming.
Quickstart
from pgdb import Connection
connection = Connection(user='postgres', database='main', host='localhost')
results = connection.query("select * from main")
connection.close()
Requires a running PostgreSQL server and valid connection credentials; no external Python dependencies are listed, but the package itself has high install friction.
Verify before relying
- Whether the package works with modern PostgreSQL versions or recent Python releases beyond 3.5.
- What causes the high install friction (compiled extension, missing wheels, or other build requirements).
- Whether the dictionary-wrapping behavior handles NULL values, type conversions, or edge cases correctly.
Package facts
| License | Apache v2.0 (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,842 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 269,306/month — #8,262 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pgdb-0.0.11.tar.gz
Keywords: psql, postgres, postgresql, sql, wrapper
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
pgspecialExecutes PostgreSQL meta-commands (backslash…
permissive · top 15,000 on PyPI
postgresProvides a lightweight abstraction layer over…
permissive · top 15,000 on PyPI
PyPgConfigPyPgConfig detects and exposes PostgreSQL…
permissive · top 15,000 on PyPI
psycopg2PostgreSQL database adapter for Python that…
copyleft · top 1,000 on PyPI
queriesQueries is a simplified wrapper around psycopg2…
permissive · top 15,000 on PyPI
testgrestestgres orchestrates temporary PostgreSQL…
unclear · top 15,000 on PyPI
pgcopypgcopy wraps PostgreSQL's binary COPY protocol…
permissive · top 15,000 on PyPI
psycopg-poolProvides a connection pool for Psycopg 3,…
copyleft · top 1,000 on PyPI
psycopg2-poolManages a pool of reusable PostgreSQL…
copyleft · top 15,000 on PyPI
airtable-python-wrapperWraps the Airtable API to let you read, insert,…
permissive · top 15,000 on PyPI