{ "info": { "author": "Ariel Barmat", "author_email": "abarmat@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Python-oembed\n====\n\nThis library provides a pure python OEmbed consumer to get resources from OEmbed providers.\n\nBased on reference from http://oembed.com/\n\noEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.\n\nOEmbed format authors:\n\n* Cal Henderson (cal at iamcal.com)\n* Mike Malone (mjmalone at gmail.com)\n* Leah Culver (leah.culver at gmail.com)\n* Richard Crowley (r at rcrowley.org)\n\nInstall\n------------\n\n pip install python-oembed\n\nUse\n------------\n\nTo create an instance of the oEmbed consumer:\n\n >>> import oembed\n >>> consumer = oembed.OEmbedConsumer()\n\nTo add a provider endpoint to this consumer: \n\n* The first parameter is the URL of the endpoint published by the provider.\n* The second parameter is the URL schema to use with this endpoint.\n\nFor example:\n\n >>> endpoint = oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed', ['http://*.flickr.com/*'])\n >>> consumer.addEndpoint(endpoint)\n\nTo get the provider response for a URL:\n\n >>> response = consumer.embed('http://www.flickr.com/photos/wizardbt/2584979382/')\n\nTo print the response results (each field can be read as a python dict, None if empty):\n\n >>> import pprint\n >>> pprint.pprint(response.getData())\n >>> print response['url']\n\nTo read the full documentation:\n\n $ pydoc oembed\n\nTest\n------------\n\n cd python-oembed\n python oembed_test.py\n\nLicense\n------------\nCopyright (c) 2008 Ariel Barmat\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\n\nHistory\n=======\n\n0.2.4 (2016-01-01)\n------------------\n\n* Fix packaging por pypi\n\n0.2.3 (2015-04-02)\n------------------\n\n* Add Python 3 compatibility\n\n0.2.2 (2012-06-08)\n------------------\n\n* If the endpoint URL already had URL parameters, use an ampersand instead to append URL parameters.\n\n0.2.1 (2011-12-29)\n------------------\n\n* Fix build problems in setup.py\n\n0.2.0 (2011-10-20)\n------------------\n\n* Update code format\n* Improve import selection of JSON and XML libraries\n* Remove unused files\n\n0.1.2 (2009-07-28)\n------------------\n\n* Bugfix: resolved issue #1\n* Added test case to the URL matching\n\n0.1.1 (2008-09-08)\n------------------\n\n* Fixed mime-type check. It failed when more tokens where present in the content-type.\n* Added new mime-type \"application/xml\".\n* Changed minor error on package descriptor.\n\n0.1.0 (2008-09-05)\n------------------\n\n* First release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/abarmat/python-oembed", "keywords": "oembed python api", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "python-oembed", "package_url": "https://pypi.org/project/python-oembed/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-oembed/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/abarmat/python-oembed" }, "release_url": "https://pypi.org/project/python-oembed/0.2.4/", "requires_dist": null, "requires_python": null, "summary": "OEmbed consumer library for Python", "version": "0.2.4" }, "last_serial": 1884798, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "c4ee3fb5bcbd957bcd55f3f428f182d1", "sha256": "625099f6761aadb421b0709d261770c75336113f34da7ae6cb721bce75caeb95" }, "downloads": -1, "filename": "python-oembed-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c4ee3fb5bcbd957bcd55f3f428f182d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5571, "upload_time": "2011-09-20T14:27:25", "url": "https://files.pythonhosted.org/packages/8e/03/58ef7a59b185efefe48774d2562650dd94a01982ea3522afecb60bf6215c/python-oembed-0.1.1.tar.gz" } ], "0.1.2": [], "0.2.0": [ { "comment_text": "", "digests": { "md5": "bf823b4217c73a00028777f8f362192c", "sha256": "2716d54628a69dcd80732f3348c1a9b9d48f840088b72449b7e0a6aa9093d458" }, "downloads": -1, "filename": "python-oembed-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bf823b4217c73a00028777f8f362192c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6997, "upload_time": "2011-09-20T14:31:07", "url": "https://files.pythonhosted.org/packages/78/95/ed2d19c804fc73fe47fad885969022e1d7861eef2309d8849256f76c26d9/python-oembed-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ea248489c7641089dfc8b919608a2d0d", "sha256": "70ac9320a2548185dca71af48fff657d4b11e20840bba101a87405cda0e4e0af" }, "downloads": -1, "filename": "python-oembed-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ea248489c7641089dfc8b919608a2d0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7809, "upload_time": "2011-12-29T14:38:44", "url": "https://files.pythonhosted.org/packages/b3/b9/f3ce2f514cb1db4aa4b9d3de99ad2ad6aaeba9b71be596363548ab21296a/python-oembed-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "b8d89ca096c6b6bb6dc48e868fb2db54", "sha256": "809208fe46d0e9b84cc8b2115e68e71022f530d47b2e4f11353c037c53d8b20f" }, "downloads": -1, "filename": "python-oembed-0.2.2.tar.gz", "has_sig": false, "md5_digest": "b8d89ca096c6b6bb6dc48e868fb2db54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7858, "upload_time": "2015-03-25T04:28:36", "url": "https://files.pythonhosted.org/packages/62/75/9cd9d9cd5ce296277357c3b97e2c6bc2284584e4f88d07f26045b0e3ae63/python-oembed-0.2.2.tar.gz" } ], "0.2.3": [], "0.2.4": [ { "comment_text": "", "digests": { "md5": "151eef40a6c55f599ea80ac34e8db34a", "sha256": "e0804ea3bd7ab8ec1460d139b7a92b6a9e4e3cddd83012dfe30cc67e314716ea" }, "downloads": -1, "filename": "python-oembed-0.2.4.tar.gz", "has_sig": false, "md5_digest": "151eef40a6c55f599ea80ac34e8db34a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7981, "upload_time": "2016-01-02T00:38:26", "url": "https://files.pythonhosted.org/packages/44/e2/8effcd118f659af206ff74b64b4ab2145b3d399969199254aeacdf2c424c/python-oembed-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "151eef40a6c55f599ea80ac34e8db34a", "sha256": "e0804ea3bd7ab8ec1460d139b7a92b6a9e4e3cddd83012dfe30cc67e314716ea" }, "downloads": -1, "filename": "python-oembed-0.2.4.tar.gz", "has_sig": false, "md5_digest": "151eef40a6c55f599ea80ac34e8db34a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7981, "upload_time": "2016-01-02T00:38:26", "url": "https://files.pythonhosted.org/packages/44/e2/8effcd118f659af206ff74b64b4ab2145b3d399969199254aeacdf2c424c/python-oembed-0.2.4.tar.gz" } ] }