Python binding Class

Moderator: Telldus

Post Reply
xoubir
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am
Location: France
Contact:

Python binding Class

Post by xoubir »

Hi there,

Little message just to let know that I've written a Python binding Class for developers to be able to control devices through the TellStick.

It directly uses the telldus-core library through ctypes python bindings.

Feel free to use it if you feel it can be useful ;)
The python package is downloadable here : http://www.poulpy.com/downloads/?did=5

Regards,

Xoubir
krambriw
Posts: 654
Joined: Fri Mar 17, 2023 9:45 am

Post by krambriw »

This is very nice and useful!
I do myself make plugins for EventGhost also in python and this will be very useful. Currently I use the dll-approach like

Code: Select all

self.dll = windll.LoadLibrary("TelldusCore.dll")
Without having tried it yet, would your proposed way give any advantages?

Best regards, Walter
xoubir
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am
Location: France
Contact:

Post by xoubir »

Hi Walter,
krambriw wrote: Without having tried it yet, would your proposed way give any advantages?
I think we use quite the same approach : I'm binding to the linux telldus-core library and you are binding on the Windows DLL, which should provide (but never tried) the exact same functions :).

The best would be to make the binding class totally generic by making itself find out if it's running on linux or windows and open the correct library :).

Regards,

Xoubir
Post Reply