{"adoption": {"forks": 546, "observed_at": "2026-08-28T04:08:13.082518+00:00", "stars": 3652}, "canonical_url": "https://ross.abutalabs.com/products/psycopg2", "card": {"archived": false, "artifact_type": "library", "description": "PostgreSQL database adapter for the Python programming language", "domain": ["databases", "backend", "developer-tools"], "enriched": true, "function": ["database-driver", "database"], "health_score": 68, "homepage": "https://www.psycopg.org/", "language": "C", "license": "NOASSERTION", "license_family": "other", "maturity": "maintenance", "member_repos": ["psycopg/psycopg2"], "name": "psycopg/psycopg2", "platform": ["python", "cross-platform"], "pushed_at": "2026-05-02T03:03:56+00:00", "repo": "psycopg/psycopg2", "stars": 3652, "tags": ["postgresql", "db-api-2", "libpq", "sql", "legacy-support"], "topics": ["python", "postgresql", "database", "driver"], "urls": [], "use_cases": ["connect to postgresql from python", "run sql queries against a postgres database", "bulk load data with COPY FROM", "use postgres from a multi-threaded python application", "execute concurrent inserts and updates", "adapt python types to postgresql data types"], "what_it_is": "Psycopg2 is the most popular PostgreSQL database adapter for Python, implementing the Python DB API 2.0 specification. It is mostly written in C as a libpq wrapper, offering thread safety, server-side and client-side cursors, async notifications, and COPY support.", "when_to_avoid": ["starting a new Python project (use Psycopg 3 instead)", "needing native asyncio support", "needing prepared statements, pipeline mode, or static typing", "needing a modern connection pool"], "when_to_choose": ["maintaining a legacy application already using psycopg2", "needing a mature, battle-tested DB-API 2.0 driver for PostgreSQL", "supporting very old PostgreSQL versions (7.4+) or older Python versions"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/psycopg2", "repo": "psycopg/psycopg2", "role": "main", "score": 68}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:13.082518+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:31:40.920279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3ab996b6bb9b142b434a8ce095d4bd57a23fc371d14e581d231cb85a7824fb1e", "fetched_at": "2026-08-28T04:08:13.082518+00:00", "kind": "readme", "missing": false, "url": "https://github.com/psycopg/psycopg2"}, {"content_hash": "a92bc26b862efbcb3f90742430783bf01902cc87df84bff420f65b3316bd7d7c", "fetched_at": "2026-08-29T09:25:58.588534+00:00", "kind": "homepage", "missing": false, "url": "https://www.psycopg.org/"}, {"content_hash": "f4f428851775146180be0e893a6e2fac590806b6b87edc6a6542cac897f9402a", "fetched_at": "2026-08-29T09:25:58.591062+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs/basic/install.html"}, {"content_hash": "6a71e6e185d53d8127d15f125259e521b2b194732a78c313ba849f63fe340ad8", "fetched_at": "2026-08-29T09:25:58.593010+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/psycopg3/docs"}, {"content_hash": "94c1b5bdd8c27231b8c9e9c2851a9677223e1edc31a94470b0e41c97220cf19d", "fetched_at": "2026-08-29T09:25:58.594681+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs/install.html"}, {"content_hash": "ac59e0078aca9f51cbe70ba3bfd3dbff5d001df92709ace3781c12f222a3dce4", "fetched_at": "2026-08-29T09:25:58.596553+00:00", "kind": "site_page", "missing": false, "url": "https://www.psycopg.org/docs"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 80, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4972, "days_push": 123, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 68, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}