Skip to main content

Provides a decoder for postgres COPY FROM WITH BINARY format that produces pyarrow / pandas / numpy / polars arrays.

Project description

postgres-copy-binary

Provides a decoder for postgres COPY FROM WITH BINARY format that spits out pyarrow / pandas / numpy arrays

Examples

Copy and decode the whole table

import psycopg2
from postgres_copy_binary import read_table

with psycopg2.connect(...) as conn:
    with conn.cursor() as cursor:
        columns = read_table(cursor, 'my_table')

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

postgres_copy_binary-0.4.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distributions

postgres_copy_binary-0.4.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

postgres_copy_binary-0.4.0-py2.py3-none-any.whl (2.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file postgres_copy_binary-0.4.0.tar.gz.

File metadata

  • Download URL: postgres_copy_binary-0.4.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for postgres_copy_binary-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8c52b4817d7b848079b88530074e4415ca5b894e42a7fc4a06d57bd3cce04d8a
MD5 5cfe30cd6d2b2398a5edc9a8429b40b0
BLAKE2b-256 2dd98a5947c82fdcf57c3bf2ce311d91f8d6f23f9a25a9d65dbc84f90de3bf00

See more details on using hashes here.

File details

Details for the file postgres_copy_binary-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for postgres_copy_binary-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5218c59e439715a81dea458c44adb6e49519a27125c07611a2dbf47e7412bce5
MD5 cf233b9d6d485ca921becb478c3db875
BLAKE2b-256 bb69ec23a270c638c8d9c59c1a52ae54097172fd5fdbc10f3c973e6702c7bec7

See more details on using hashes here.

File details

Details for the file postgres_copy_binary-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: postgres_copy_binary-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for postgres_copy_binary-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a61be5eb64823724e47ee5a79b4492e72655000cb78e2022974f6d405488a43d
MD5 d4d9de6a38b2256edbb31a9a0cae6620
BLAKE2b-256 bb3248584d61ea4e34b8733c7166141a10c323791417af6d99aa4f8b99551235

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page