[Qgis-developer] import proprietary code inside a python plugin
giohappy at gmail.com
Mon Mar 26 11:59:41 EDT 2012
2012/3/26 Charlie Sharpsteen <chuck at sharpsteen.net>
> On Mon, Mar 26, 2012 at 5:23 AM, G. Allegri <giohappy at gmail.com> wrote:
>> I would advise you to change your software to adopt a loose coupling
>>> between the qgis part and the esri part, either through web services,
>>> exchange over a file or a database or something else not considered as a
>>> in the GPL sense.
>> This is a solution that I have considered, but it would require a lot of
>> overhead to do data structure exchange (python objects). I will consider
>> the way of cPickle or Google's protobuf.
> Take a look at the IPython parallel infrastructure:
> Haven't used ArcPy, but if it is a simple matter of importing libraries
> then you could fire up an IPcluster that makes the required imports. From
> the QGIS side, generating tasks would be a matter of connecting to the
> cluster and executing a function:
> from IPython.parallel import Client
> c = Client()
> c.apply_sync(<some function>)
> IPython will handle all the pickling details for you.
Thanks for the advice ;)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer