is it possible for python access to OI multivalue database?
recently,i am learning python. If python able to access to OI mvdbs that would be great.
Google about "python OI", but no luck.
Might be possible via ODBC connectivity.
Do you want read or write access, or both?
Both if possible. ODBC? then i have to buy the OI ODBC. But before that i must know it work or not. Or some other way that is free
![]()
Thanks
Hi Alex,
It should be possible to connect Python to OpenInsight using a socket connection to the Oengineserver. I have examples of this in PHP and Ruby, it should be easy to make one for Python. Also, using the windows scripting host plus IronPython it should be possible to embed Python inside of OpenInsight. I believe there are example scripts posted in the works section. If you cannot find them email info@revelation.com, we'll send you the php example.
- Bob
I am still using OI 7.2.1
Last year, i tried to setup oengineserver but failed. It give me some weird problem (forgot what is that) on win vista and above. Maybe i did something wrong.
If i not wrong , i remember i read some post about V7.2.1 oengine is not supported on win vista and above.
So i need some proper guide on setting up oengine first. Then later Ironpython. The Guide in "OIonlinehelp" is confusing.
Thanks
Alexlim@ctesb.com
Hi Alex
Python has the ability to use COM objects. You could look at using xrev.dll. Python can call C dlls too, so you could just make DLL calls to revCap32.dll. You should consider moving to a newer release of OI if possible. The engineServer and the documentation are much better in current versions than in 7.21 The engineServer is the preferred approach for connecting from external clients.
- Bob
upgrade OI Version is up to my boss and manager (what i can do is suggest only).
May i have the python access to xrev.dll example code?
Thanks.
- Alex
alexlim@ctesb.com
Hi Alex,
I sent you a vbScript example, it should be easy to translate to Python.
- Bob