Installation

Note

PyWPS-4 is not tested on the MS Windows platform. Please join the development team if you need this platform to be supported. This is mainly because of the lack of a multiprocessing library. It is used to process asynchronous execution, i.e., when making requests storing the response document and updating a status document displaying the progress of execution.

Dependencies and requirements

PyWPS-4 runs on Python 2.7, 3.3 or newer. PyWPS is currently tested and developed on Linux (mostly Ubuntu). In the documentation we take this distribution as reference.

Prior to installing PyWPS-4, Git and the Python bindings for GDAL must be installed in the system. In Debian based systems these packages can be installed with a tool like apt:

$ sudo apt install git python-gdal

Download and install

Using PIP

The easiest way to install PyWPS-4 is using the Python Package Index (PIP). It fetches the source code from the repository and installs it automatically in the system. This might require superuser permissions (e.g. sudo in Debian based systems):

$ sudo pip install -e git+https://github.com/geopython/pywps.git@master#egg=pywps-dev
Manual installation

In alternative PyWPS-4 can be installed manually. It requires the cloning of the source code from the repository and then the usage of the setup.py script. An example again for Debian based systems (note the usage of sudo for install):

$ git clone https://github.com/geopython/pywps.git pywps-4

$ cd pywps-4/

Then install the package dependencies using pip:

$ pip install -r requirements.txt
$ pip install -r requirements-dev.txt  # for developer tasks

To install PyWPS system-wide run:

$ sudo python setup.py install

The demo service and its sample processes

To use PyWPS-4 the user must code processes and publish them through a service. A demo service is available that makes up a good starting point for first time users. This launches a very simple built-in server (relying on flask), which is good enough for testing but probably not appropriate for production. It can be cloned directly into the user area:

$ git clone https://github.com/geopython/pywps-demo.git

It may be run right away through the demo.py script. First time users should start by studying the demo project structure and then code their own processes.

Full more details please consult the Processes section. The demo service contains some basic processes too, so you could get started with some examples (like area, buffer, feature_count and grassbuffer). These processes are to be taken just as inspiration and code documentation - most of them do not make any sense (e.g. sayhello).