<div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>My employer would like to propose funding for extending pywps codebase to support running a pywps service in production on Windows  (for instance, under IIS or as a windows service) 

in an asynchronous mode. </div><div>

This extension 

shall include running a demo app with deployment instructions, optionally with instructions for creating a windows installer for a demo service. It shall be 

licensed under the pywps license (MIT) and integrated into the official pywps codebase 

(or at least provide a decent PR). </div><div><div>Currently, I am able to run this pywps <a href="https://github.com/bird-house/birdhouse-workshop/blob/master/demo/demo.py" target="_blank">demo.py</a> example on Windows with the OSGeo4W python environment in synchronous mode.<br></div></div><div><br></div><div>If anyone would like to step forward with a proposal or to discuss it further, please let me know.</div><div><br></div><div>Kind regards,</div><div>Idan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 3 Jul 2020 at 10:58, Idan Miara <<a href="mailto:idan@miara.com">idan@miara.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Carsten, Luí­s and all,<div><br></div><div>Thanks for your replies!</div><div><br></div><div>Currently I use pywps with Docker based on gdal's official docker image (which is ubuntu based).</div><div><a href="https://github.com/talos-gis/talos_wps" target="_blank">https://github.com/talos-gis/talos_wps</a></div><div>The service is still under testing but so far it looks very promising.</div><div><br></div><div>I need to deploy it also on Windows because I need to use a customer's C DLL which is Windows only, so either I will need to port the DLL to Linux or find a way to run pywps on Windows in production.</div><div><br></div><div>Luí­s wrote to me that from what he read online, all Python classes dealing with the Multiprocess must be modified to run on Windows, that is for running it in an asynchronous mode.<br></div><div><br></div><div>I understand that this is not the normal setup, so I guess I will need to test how suitable this <a href="https://github.com/bird-house/birdhouse-workshop/blob/master/demo/demo.py" target="_blank">demo.py</a> is for production on Windows, or look for some other solution.</div><div><br></div><div>Kind regards,</div><div>Idan</div><div> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 3 Jul 2020 at 10:32, Carsten Ehbrecht <<a href="mailto:ehbrecht@dkrz.de" target="_blank">ehbrecht@dkrz.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Idan,<br>
<br>
PyWPS is not meant to run in production on Windows. It may still work … but I’m not sure. <br>
<br>
Using a docker container might already be a good alternative.<br>
<br>
There is a Flask demo with PyWPS … but outdated:<br>
<a href="https://github.com/geopython/pywps-flask" rel="noreferrer" target="_blank">https://github.com/geopython/pywps-flask</a> <br>
<br>
Usually I use a cookiecutter template to setup a new PyWPS service which includes docker container support:<br>
<a href="https://github.com/bird-house/cookiecutter-birdhouse" rel="noreferrer" target="_blank">https://github.com/bird-house/cookiecutter-birdhouse</a> <br>
<br>
For a full deployment on Linux with nginx/gunicron I use an Ansible playbook:<br>
<a href="https://github.com/bird-house/ansible-wps-playbook" rel="noreferrer" target="_blank">https://github.com/bird-house/ansible-wps-playbook</a><br>
<br>
Currently in our projects people are mostly using the PyWPS generated by the cookiecutter … using Werkzeug/WSGI included in PyWPS either on the Linux host or in a container (for production).<br>
<br>
Cheers,<br>
Carsten<br>
--<br>
Carsten Ehbrecht<br>
Abteilung Datenmanagement<br>
<br>
Deutsches Klimarechenzentrum GmbH (DKRZ)<br>
Bundesstraße 45 a • D-20146 Hamburg • Germany<br>
<br>
Phone: +49 40 460094-148<br>
FAX:   +49 40 460094-270<br>
Email: <a href="mailto:ehbrecht@dkrz.de" target="_blank">ehbrecht@dkrz.de</a><br>
URL:   <a href="http://www.dkrz.de" rel="noreferrer" target="_blank">www.dkrz.de</a><br>
<br>
Geschäftsführer: Prof. Dr. Thomas Ludwig<br>
Sitz der Gesellschaft: Hamburg<br>
Amtsgericht Hamburg HRB 39784 <br>
<br>
> On 1. Jul 2020, at 21:10, Idan Miara <<a href="mailto:idan@miara.com" target="_blank">idan@miara.com</a>> wrote:<br>
> <br>
> Hi all,<br>
> <br>
> I have a working pywps service that is deployed successfully with a Linux docker using gunicorn.<br>
> I need some pointers for running it in a production environment on Windows.<br>
>  <br>
> As gunicorn is Linux only I need to find an alternative.<br>
> I can run it on Windows with the birdhouse-workshop demo script:<br>
> <a href="https://github.com/bird-house/birdhouse-workshop/blob/master/demo/demo.py" rel="noreferrer" target="_blank">https://github.com/bird-house/birdhouse-workshop/blob/master/demo/demo.py</a> <br>
> But the demo says: "Do not use this service in a production environment." so I'm looking for a better solution.<br>
> I have found also this rather complicated guide:<br>
> <a href="https://stackoverflow.com/questions/5072166/how-do-i-deploy-a-flask-application-in-iis" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/5072166/how-do-i-deploy-a-flask-application-in-iis</a> <br>
> <br>
> Any suggestions?<br>
> <br>
> Kind regards,<br>
> Idan<br>
> _______________________________________________<br>
> pywps-dev mailing list<br>
> <a href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pywps-dev</a><br>
<br>
</blockquote></div></div>
</blockquote></div></div>