{ "info": { "author": "Andrii Kurinnyi", "author_email": "andrew@marpasoft.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "===============================\nMarkdown Twitter Extension\n===============================\n\n.. image:: https://badge.fury.io/py/mdx-twitter.png\n :target: http://badge.fury.io/py/mdx-twitter\n \n.. image:: https://travis-ci.org/zen4ever/mdx-twitter.png?branch=master\n :target: https://travis-ci.org/zen4ever/mdx-twitter\n\n.. image:: https://pypip.in/d/mdx-twitter/badge.png\n :target: https://crate.io/packages/mdx-twitter?version=latest\n\n\nMarkdown extension for embedding tweets using twitter OEmbed API\n\n* Free software: BSD license\n\nHow to use\n----------\n\nAllows you to embed tweets into your Markdown.\n\nJust install the package:\n\n .. code-block:: bash\n\n pip install mdx-twitter\n\nBecause Twitter API 1.1 requires you to authenticate, you will need to create\na config file with your credentials at '~/.mdx_twitter.cfg'::\n\n [Twitter]\n CONSUMER_KEY=xxxxxxxxxxxx\n CONSUMER_SECRET=xxxxxxxxxxxx\n ACCESS_TOKEN=xxxxxxxxxxxx\n ACCESS_TOKEN_SECRET=xxxxxxxxxxxx\n\nThen just add 'twitter' to the list of your extensions:\n\n .. code-block:: python\n\n import markdown\n\n md = markdown.Markdown(extensions=['twitter'])\n\nTwitter urls in your Makdown will become embedded tweets::\n\n https://twitter.com/jasoncosta/status/240192632003911681\n\nDjango integration\n------------------\n\nSince Twitter has a rate limit on their APIs, and doing network calls all the\ntime just to render Markdown is a bad idea anyways, we would need some caching.\n\nIf you are using `mdx-twitter` in a Django project, it will automatically\nuse your cache settings to cache HTML returned from Twitter API.\n\nAlso, you could place your API credentials in TWITTER_SETTINGS variable in your\nproject's `settings.py`, instead of using .cfg file\n\n .. code-block:: python\n\n TWITTER_SETTINGS = {\n 'CONSUMER_KEY': '',\n 'CONSUMER_SECRET': '',\n 'ACCESS_TOKEN': '',\n 'ACCESS_TOKEN_SECRET': '',\n }\n\nEmbedding tweets in UIWebView\n-----------------------------\n\nThere are currently some problems with embedding tweets in UIWebView.\n\n* Protocol agnostic src attribute \"//platform.twitter.com/widgets.js\" doesn't\n allow script to load\n\n* There seems to be a problem with automatically determining width of the\n container\n\n https://dev.twitter.com/discussions/15450\n\nSo there is a 'width' configuration option that offers a quick 'fix' for those\nproblems. Just specify expected width of your tweet in pixels. \n\n .. code-block:: python\n\n import markdown\n\n md = markdown.Markdown(extensions=['twitter(width=300)'])\n\nIt will only work with 'style' full.\n\nStyles\n------\n\nYou can customize appearance of your tweets using 'style' configuration\noptions. Default style is 'full', which includes script javascript, you could\nalso use 'simple' style, which just includes tweet in a blockquote tag without\njavascript.\n\nAnother option would be to specify a path to your own function, which accepts\nTwitter response json as an argument and should return final html.\n\nAn example custom style is included in the library. You can use it by\nspecifying 'style=mdx_twitter.custom_style'\n\nTODO\n----\n\n* If we embed multiple tweets, we don't need to have `script` tag after each\n tweet. We should probably just have a `script` tag at the end of the\n document.\n\n\n\n\nHistory\n-------\n\n0.1.0 (2013-08-31)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zen4ever/mdx-twitter", "keywords": "Markdown,Twitter", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "mdx-twitter", "package_url": "https://pypi.org/project/mdx-twitter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mdx-twitter/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/zen4ever/mdx-twitter" }, "release_url": "https://pypi.org/project/mdx-twitter/0.2.6/", "requires_dist": null, "requires_python": null, "summary": "Markdown extension for embedding tweets", "version": "0.2.6" }, "last_serial": 859132, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "684334ced94dabf9455b4997bb577240", "sha256": "b392a90bae315e44cd14783d7645aba4ce37c390a3e2651c0973f39310a6656c" }, "downloads": -1, "filename": "mdx-twitter-0.1.0.tar.gz", "has_sig": false, "md5_digest": "684334ced94dabf9455b4997bb577240", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5387, "upload_time": "2013-09-01T01:32:22", "url": "https://files.pythonhosted.org/packages/67/e4/e08231a8f5ecde1a585dc32e80f9ae39a61a564c2c77ce9858fdd02c5eeb/mdx-twitter-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0f33bafdd2b01ff75f1eda2b6ba3d28b", "sha256": "834bda6047cb8e262af95fb117f6c5b13902c0c5ac300edaba92b78176ac216a" }, "downloads": -1, "filename": "mdx-twitter-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0f33bafdd2b01ff75f1eda2b6ba3d28b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5405, "upload_time": "2013-09-01T02:15:39", "url": "https://files.pythonhosted.org/packages/df/0c/922478f5810b72ca39822d6742cbb9e17856c890ebfe2bf3960dc951daa9/mdx-twitter-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "db6ae5c1f24e9877f8e501484af89620", "sha256": "ccb1b98f9dbce1a72da3cec5ca7c89637e3a3b296f8ba90a6cabc55096d9884f" }, "downloads": -1, "filename": "mdx-twitter-0.2.0.tar.gz", "has_sig": false, "md5_digest": "db6ae5c1f24e9877f8e501484af89620", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6033, "upload_time": "2013-09-01T03:49:50", "url": "https://files.pythonhosted.org/packages/97/d2/058025194db6e3ef50ce0a11bb000b4e1828113eb3b24ac63ff30f8db0e5/mdx-twitter-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "2c6d4b663f3915a3c7922937fad2b4c5", "sha256": "9f5b450e56d165542d48bdbd16dc91e42b7a43cd4eda4659e60406ef4ee259cc" }, "downloads": -1, "filename": "mdx-twitter-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2c6d4b663f3915a3c7922937fad2b4c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6050, "upload_time": "2013-09-01T06:16:13", "url": "https://files.pythonhosted.org/packages/12/85/5a381680cafff6c18b5c08b36e308f29076bc338bde05f7e879db60c8083/mdx-twitter-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "2a037bb5611c14214b0f0d8fbc05a4eb", "sha256": "26be254dd9d508809f313da59d83dab4a9f0e2ae364a1189b2ea44e266f95cf1" }, "downloads": -1, "filename": "mdx-twitter-0.2.2.tar.gz", "has_sig": false, "md5_digest": "2a037bb5611c14214b0f0d8fbc05a4eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6273, "upload_time": "2013-09-02T04:15:44", "url": "https://files.pythonhosted.org/packages/34/c5/09e06ceb894ffec37f24d2d585e1b6a5a78a8f7e52c1c14f3e0bd77344bd/mdx-twitter-0.2.2.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "eabba7f4a835f397a9dc62236b107a3b", "sha256": "97159a27ad24bff8420bfe74d2a5b54ff647c5a27b517000d10ec314f63bfbc1" }, "downloads": -1, "filename": "mdx-twitter-0.2.6.tar.gz", "has_sig": false, "md5_digest": "eabba7f4a835f397a9dc62236b107a3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7387, "upload_time": "2013-09-06T20:52:24", "url": "https://files.pythonhosted.org/packages/a2/b8/6876229e985805202db0177d48c60dbd9b799cfe8c49563a73d24902c84f/mdx-twitter-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eabba7f4a835f397a9dc62236b107a3b", "sha256": "97159a27ad24bff8420bfe74d2a5b54ff647c5a27b517000d10ec314f63bfbc1" }, "downloads": -1, "filename": "mdx-twitter-0.2.6.tar.gz", "has_sig": false, "md5_digest": "eabba7f4a835f397a9dc62236b107a3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7387, "upload_time": "2013-09-06T20:52:24", "url": "https://files.pythonhosted.org/packages/a2/b8/6876229e985805202db0177d48c60dbd9b799cfe8c49563a73d24902c84f/mdx-twitter-0.2.6.tar.gz" } ] }