Metadata-Version: 2.1
Name: postgres-copy-binary
Version: 0.4.0
Summary: Provides a decoder for postgres COPY FROM WITH BINARY format that produces pyarrow / pandas / numpy / polars arrays.
Home-page: https://github.com/grihabor/postgres-copy-binary
License: MIT
Author: Gregory Borodin
Author-email: grihabor@gmail.com
Requires-Python: >=3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: postgres-copy-binary-extension-module (==0.4.0) ; python_version >= "3.7"
Project-URL: Repository, https://github.com/grihabor/postgres-copy-binary
Description-Content-Type: text/markdown

# 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

```python
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 


