Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyGreSQL - Python interface for PostgreSQL

PyGreSQL is a Python module that interfaces to a PostgreSQL database. It wraps the lower level C API library libpq to allow easy use of the powerful PostgreSQL features from Python.

PyGreSQL should run on most platforms where PostgreSQL and Python are running. It is based on the PyGres95 code written by Pascal Andre. D’Arcy J.M. Cain renamed it to PyGreSQL starting with version 2.0 and serves as the “BDFL” of PyGreSQL. Christoph Zwerschke volunteered as another maintainer and has been the main contributor since version 3.8 of PyGreSQL.

The following Python versions are supported:

  • PyGreSQL 4.x and earlier: Python 2 only

  • PyGreSQL 5.x: Python 2 and Python 3

  • PyGreSQL 6.x and newer: Python 3 only

The current version of PyGreSQL supports Python versions 3.10 to 3.15 and PostgreSQL versions 12 to 19 on the server.

Installation

The simplest way to install PyGreSQL is to type:

$ pip install PyGreSQL

For other ways of installing PyGreSQL and requirements, see the documentation.

Note that PyGreSQL also requires the libpq shared library to be installed and accessible on the client machine. Pre-compiled wheels are currently only available for Windows. On other platforms, pip builds PyGreSQL from the source distribution, which needs a C compiler, the Python header files, and the libpq header files with the pg_config tool.

Documentation

The documentation is available at pygresql.github.io and at pygresql.readthedocs.io, where you can also find the documentation for older versions.

Metadata

Release files for PyGreSQL 6.3.0b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyGreSQL 6.3.0b1
File Size Uploaded Provenance Actions
pygresql-6.3.0b1.tar.gz 409.3 kB With provenance Details for pygresql-6.3.0b1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for PyGreSQL 6.3.0b1
File Actions
pygresql-6.3.0b1-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for pygresql-6.3.0b1-cp315-cp315-win_amd64.whl
pygresql-6.3.0b1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for pygresql-6.3.0b1-cp314-cp314-win_amd64.whl
pygresql-6.3.0b1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pygresql-6.3.0b1-cp313-cp313-win_amd64.whl
pygresql-6.3.0b1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pygresql-6.3.0b1-cp312-cp312-win_amd64.whl
pygresql-6.3.0b1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pygresql-6.3.0b1-cp311-cp311-win_amd64.whl
pygresql-6.3.0b1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pygresql-6.3.0b1-cp310-cp310-win_amd64.whl

Total release size: 1.2 MB

Release files / pygresql-6.3.0b1.tar.gz

Download URL pygresql-6.3.0b1.tar.gz
Size 409.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7900fcf66d0ca36d2b2ddf024f068a788ac8c210bcec853f7fac3140ab7eb97f
BLAKE2b-256 checksum
How to use checksums
716b0d1fd23fc670542bba8902cdb117598aecbc8d3eebc9054df1fea88775af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pygresql-6.3.0b1-cp315-cp315-win_amd64.whl

Download URL pygresql-6.3.0b1-cp315-cp315-win_amd64.whl
Size 127.6 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
70c72fcbeba73921f25071ee40423cf01353eeccfb6261db9cda534af0cbc445
BLAKE2b-256 checksum
How to use checksums
ba7c94544194a48b5a629782374dd4118ac266a06a18b7dc1059f4c7a08747ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pygresql-6.3.0b1-cp314-cp314-win_amd64.whl

Download URL pygresql-6.3.0b1-cp314-cp314-win_amd64.whl
Size 127.7 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
dda955dc68194336110b5c1f2b559531d66f7ba604285bb723d821deb2df8083
BLAKE2b-256 checksum
How to use checksums
e0cbe6a22710332e6dfcc7fe292f27b385776b80fdbb1ed468bcbff1142a8d60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pygresql-6.3.0b1-cp313-cp313-win_amd64.whl

Download URL pygresql-6.3.0b1-cp313-cp313-win_amd64.whl
Size 125.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
462cdde8db96e55082d0b16b2b7b8c99e6c6ed836352178b8703c5cbb8221ff8
BLAKE2b-256 checksum
How to use checksums
7a335de6a0142ce97b9b99ac5c4a27dceb761509eeb26a0ef3aebf7df242ed53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pygresql-6.3.0b1-cp312-cp312-win_amd64.whl

Download URL pygresql-6.3.0b1-cp312-cp312-win_amd64.whl
Size 125.6 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1b8966b27b3d81b64514bde0fa527906c763ed368ed25c491417f80f2a0ac4f5
BLAKE2b-256 checksum
How to use checksums
2c35d095d7be390c533b05e4d91df5d610cabe0c0247c1b5dc7555727ff35215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pygresql-6.3.0b1-cp311-cp311-win_amd64.whl

Download URL pygresql-6.3.0b1-cp311-cp311-win_amd64.whl
Size 125.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
721d44917bd98e90115b8cd639799c34e1dac64fc4f1f68bea03c24b769874ee
BLAKE2b-256 checksum
How to use checksums
6284423acd6dcfd8ea68f5e2bf1157bb5db614e26a740e3d7493645a70a1f548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pygresql-6.3.0b1-cp310-cp310-win_amd64.whl

Download URL pygresql-6.3.0b1-cp310-cp310-win_amd64.whl
Size 126.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
8a75763fa0343f94f41f584c0ba641c09e273bbaba96db8c20f08b8b69f93997
BLAKE2b-256 checksum
How to use checksums
3b29045fac10e1b6a9b9d971c361491f565df9f961c2073b81fecf0ceca80546
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for PyGreSQL 6.3.0b1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for pygresql-6.3.0b1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page