PyWPS Profiles¶
Warning
Work in progress.
Motivation¶
It happens quite often that we have a set of processes with common input (and output) parameters. In WPS the process signature (inputs+outputs) is called a WPS profile. In the following we show examples how to avoid copy+paste of these process parameters.
Python Mixins¶
One could use Python mixin classes to define a commonly used profile which can be adapted by each individual process.
See how a mixin class looks like:
https://www.ianlewis.org/en/mixins-and-python
See notebook examples how it could be used with PyWPS:
Python Decorators¶
We can also use function decorator to define a WPS profile for PyWPS.
See how a function decorator looks like:
https://krzysztofzuraw.com/blog/2016/python-class-decorators.html
Here are some notebook examples how it could be used with PyWPS: