Skip to main content

PGCopy bynary dump parser.

Project description

pgcopylib

Library for reading data from binary format PosgreSQL

Features

  • No dependencies on external libraries
  • Without specifying data types, all columns will be read in bytes
  • Support for most data types

Supported Data Types

PostgreSQL data type Python data type
_bit list[str]
_bool list[bool]
_box list[tuple[tuple[float, float], tuple[float, float]]]
_bpchar list[str]
_bytea list[bytes]
_char list[str]
_cidr list[ipaddress.IPv4Network / ipaddress.IPv6Network]
_circle list[tuple[float, float, float]]
_date list[datetime.date]
_float4 list[float]
_float8 list[float]
_inet list[ipaddress.IPv4Address / ipaddress.IPv6Address]
_int2 list[int]
_int4 list[int]
_int8 list[int]
_interval list[dateutil.relativedelta.relativedelta]
_json list[dict / list / str / int / float / bool / None]
_jsonb list[dict / list / str / int / float / bool / None]
_line list[tuple[float, float, float]]
_lseg list[list[tuple[float, float]]]
_macaddr list[str]
_macaddr8 list[str]
_money list[float]
_numeric list[decimal.Decimal]
_oid list[int]
_path list[list[tuple[float, float]] / tuple[tuple[float, float]]]
_point list[tuple[float, float]]
_polygon list[tuple[tuple[float, float]]]
_serial2 list[int]
_serial4 list[int]
_serial8 list[int]
_text list[str]
_time list[datetime.time]
_timestamp list[datetime.datetime]
_timestamptz list[datetime.datetime]
_timetz list[datetime.time]
_uuid list[uuid.UUID]
_varbit list[str]
_varchar list[str]
_xml list[str]
bit str
bool bool
box tuple[tuple[float, float], tuple[float, float]]
bpchar str
bytea bytes
char str
cidr ipaddress.IPv4Network / ipaddress.IPv6Network
circle tuple[float, float, float]
date datetime.date
float4 float
float8 float
inet ipaddress.IPv4Address / ipaddress.IPv6Address
int2 int
int4 int
int8 int
interval dateutil.relativedelta.relativedelta
json dict / list / str / int / float / bool / None
jsonb dict / list / str / int / float / bool / None
line tuple[float, float, float]
lseg list[tuple[float, float]]
macaddr str
macaddr8 str
money float
numeric decimal.Decimal
oid int
path list[tuple[float, float]] / tuple[tuple[float, float]]
point tuple[float, float]
polygon tuple[tuple[float, float]]
serial2 int
serial4 int
serial8 int
text str
time datetime.time
timestamp datetime.datetime
timestamptz datetime.datetime
timetz datetime.time
uuid uuid.UUID
varbit str
varchar str
xml str

Installation

From pip

pip install pgcopylib

From local directory

pip install .

From git

pip install git+https://github.com/0xMihalich/pgcopylib

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pgcopylib-0.2.2.6-cp311-cp311-win_amd64.whl (269.7 kB view details)

Uploaded CPython 3.11Windows x86-64

pgcopylib-0.2.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pgcopylib-0.2.2.6-cp311-cp311-macosx_11_0_arm64.whl (296.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pgcopylib-0.2.2.6-cp311-cp311-macosx_10_14_x86_64.whl (305.9 kB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

pgcopylib-0.2.2.6-cp310-cp310-win_amd64.whl (274.4 kB view details)

Uploaded CPython 3.10Windows x86-64

pgcopylib-0.2.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pgcopylib-0.2.2.6-cp310-cp310-macosx_11_0_arm64.whl (300.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pgcopylib-0.2.2.6-cp310-cp310-macosx_10_14_x86_64.whl (308.8 kB view details)

Uploaded CPython 3.10macOS 10.14+ x86-64

File details

Details for the file pgcopylib-0.2.2.6-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pgcopylib-0.2.2.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 155901a2b153f28771f864001692b50b99380265b70678045f21707b8bdb0fc5
MD5 2fd91cf90e01e2a6faedfe917715815b
BLAKE2b-256 426b637935ca7575602d8be93c85da2c9fff90d15d773ba275a6a4ad674e820d

See more details on using hashes here.

File details

Details for the file pgcopylib-0.2.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pgcopylib-0.2.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ccebf9e4ed9b133325ae9ccf6785c83911405d6e93fcbcd35056f903f483fb67
MD5 933ca405747e368d48c0f88a9b9b137f
BLAKE2b-256 23b27a1d2535d4d16fe7536e1ecf73537a7107c51c21fd0865d18c13f2078399

See more details on using hashes here.

File details

Details for the file pgcopylib-0.2.2.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pgcopylib-0.2.2.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 931cfc367e8491740c9db1ed75a6d83898d5a8fd520b3d4da1a7e32eb23ee107
MD5 7da4b261b683d769ef2fe2f49c50c1fc
BLAKE2b-256 bcb6567dfec84657c5be1c7a378f3c048374fc46d52ef81ca5362d01121d7acb

See more details on using hashes here.

File details

Details for the file pgcopylib-0.2.2.6-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pgcopylib-0.2.2.6-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 08a918dddce16e6cd370ef847b89a7fe219426f9a056ffd6b9f0a5984785bfc2
MD5 6a967ba290346cf0bbbf5e93f3caa992
BLAKE2b-256 fc5adfb48a02a73008e3abfe4c9bdb7d440891d8aebd39fa68ad9dc3301f9e0f

See more details on using hashes here.

File details

Details for the file pgcopylib-0.2.2.6-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pgcopylib-0.2.2.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1c06a71cd012f9794955f749b67ce55e874a4fc266c7a657879547c9e893495c
MD5 76cb5bfb8a7979855b5d509480951f19
BLAKE2b-256 ccfba23b922d02e58746b2f8b84908e33e5311b3527c3a3ceb3f9d45effc4a83

See more details on using hashes here.

File details

Details for the file pgcopylib-0.2.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pgcopylib-0.2.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca6a4e53134a578c46c201c67e398ca729689e24b3b70996d07105886addf7fa
MD5 aa64b59cabf5aa970cfd70b967bc4fc4
BLAKE2b-256 4e34908fdfd004f8d80c2e681f8c420818ca353796ef9d5ca46a5426f4bcf35e

See more details on using hashes here.

File details

Details for the file pgcopylib-0.2.2.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pgcopylib-0.2.2.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99825fb87107495f51bd9f575827ddf0328e723e44243e817b5823ff66e1efab
MD5 87b51366c6ad7a7e39f3239e951c8653
BLAKE2b-256 ac22349de83f166143e0a91d02346da1c05a488106636342925946b561ec80b2

See more details on using hashes here.

File details

Details for the file pgcopylib-0.2.2.6-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pgcopylib-0.2.2.6-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4df9da622d51f2d6ece3dbdd044e5b27b626326e24dcb1e333cba39f5baf4183
MD5 9a825d09ab1a68f6461f47978ca0ffe9
BLAKE2b-256 58a7c28bc9620e826a1d07e32cde760b637d6ca3054739872523c0915f61d79b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page