← Winnitude! Search  ·  Reader Mode (644 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 74 LINKS

GitHub - PyGreSQL/PyGreSQL: The official PyGreSQL repository

Repository navigation

PyGreSQL
Public

About

The official PyGreSQL repository

pygresql.org/

Topics

c-extension database database-adapter libpq postgresql python

Resources

Readme License Activity Custom properties

Stars

48 stars

Watchers

2 watching

Forks

22 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


1,358 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.devcontainer .devcontainer    
.github .github    
docs docs    
ext ext    
pg pg    
pgdb pgdb    
tests tests    
.clang-format .clang-format    
.gitattributes .gitattributes    
.gitignore .gitignore    
.readthedocs.yaml .readthedocs.yaml    
LICENSE.txt LICENSE.txt    
MANIFEST.in MANIFEST.in    
README.rst README.rst    
pyproject.toml pyproject.toml    
setup.py setup.py    
stubtest_allowlist.txt stubtest_allowlist.txt    
tox.ini tox.ini    

Repository files navigation

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.

About

The official PyGreSQL repository

pygresql.org/

Topics

c-extension database database-adapter libpq postgresql python

Resources

Readme License Activity Custom properties

Stars

48 stars

Watchers

2 watching

Forks

22 forks Report repository

Releases

Packages

Used by

Contributors

Languages