New version of PyWPS, written from scratch.
- Documentation, hosted by ReadTheDocs.
- Continuous integration with Travis:
- Demo application
Short version: MIT Long version: see LICENSE.txt file
- lxml (http://lxml.de)
- werkzeug (http://werkzeug.pocoo.org)
- libxml2-dev, libxslt1-dev
Install and run tox:
$ pip install tox
$ tox
Or run the tests by hand, with either python 2 or 3:
$ python tests/__init__.py
-
Enable WSGI extension
-
Add configuration:
WSGIDaemonProcess pywps user=user group=group processes=2 threads=5 WSGIScriptAlias /pywps /path/to/www/htdocs/wps/pywps.wsgi
<Directory /path/to/www/htdocs/wps/> WSGIProcessGroup group WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all
-
Create wsgi file
#!/usr/bin/env python3
import sys sys.path.append('/path/to/src/pywps-4/')
import pywps from pywps.app import Service, WPS, Process
def pr1(): """This is the execute method of the process """ pass
application = Service(processes=[Process(pr1)])
-
Run via web browser
-
Run in command line: TBD