[mythtv-users] Services API Python binding

Alistair Grant akgrant0710 at gmail.com
Wed Jan 28 19:14:02 UTC 2015


Hi All,

Following on from my discussion about creating a utility to reconcile
tv_grab_xxx and channel configurations in the mythtv-users mailing
list, which some of you may have seen...

I'd like to write the utililty using python3 and the services api, and
was wondering what the current status of a python binding for the
services api is?  All I was able to find through google was an email
from Raymond Wagner
(http://marc.info/?l=mythtv-dev&m=136612129607703&w=2) from April
2013:

> I have a base class mostly written that will generate its own interface to the
> Services API based off the available WSDL sheets, but I stalled some time back
> when I ran into an issue where the Services API would document a generic type
> when it using a list of complex types.  I believe David Blain has fixed this issue,
> but I've been busy with other things and never got back to work on it."

Has this progressed to the point where I can use it, or at least
continue working on it?

Assuming there isn't anything usable there are three obvious paths to
follow in starting from scratch:

1. Make the API backward compatible by keeping the same interface as
the existing python api.  Lots of work, I'm not really keen on this
idea.
2. Manually create an API following the same structure as the services
api.  Probably easier for newcomers to understand and use, but still
lots of work.
3. Like Raymond, use something like suds-jurko
(https://bitbucket.org/jurko/suds) to parse the WSDL and create an
API.

Any pointers appreciated...

Thanks,
Alistair


More information about the mythtv-users mailing list