{"id":25751952,"url":"https://github.com/altaurog/pgcopy","last_synced_at":"2025-05-15T23:03:15.641Z","repository":{"id":36258858,"uuid":"40563281","full_name":"altaurog/pgcopy","owner":"altaurog","description":"fast data loading with binary copy","archived":false,"fork":false,"pushed_at":"2025-03-11T08:22:28.000Z","size":260,"stargazers_count":117,"open_issues_count":5,"forks_count":32,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-15T23:02:34.430Z","etag":null,"topics":["bulk-loader","postgresql"],"latest_commit_sha":null,"homepage":"https://pgcopy.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kvenkman/fdl18-sw1","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/altaurog.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-08-11T20:20:45.000Z","updated_at":"2025-05-02T11:56:43.000Z","dependencies_parsed_at":"2025-04-11T23:19:24.941Z","dependency_job_id":"e801ae55-702d-4f4a-8b24-292f631849a1","html_url":"https://github.com/altaurog/pgcopy","commit_stats":{"total_commits":215,"total_committers":7,"mean_commits":"30.714285714285715","dds":0.07906976744186045,"last_synced_commit":"f0cf65bde78a0c22f8cda773ddf44d4ab6d8072e"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altaurog%2Fpgcopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altaurog%2Fpgcopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altaurog%2Fpgcopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altaurog%2Fpgcopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altaurog","download_url":"https://codeload.github.com/altaurog/pgcopy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436944,"owners_count":22070946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bulk-loader","postgresql"],"created_at":"2025-02-26T14:18:44.590Z","updated_at":"2025-05-15T23:03:15.428Z","avatar_url":"https://github.com/altaurog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. home-start\r\n\r\npgcopy\r\n=======\r\n\r\n.. image:: https://github.com/altaurog/pgcopy/actions/workflows/test.yaml/badge.svg?branch=master\r\n    :target: https://github.com/altaurog/pgcopy/actions/workflows/test.yaml?query=branch%3Avector\r\n\r\n.. image:: https://coveralls.io/repos/github/altaurog/pgcopy/badge.svg?branch=master\r\n    :target: https://coveralls.io/github/altaurog/pgcopy?branch=master\r\n\r\n.. image:: https://img.shields.io/pypi/l/pgcopy.svg\r\n    :target: https://pypi.org/project/pgcopy/\r\n\r\n.. image:: https://img.shields.io/pypi/wheel/pgcopy.svg\r\n    :target: https://pypi.org/project/pgcopy/\r\n\r\n.. image:: https://img.shields.io/pypi/pyversions/pgcopy.svg\r\n    :target: https://pypi.org/project/pgcopy/\r\n\r\nUse pgcopy_ for fast data loading into\r\nPostgreSQL with `binary copy`_.\r\n\r\n.. _binary copy: http://www.postgresql.org/docs/9.3/static/sql-copy.html\r\n.. _pgcopy: https://pgcopy.readthedocs.io/en/latest/\r\n\r\nFeatures\r\n---------\r\n* Support for many data types\r\n* Support for multi-dimensional array types\r\n* Support for schema and schema search path\r\n* Support for mixed-case table and column names\r\n* Transparent string encoding\r\n* Utility for replacing entire table\r\n\r\nQuickstart\r\n-----------\r\n\r\n.. quickstart-start\r\n\r\n::\r\n\r\n    from datetime import datetime\r\n    from pgcopy import CopyManager\r\n    import psycopg2\r\n    cols = ('id', 'timestamp', 'location', 'temperature')\r\n    now = datetime.now()\r\n    records = [\r\n            (0, now, 'Jerusalem', 72.2),\r\n            (1, now, 'New York', 75.6),\r\n            (2, now, 'Moscow', 54.3),\r\n        ]\r\n    conn = psycopg2.connect(database='weather_db')\r\n    mgr = CopyManager(conn, 'measurements_table', cols)\r\n    mgr.copy(records)\r\n\r\n    # don't forget to commit!\r\n    conn.commit()\r\n\r\n.. home-end\r\n\r\nSupported datatypes\r\n-------------------\r\n\r\npgcopy supports the following PostgreSQL scalar types:\r\n\r\n* bool\r\n* smallint\r\n* integer\r\n* bigint\r\n* real\r\n* double precision\r\n* char\r\n* varchar\r\n* text\r\n* bytea\r\n* enum types\r\n* date\r\n* time\r\n* timestamp\r\n* timestamp with time zone\r\n* numeric\r\n* json\r\n* jsonb\r\n* uuid\r\n* arrays\r\n* vector\r\n\r\nDocumentation\r\n--------------\r\n\r\n`Read the docs.`_\r\n\r\n.. _Read the docs.: pgcopy_\r\n\r\nSee Also\r\n--------\r\n\r\ncpgcopy_, a Cython implementation, about twice as fast.\r\n\r\n\r\n.. _binary copy: http://www.postgresql.org/docs/9.3/static/sql-copy.html\r\n.. _psycopg2: https://pypi.org/project/psycopg2/\r\n.. _pytz: https://pypi.org/project/pytz/\r\n.. _pytest: https://pypi.org/project/pytest/\r\n.. _cpgcopy: https://github.com/altaurog/cpgcopy\r\n.. _Tox: https://tox.readthedocs.io/en/latest/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltaurog%2Fpgcopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltaurog%2Fpgcopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltaurog%2Fpgcopy/lists"}