Omnis Studio and Python
Grzegorz (Greg) Pasternak
grzegorz at niagara.com
Tue Dec 23 09:38:56 EST 2014
Lou;
I am aware of the fact that Python is more popular, has lot's of resources and may be easier to get help.
I wasn't aware of the fact that it may pay better though, which might be a good reason to move into this direction in the future ;-)
However, the purpose of what I am doing has not much to do with using better tool. At this stage it is simply Python script talking to Omnis.
I am looking for easy way of exchanging data between those two. The HTTP is good for this I think.
Data can be formatted in variety of ways and XML is simply one way of doing it. I already have the simple parser for it so no need to look around for anything else.
Further, I want to run tests in Omnis. Python script is going to send some info about the test and Omnis will run it, then return the results.
If there is a better way to have communication going between Omnis and Python using different mechanism I would like to know and learn about this. I am open for any crazy idea as long as it works for the purpose. At this stage ultra HTTP seems to work just fine and I don't particularly care about data sent in URL string if there is no other way do to it. However, again, if there is a better or different way to do it I would like to look into this.
Greg
On Dec 23, 2014, at 8:14 AM, Lou Picciano <loupicciano at comcast.net> wrote:
> Greg,
>
> Far from suggesting, I'm pounding on a drum! The drumbeat being: 'I'm happy to see more ODs using Python'. (There are smaller tom-toms pounding out messages about
> However, rather than consuming even more memory, returning a variable, then trying to manage that whole blob (where, in Omnis?), why not use some of the many tools python offers you to do this(1). Check out the XML and etree stuff in python. Why try to do any of this in Omnis, when the python modules offer you direct access to libxml2, libxslt, many others...
>
More information about the omnisdev-en
mailing list