Installation

Requirements

plpygis has no dependencies beyond an installation of Python 3 (Python 2 should also work). Additionally, plpygis can use Shapely (version 2.0 or greater) if available. Without it, conversion to and from Shapely geometries will be impossible.

Python Package Index

plpygis may be installed from PyPI.

$ pip install plpygis

It is recommended that plpygis is installed into the system installation of Python or it may not be available in PL/Python functions.

Source

The package sources are available at https://github.com/bosth/plpygis. Building and installing plpygis from source can be done with setuptools:

$ python -m build

Tests

Tests require pytest <https://docs.pytest.org/>.

$ pytest

Documentation

Building the documentation from source requires Sphinx. For a list of supported documentation formats, see the options in the doc subdirectory:

$ cd doc
$ make