[mb-devel] C# Very basic newbie question
Eamon Nerbonne
eamon at nerbonne.org
Mon Jan 8 11:13:59 UTC 2007
Have you considered experimenting with IronPython? From my limited testing
it seems ideally suited for this purpose - if the current Python doesn't
make use of libraries unavailable on IronPython (most standard things are
available). Since IronPython can easily consume C# interfaces, you could
simply use the existing Python implementation, and either make a Python
class which implements a C# interface which does nothing more than act as a
passthru to the existing implementation; or you could make a C# sink, and a
really simple python binding which sends everything to that C# object.
This might be the best long-term solution because its bound to be easier to
stay in sync with any improvements on the python side this way, but again,
provided the python side actually works on IronPython.
On 1/8/07, Catherine <catherine at ripfactory.com> wrote:
>
> Thank you very much Robert and Lukas for your helpful replies. Much, much
> clearer now I know for sure I shouldn't be using the old C# bindings; at
> least I have an idea where to start!
>
>
>
> Many thanks.
> ------------------------------
>
> *From:* musicbrainz-devel-bounces at lists.musicbrainz.org [mailto:
> musicbrainz-devel-bounces at lists.musicbrainz.org] *On Behalf Of *Robert
> Kaye
> *Sent:* 06 January 2007 01:49
> *To:* MusicBrainz development list
> *Subject:* Re: [mb-devel] C# Very basic newbie question
>
>
>
>
>
> On Jan 5, 2007, at 3:43 AM, Catherine wrote:
>
> I am completely new to MusicBrainz and am trying to write a simple
> metadata-retrieval app in C#. I have downloaded the C# bindings from the
> site, but am having difficulty getting the getalbum example to work.
>
> My previous post didn't do much to answer your question, so I'll try an
> rectify this now.
>
>
>
> Thew new web service has no C# bindings, as I mentioned before. So your
> options are:
>
>
>
> 1. Use the python client library we provide (
> http://wiki.musicbrainz.org/PythonMusicBrainz2 )
>
> 2. Write your own bindings for C#.
>
> 3. Use raw XML over HTTP. To retrieve a CD based on its discid, retrieve
> this URL:
>
>
>
> http://musicbrainz.org/ws/1/release/?type=xml&discid=<discid>
>
>
>
> e.g.:
>
>
>
>
> http://musicbrainz.org/ws/1/release/?type=xml&discid=MuVbTzgHdZgTrn1250GddFOAsfI-
>
>
>
> Then parse the XML and consume the data appropriately.
>
>
>
>
>
> Ideally would be if you could use python. Next I would choose to go with
> #3.
>
>
>
> Finally, for generating discids from actual CDs you can use the existing
> C# bindings. The discids have not changed when we moved from the RDF web
> service to the XML web service, so you can generate a discid with C#,
> construct the URL, retrieve data from that URL. parse and consume.
>
>
>
> --
>
>
>
> --ruaok Somewhere in Texas a village is *still* missing its idiot.
>
>
>
> Robert Kaye -- rob at eorbit.net -- http://mayhem-chaos.net
>
>
>
>
>
> _______________________________________________
> MusicBrainz-devel mailing list
> MusicBrainz-devel at lists.musicbrainz.org
> http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel
>
>
--
eamon at nerbonne.org - 06-15142163
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.musicbrainz.org/pipermail/musicbrainz-devel/attachments/20070108/9ebf49df/attachment-0001.htm
More information about the MusicBrainz-devel
mailing list