{ "info": { "author": "Thomas Steinacher", "author_email": "engineering@close.io", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Communications :: Email", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==========\nquotequail\n==========\n.. image:: https://circleci.com/gh/closeio/quotequail/tree/master.svg?style=svg&circle-token=493e282bf7e3bf5e72bf3e255a116534ed8a79ab\n :target: https://circleci.com/gh/closeio/quotequail/tree/master\n\nA library that identifies quoted text in plain text and HTML email messages.\nquotequail has no mandatory dependencies, however using HTML methods require\nlibxml.\n\n\n(Interested in working on projects like this? `Close.io`_ is looking for `great engineers`_ to join our team)\n\n.. _Close.io: http://close.io\n.. _great engineers: http://jobs.close.io\n\n\nIntroduction\n------------\n\nquotequail comes with the functions listed below which are documented in detail\nin quotequail's ``__init__.py``.\n\n* ``quote(text)``: Takes a plain text message as an argument, returns a list of\n tuples. The first argument of the tuple denotes whether the text should be\n expanded by default. The second argument is the unmodified corresponding\n text.\n* ``quote_html(html)``: Like ``quote()``, but takes an HTML message as an\n argument.\n* ``unwrap(text)``: If the passed text is the text body of a forwarded message,\n a reply, or contains quoted text, a dictionary is returned, containing the\n type (reply/forward/quote), the text at the top/bottom of the wrapped\n message, any parsed headers, and the text of the wrapped message.\n* ``unwrap_html(text)``: Like ``unwrap()``, but takes an HTML message as an\n argument.\n\n\nExamples\n--------\n\n.. code:: python\n\n In [1]: import quotequail\n\n In [2]: quotequail.quote(\"\"\"Hello world.\n\n On 2012-10-16 at 17:02 , Someone wrote:\n\n > Some quoted text\n \"\"\")\n Out[2]:\n [(True, 'Hello world.\\n\\nOn 2012-10-16 at 17:02 , Someone wrote:'),\n (False, '\\n> Some quoted text\\n')]\n\n In [3]: quotequail.unwrap(\"\"\"Hello\n\n Begin forwarded message:\n\n > From: \"Some One\" \n > Date: 1. August 2011 23:28:15 GMT-07:00\n > To: \"Other Person\" \n > Subject: AW: AW: Some subject\n >\n > Original text\n\n Text bottom\n \"\"\"))\n Out[3]:\n {'date': '1. August 2011 23:28:15 GMT-07:00',\n 'from': '\"Some One\" ',\n 'subject': 'AW: AW: Some subject',\n 'text': 'Original text',\n 'text_bottom': 'Text bottom',\n 'text_top': 'Hello',\n 'to': '\"Other Person\" ',\n 'type': 'forward'}\n", "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/closeio/quotequail", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "quotequail", "package_url": "https://pypi.org/project/quotequail/", "platform": "any", "project_url": "https://pypi.org/project/quotequail/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/closeio/quotequail" }, "release_url": "https://pypi.org/project/quotequail/0.2.3/", "requires_dist": null, "requires_python": null, "summary": "A library that identifies quoted text in plain text and HTML email messages.", "version": "0.2.3" }, "last_serial": 2386978, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "09953d80bd777fa7dd82e5a6bba80724", "sha256": "aa8f4668a98d1a68e94920899d2c95a8b5560a82cb836d055e5ca00fbe82ba5e" }, "downloads": -1, "filename": "quotequail-0.1.1.tar.gz", "has_sig": false, "md5_digest": "09953d80bd777fa7dd82e5a6bba80724", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5190, "upload_time": "2015-02-06T23:09:01", "url": "https://files.pythonhosted.org/packages/30/f7/7e2cb779c1887310286ba71de14f26ec5a07e70cc42ea36f5ddb2d12c165/quotequail-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "10e427d55461a256944558d2db67ec32", "sha256": "eb510e9384f3cb99a42a17d3f7ad550160e274eb959d8e3f0a4dc80caee4ab5e" }, "downloads": -1, "filename": "quotequail-0.2.tar.gz", "has_sig": false, "md5_digest": "10e427d55461a256944558d2db67ec32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10793, "upload_time": "2016-04-09T12:36:23", "url": "https://files.pythonhosted.org/packages/c6/3e/230b421bbaa8b8738a105a6dc9c6282574c2f24138aa7ecc09f09199ddd5/quotequail-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "df7b298ec51ae83d3c2b60ed6ffa54ce", "sha256": "93eccf982f8fb1a69144d22cb9a57e434887e4ca35cac2dafad7c97210094916" }, "downloads": -1, "filename": "quotequail-0.2.1.tar.gz", "has_sig": false, "md5_digest": "df7b298ec51ae83d3c2b60ed6ffa54ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11007, "upload_time": "2016-04-10T11:03:34", "url": "https://files.pythonhosted.org/packages/74/e1/1fa2d3a10c9b73e0ea371113c1a863942e887bbb458265f2bb94c324e30d/quotequail-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "2093e3d7d32abe0f94aff8ed2dd6bca1", "sha256": "ceb06f95448414dfb11561bbe4886f9ad1b73894f1f0d7aa135e9eaafd980024" }, "downloads": -1, "filename": "quotequail-0.2.2.tar.gz", "has_sig": false, "md5_digest": "2093e3d7d32abe0f94aff8ed2dd6bca1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11162, "upload_time": "2016-05-26T00:05:18", "url": "https://files.pythonhosted.org/packages/4d/88/7816fe262cf295c0e3561794ef283afeecdc0704af0282babe3e4f62f73a/quotequail-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "177865dd7ffc5a291961ee520dde7263", "sha256": "dccbceac3c0f758ba7b5cbb93d8eaa8fb59e258e4e489cbfe95769237ca0512d" }, "downloads": -1, "filename": "quotequail-0.2.3.tar.gz", "has_sig": false, "md5_digest": "177865dd7ffc5a291961ee520dde7263", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11205, "upload_time": "2016-07-28T04:19:17", "url": "https://files.pythonhosted.org/packages/c4/24/34f921203685f6dd1242d9621610ce715f9892d1edfb80d66d194a83b207/quotequail-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "177865dd7ffc5a291961ee520dde7263", "sha256": "dccbceac3c0f758ba7b5cbb93d8eaa8fb59e258e4e489cbfe95769237ca0512d" }, "downloads": -1, "filename": "quotequail-0.2.3.tar.gz", "has_sig": false, "md5_digest": "177865dd7ffc5a291961ee520dde7263", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11205, "upload_time": "2016-07-28T04:19:17", "url": "https://files.pythonhosted.org/packages/c4/24/34f921203685f6dd1242d9621610ce715f9892d1edfb80d66d194a83b207/quotequail-0.2.3.tar.gz" } ] }