{ "info": { "author": "Tim Cuthbertson", "author_email": "tim@gfxmonk.net", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent" ], "description": "Gmail Filter for `Chrome Edit Server `_\n=============================================================================================\n\nConverts a (tiny) subset of HTML -> text and back.\nEmpirically this should be enough to edit \"plain text\"\nin gmail's new compose window, but it's somewhat fragile.\n\n>>> c = GmailCodec()\n>>> content = (\"3



\"\n... \"2


\"\n... \"1

\"\n... \"0
\"\n... \"EOF
\")\n\n>>> plaintext = c.decode(content)\n>>> print plaintext\n3\n\n\n\n2\n\n\n1\n\n0\nEOF\n>>> html = c.encode(plaintext)\n>>> print html\n3



2


1

0
EOF\n\n\nAlso, for entities and preserving of unknown tags:\n\n>>> print c.encode(c.decode('<foo!'))\n<foo!\n\nEntities:\n\n>>> print repr(c.decode(\"  \"))\n' '\n>>> print repr(c.encode(c.decode(\"  \")))\n'  '\n\nTabs:\n\n>>> print repr(c.encode('\\t'))\n'    '\n\nSpacing:\n\n>>> print c.encode('> 1')\n>    1\n\n\nRequirements\n------------\n\n* `chrome-edit-server `_\n\nInstallation\n------------\n\nInstall from PyPI by running::\n\n pip install chrome-edit-server-gmail-filter\n\nWhen you next use an \"Edit server\"-compatible chrome plugin (like \"TextAid\" or\n\"Edit With Emacs\") from Gmail, this filter will be invoked automatically.\n\n", "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/coddingtonbear/chrome-edit-server-gmail-filter", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "chrome-edit-server-gmail-filter", "package_url": "https://pypi.org/project/chrome-edit-server-gmail-filter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/chrome-edit-server-gmail-filter/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/coddingtonbear/chrome-edit-server-gmail-filter" }, "release_url": "https://pypi.org/project/chrome-edit-server-gmail-filter/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "A chrome-edit-server plugin allowing one to edit Gmail messages", "version": "0.3.1" }, "last_serial": 1386150, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "4bda7570b44092776aafd5fb199b6004", "sha256": "f4bd0e315f7c088506048dae736d190b941a629dc023a0be555f5c70437dd936" }, "downloads": -1, "filename": "chrome-edit-server-gmail-filter-0.3.tar.gz", "has_sig": false, "md5_digest": "4bda7570b44092776aafd5fb199b6004", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2443, "upload_time": "2014-08-24T23:27:53", "url": "https://files.pythonhosted.org/packages/f7/1d/062b37090aeb6393e20c7222b0bdf723f5e27f5dd4d1b321dbb1d16be72b/chrome-edit-server-gmail-filter-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "3096aebc5a7369394b056c3c8ed0eb7e", "sha256": "5e23d9ceb67eb6aea60db43caa80b183e72a461e84295e6b673a6aff70ba2746" }, "downloads": -1, "filename": "chrome-edit-server-gmail-filter-0.3.1.tar.gz", "has_sig": false, "md5_digest": "3096aebc5a7369394b056c3c8ed0eb7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2819, "upload_time": "2015-01-17T20:53:19", "url": "https://files.pythonhosted.org/packages/48/c7/ca05ee3f1657c46f8bf8d6f1179e26db093572ea38a0db9804f3395bcbae/chrome-edit-server-gmail-filter-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3096aebc5a7369394b056c3c8ed0eb7e", "sha256": "5e23d9ceb67eb6aea60db43caa80b183e72a461e84295e6b673a6aff70ba2746" }, "downloads": -1, "filename": "chrome-edit-server-gmail-filter-0.3.1.tar.gz", "has_sig": false, "md5_digest": "3096aebc5a7369394b056c3c8ed0eb7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2819, "upload_time": "2015-01-17T20:53:19", "url": "https://files.pythonhosted.org/packages/48/c7/ca05ee3f1657c46f8bf8d6f1179e26db093572ea38a0db9804f3395bcbae/chrome-edit-server-gmail-filter-0.3.1.tar.gz" } ] }