Skip to main content

Python PostgreSQL interfaces

Project description

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 is 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.7 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.7 to 3.12 and PostgreSQL versions 10 to 16 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.

Documentation

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

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

PyGreSQL-6.0.tar.gz (271.6 kB view hashes)

Uploaded Source

Built Distributions

PyGreSQL-6.0-cp312-cp312-win_amd64.whl (99.8 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

PyGreSQL-6.0-cp312-cp312-win32.whl (93.8 kB view hashes)

Uploaded CPython 3.12 Windows x86

PyGreSQL-6.0-cp311-cp311-win_amd64.whl (99.1 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

PyGreSQL-6.0-cp311-cp311-win32.whl (94.1 kB view hashes)

Uploaded CPython 3.11 Windows x86

PyGreSQL-6.0-cp310-cp310-win_amd64.whl (99.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

PyGreSQL-6.0-cp310-cp310-win32.whl (94.1 kB view hashes)

Uploaded CPython 3.10 Windows x86

PyGreSQL-6.0-cp39-cp39-win_amd64.whl (99.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

PyGreSQL-6.0-cp39-cp39-win32.whl (94.1 kB view hashes)

Uploaded CPython 3.9 Windows x86

Supported by

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