How do I install the new Python bindings API?

Post Reply
lindsayward
Junior
Posts: 55
Joined: Sat May 31, 2014 4:58 am
Australia

How do I install the new Python bindings API?

Post by lindsayward »

Hi Bill @bill6502 (or others)

I see that the Python API at https://github.com/billmeek/MythTVServicesAPI has been deprecated in favour of:
https://github.com/MythTV/mythtv/tree/m ... rvices_api
but I don't see any information on how to install it.
I want to use it on a machine that doesn't have MythTV installed (for Home Assistant and https://github.com/calmor15014/HA-Compo ... v-frontend).
In the past, I could run something like `pip install https://raw.githubusercontent.com/billm ... ne-any.whl`

Can you please let me know how we can use the new location of the API code?
Thanks!
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: How do I install the new Python bindings API?

Post by bill6502 »

Hey Lindsay,

The github version won't go away soon, just won't get updates (since v30.0 just
got released.)

I haven't found a way to use pip to install from the files, even though the man page
implies that works. Everything I tried depended on .whl or .zip or git.
lindsayward
Junior
Posts: 55
Joined: Sat May 31, 2014 4:58 am
Australia

Re: How do I install the new Python bindings API?

Post by lindsayward »

Hi Bill. Long time since this last message.
Jim and I would like to move the MythTV platform for Home Assistant forward to make it a standard included platform, which requires the services API to be installable from PyPI.
I know we talked about this in the past and you didn't want to maintain it, but I'm happy to do this... if that's OK with you.
So:
1. Are you happy for me to upload the package to PyPI?
2. Is there anything I should know (changes that should/will be made, or anything) before I do this?

Thanks!
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: How do I install the new Python bindings API?

Post by bill6502 »

Hey Lindsay,

I commented on the PR.
ssorbom
Newcomer
Posts: 3
Joined: Mon Sep 20, 2021 10:37 pm
United States of America

Re: How do I install the new Python bindings API?

Post by ssorbom »

It was tricky to get all the right dependencies, but the github repo comes with an install py script you can run. You will need mariadb-client, if memory serves me
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: How do I install the new Python bindings API?

Post by bill6502 »

The API id DB agnostic. It accesses the DB through the backend (or frontend) which do the DB work as required. I run my systems using MySQL.
Post Reply