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 Distribution
Close
Hashes for postgres_copy_binary-0.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da91df446522c0ca56310a6b9ce987da317f4baaaa05b936917fc03f2101ec30 |
|
MD5 | fc4a50c523d9b6dafd1760764e988474 |
|
BLAKE2b-256 | cbc20dcdf0bab6c34df5157140c8e1d4296430a4d485635639b8daf77b0732a1 |
Close
Hashes for postgres_copy_binary-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43689e70710e10401451edb08d9491be63f56dff87c51754af9475886bb306e7 |
|
MD5 | 15bf3be940e516305384c3bb4583266b |
|
BLAKE2b-256 | 306a380f4514806c7507b53a780a79fea3c875dae70cdc127eb9eb4560a47219 |