{ "info": { "author": "UGent Portaal Team", "author_email": "portaal-tech@ugent.be", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Multimedia :: Video", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "================\npython-mediamosa\n================\n\nmediamosa is a python wrapper for accessing a mediamosa\n(http://www.mediamosa.org) api.\n\n------------\nInstallation\n------------\n\nInstall mediamosa as follows:\n\n::\n\n pip install mediamosa\n\n---------------\nGetting Started\n---------------\n\nStart by creating a connection to a mediamosa api.\n\n.. code:: python\n\n >>> from mediamosa.api import MediaMosaAPI\n >>> api = MediaMosaAPI('http://apivideo.ugent.be')\n >>> api.authenticate('USERNAME', 'PASSWORD')\n True\n\nthe .authentication() method returns a boolean indicating if the\nusername and password were accepted by the server.\n\nYou can now query your assets\n\n.. code:: python\n\n >>> api.asset_list()\n [,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n , ...]\n\nEach direct child of an can be accessed as an attribute:\n\n.. code:: python\n\n >>> asset = api.asset_list()[0]\n >>> asset.dublin_core.get('title')\n u'big buck bunny '\n\nYou can also indiviually request specific assets by querying the api\nobject:\n\n.. code:: python\n\n >>> api.asset('ONZDQiGfhTf8OcsKumKISpOy')\n \n\n\nMediafiles connected to the asset can also be queried:\n\n.. code:: python\n\n >>> asset.list_mediafiles()\n []\n >>> mediafile = asset.list_mediafiles()[0]\n >>> mediafile.filename\n u'bigbuckbunny30sec.mp4'\n >>> mediafile.is_downloadable\n True\n\nYou can also individually request mediafiles by querying the api\nobject:\n\n.. code:: python\n\n >>> api.mediafile('Yb8peCXknRXIhimONUUzkuBT')\n \n\n\nPlaying a mediafile is done as follows:\n\n.. code:: python\n\n >>> mediafile.play()\n u'