[GRASS5] Re: Python binding for Grass library
Sajith VK
sajithvk at gmail.com
Wed Jul 27 00:48:37 EDT 2005
Hello all,
I managed to make python bindings for few functions from grass api.
(Which were needed for my application). I used "swig" program for this.
The same was used on the existing (old) module too...
Now I can implement my program in python using grass api.
Using swing, writing python binding for the whole Grass API is not
too difficult, but involves some work. I am trying for this. For this,
I need advice on following
1. Which all functions need to be included in the bindings?
Many functions like G_alloc()... may not be needed in python.
2. Should we make a single binding for the whole grass api
or should it be broken to parts (Based on grass library)
One more fact: Swing directly supports all the scripting languages
like perl,php etc. Hence if we make binding for python, creating binding
for other languages will be very easy
Bye Bye
On 7/20/05, Sajith VK <sajithvk at gmail.com> wrote:
> Hello,
> Its a much discussed issue, I check almost all prvious discussions on it.
> Python bindings was developed
> and is available at ftp://intevation.de/users/bernhard/libgrass5/
> I didnt used it, and has no Idea about its working. But now it is four
> years old.
>
> But python binding for libgrass (and for grass modules, if possible)
> is really helpful, and I think will result in more contribution to grass
> (Developing a model in python is very very easy, for researchers).
>
> So I wish to know is there any other python binding exists for libgrass,
> or is someone working on it.
>
> Currently I dont have any idea about how to create python bindings..
> Can someone suggest on this? I can spend some time for this...
>
> Bye
>
> --
> Change the rules, or the rules will change you
> ---------Kumaranasan
>
--
Change the rules, or the rules will change you
---------Kumaranasan
More information about the grass-dev
mailing list