Nirvanix Python SDK for Google App Engine Release 1.0

Last post 07-03-2008 1:40 PM by biffboff. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-27-2008 3:04 PM

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Nirvanix Python SDK for Google App Engine Release 1.0

    We are happy to announce the Python SDK for Google App Engine is ready for release.  You can find the download at the below link.  The goal of this library is to offer a simple way to access the Nirvanix SDK from an application hosted with Google's App Engine.  Currently due to limitations with the Google fetch library we are not making available the ability to upload / download but both of these can be done using the browser itself.  All other Web service calls have been wrapped up and are accessible.

    http://developer.nirvanix.com/files/folders/python/entry1253.aspx

    Regards,
        Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 07-03-2008 10:57 AM In reply to

    Re: Nirvanix Python SDK for Google App Engine Release 1.0

    Thanks Barry. I have a question. Some of the Nirvanix commands expect an ArrayOfString - such as presetTranscode.

    How do i code these up in Python to work with the Google App Engine?

     

     

    Thanks,

     

    James

  • 07-03-2008 1:35 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Re: Nirvanix Python SDK for Google App Engine Release 1.0

     The options in REST interfaces are passed in like:


    http://services.nirvanix.com/ws/video/PresetTranscode.ashx?sessionToken=XZY&srcFilePath=/src/file.avi&destFilePath=/dest/file.flv&preset=H263%20FLV%20High&scalewidth=100&scaleheight=100

    So in the SDK this would translate to an associative array that looks like:


    session = Session(appkey, username, password)
    video = Nirvanix('Video', session);

    options = {'srcFilePath': '/src/file.avi','destFilePath':'/dest/file.flv','preset': 'H263 FLV High','scalewidth': '100','scaleheight': '100'}
    doc = video.PresetTranscode(options,False)



    Let me know if you need help with any others.

    Regards,
         Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 07-03-2008 1:40 PM In reply to

    Re: Nirvanix Python SDK for Google App Engine Release 1.0

     Ah right - it's as simple as that :) Thanks champ - i'll let you know how i get on.

     

    Thanks,

     

    James Rowley

Page 1 of 1 (4 items)