{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/3"}],"enrichment":{"capability":"pgcopy wraps PostgreSQL's binary COPY protocol to load data into tables much faster than row-by-row inserts, using psycopg2 as the connection layer.","skillfed_tags":["bulk-insert","postgresql","etl"],"use_cases":["Migrating large datasets into PostgreSQL from CSV, JSON, or in-memory collections.","Periodic bulk imports of metrics, logs, or sensor data where speed matters more than row-by-row control.","Replacing entire tables atomically with fresh data from an external source.","Loading test fixtures or seed data during application initialization or CI/CD pipelines.","Batch ETL workflows where you stage data in Python and need to land it in Postgres quickly."],"what_it_does":"pgcopy is a thin wrapper around PostgreSQL's native binary COPY command, exposed through a simple Python API. It lets you load bulk data into PostgreSQL tables orders of magnitude faster than traditional INSERT statements by leveraging the database's optimized binary protocol. The package handles encoding, type conversion, and schema awareness transparently, supporting a wide range of PostgreSQL data types including arrays, JSON, UUIDs, and timestamps with timezone.\n\nYou instantiate a CopyManager with a psycopg2 connection, table name, and column list, then call copy() with an iterable of tuples or dicts. The package converts your Python data to PostgreSQL's binary format and streams it directly into the table. It's designed for one-shot bulk loads and table replacements rather than streaming or incremental inserts.","worth_installing":"Yes, if you need to load bulk data into PostgreSQL and speed is a priority. The package is stable, has no known vulnerabilities, and carries minimal dependencies. The main caveat is aging maintenance\u2014last release was 264 days ago\u2014so if you hit a bug or need support for a new PostgreSQL feature, responsiveness is uncertain. For one-off bulk loads or established workflows, it's a solid choice; for mission-critical systems requiring active support, verify the maintainer's current availability first."},"id":"pgcopy","links":{"html":"https://skillfed.io/packages/pgcopy","md":"https://skillfed.io/packages/pgcopy.md","pypi":"https://pypi.org/project/pgcopy/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-23","license_spdx":null,"license_treatment":"permissive","name":"pgcopy","python_support":"unspecified","summary":"Fast db insert with postgresql binary copy"},"popularity":{"monthly_downloads":239550,"position":8919,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.6.2"}
