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.6.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for postgres_copy_binary-0.6.0.tar.gz
Algorithm Hash digest
SHA256 da91df446522c0ca56310a6b9ce987da317f4baaaa05b936917fc03f2101ec30
MD5 fc4a50c523d9b6dafd1760764e988474
BLAKE2b-256 cbc20dcdf0bab6c34df5157140c8e1d4296430a4d485635639b8daf77b0732a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for postgres_copy_binary-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43689e70710e10401451edb08d9491be63f56dff87c51754af9475886bb306e7
MD5 15bf3be940e516305384c3bb4583266b
BLAKE2b-256 306a380f4514806c7507b53a780a79fea3c875dae70cdc127eb9eb4560a47219

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