INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Python Bindings for Library Server  (Read 2088 times)

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Python Bindings for Library Server
« on: May 01, 2013, 12:44:07 pm »

Does anyone know of a Python binding package for the MC Library Server high level commands and/or MC Core Commands?

--Bill
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72536
  • Where did I put my teeth?
Re: Python Bindings for Library Server
« Reply #1 on: May 01, 2013, 12:46:53 pm »

Did you consider using the MCWS (Web Service) interface?

http://wiki.jriver.com/index.php/DevZone
Logged

WinoOutWest

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 358
Re: Python Bindings for Library Server
« Reply #2 on: May 01, 2013, 01:59:16 pm »

Although I am not a Python programmer (yet) this may be a start/help:

http://www.eventghost.org/forum/viewtopic.php?f=2&t=1600&hilit=jriver&sid=12da83ea463e66fe1766d8c23da04efa

I use the plugin with Eventghost and I am assuming this is python code that controls JRiver.
My plans are to expand my use of remote controlling JRiver and using python is probably an avenue I will be exploring.
Cheers!
Darren
Logged

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Re: Python Bindings for Library Server
« Reply #3 on: May 01, 2013, 02:44:11 pm »

Thanks Darren,

That does look interesting.  I'll install and take a look.  At the very least there may be some useful code fragments to utilize.

--Bill
Logged

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Re: Python Bindings for Library Server
« Reply #4 on: May 01, 2013, 02:51:14 pm »

Did you consider using the MCWS (Web Service) interface?

http://wiki.jriver.com/index.php/DevZone

Yes, that's actually what I'm using right now from Python, directly, as native socket calls to the port.  There are, however, many options, arguments and return types that all have to be massaged on both ends (in and out).  I was hoping to find a Python library that had all that already defined to simplify my expansions.  No point in reinventing the wheel.

--Bill
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Python Bindings for Library Server
« Reply #5 on: May 01, 2013, 03:03:18 pm »

This is unlikely to be much help, but... I have a pretty comprehensive C# wrapper class for MC that uses the COM interface, MCC commands, and even some MCWS stuff.  It is a singleton pattern class and handles all the connection setup behind the scenes.  It isn't done yet (when I have time I'm going to finish it up and release it), but...

If you happen to want a copy, PM me.

Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Re: Python Bindings for Library Server
« Reply #6 on: May 02, 2013, 09:26:59 am »

Thanks Glynor,

I haven't done any significant C<anything> work for almost twenty years and am not particularly familiar with COM objects and all in Windows, so it's probably not something I could do much with.  Higher level is so much easier (for me) if there is sufficient control and speed.

I would like to see what all is involved in what you have done, so will PM you as well.

--Bill
Logged
Pages: [1]   Go Up