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
- https://www.postgresql.org/docs/current/sql-copy.html
- https://docs.rs/postgres/latest/postgres/binary_copy/index.html
- https://docs.rs/tokio-postgres/latest/tokio_postgres/binary_copy/index.html
- https://github.com/spitz-dan-l/postgres-binary-parser
- https://github.com/sfackler/rust-postgres-binary-copy
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c52b4817d7b848079b88530074e4415ca5b894e42a7fc4a06d57bd3cce04d8a
|
|
| MD5 |
5cfe30cd6d2b2398a5edc9a8429b40b0
|
|
| BLAKE2b-256 |
2dd98a5947c82fdcf57c3bf2ce311d91f8d6f23f9a25a9d65dbc84f90de3bf00
|
File details
Details for the file postgres_copy_binary-0.4.0-py3-none-any.whl.
File metadata
- Download URL: postgres_copy_binary-0.4.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5218c59e439715a81dea458c44adb6e49519a27125c07611a2dbf47e7412bce5
|
|
| MD5 |
cf233b9d6d485ca921becb478c3db875
|
|
| BLAKE2b-256 |
bb69ec23a270c638c8d9c59c1a52ae54097172fd5fdbc10f3c973e6702c7bec7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a61be5eb64823724e47ee5a79b4492e72655000cb78e2022974f6d405488a43d
|
|
| MD5 |
d4d9de6a38b2256edbb31a9a0cae6620
|
|
| BLAKE2b-256 |
bb3248584d61ea4e34b8733c7166141a10c323791417af6d99aa4f8b99551235
|