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
Release files for postgres-copy-binary 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| postgres_copy_binary-0.6.0.tar.gz | 1.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| postgres_copy_binary-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:3.6 kB
Release files / postgres_copy_binary-0.6.0.tar.gz
| Download URL | postgres_copy_binary-0.6.0.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da91df446522c0ca56310a6b9ce987da317f4baaaa05b936917fc03f2101ec30
|
|
BLAKE2b-256 checksum How to use checksums |
cbc20dcdf0bab6c34df5157140c8e1d4296430a4d485635639b8daf77b0732a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.15.1
|
Release files / postgres_copy_binary-0.6.0-py3-none-any.whl
| Download URL | postgres_copy_binary-0.6.0-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43689e70710e10401451edb08d9491be63f56dff87c51754af9475886bb306e7
|
|
BLAKE2b-256 checksum How to use checksums |
306a380f4514806c7507b53a780a79fea3c875dae70cdc127eb9eb4560a47219
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.15.1
|