{ "info": { "author": "Artur Barseghyan", "author_email": "artur.barseghyan@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "==================================\nvishap\n==================================\nGenerate embed (HTML) code of services like Youtube or Vimeo from URLs given.\nRules are specified in the plugins.\n\nComes with plugins for the following services (listed in alphabetical order):\n\n- Vimeo\n- Youtube\n\nInstallation\n==================================\nInstall with latest stable version from PyPI:\n\n.. code-block::\n\n $ pip install vishap\n\nor install the latest stable version from bitbucket:\n\n.. code-block::\n\n $ pip install -e hg+https://bitbucket.org/barseghyanartur/vishap@stable#egg=vishap\n\nor install the latest stable version from github:\n\n.. code-block::\n\n $ pip install -e git+http://github.org/barseghyanartur/vishap@stable#egg=vishap\n\nThat's all. See the `Usage and examples` section for more.\n\nUsage and examples\n==================================\nSimple usage\n----------------------------------\nRequired imports\n\n.. code-block:: python\n\n from vishap import render_video\n\nRendering Vimeo code\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThe following code:\n\n.. code-block:: python\n\n print render_video('http://vimeo.com/45655450', 500, 281)\n\nWould result the following output:\n\n.. code-block:: html\n\n \n\nRendering Youtube code\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThe following code:\n\n.. code-block:: python\n\n print render_video('http://www.youtube.com/watch?v=LIPl7PtGXNI', 560, 315)\n\nWould result the following output:\n\n.. code-block:: html\n\n \n\nFilling available area\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nIf you want your embed code to fill the available area, render it without\n``width`` and ``height`` attributes and place it in a container to which it\nshall stretch.\n\nExample:\n\n.. code-block:: python\n\n s = \"\"\"