{ "info": { "author": "Stefan Heinemann", "author_email": "stefan.heinemann@liip.ch.com", "bugtrack_url": null, "classifiers": [], "description": "HTML2Kirby\n==========\n\n|Build Status| |codecov|\n\nThis is a html to\n`Kirbytext `__ converter\nfor python.\n\nIt is currently in heavy development.\n\nInstallation\n------------\n\nHTML2Kirby is tested and suported from Python 3.4 upwards\n\nInstall via pip:\n\n::\n\n pip install html2kirby\n\nUsage\n-----\n\nTo use this package, simply import the package and feed it some html:\n\n::\n\n from html2kirby import HTML2Kirby\n\n formatter = HTML2Kirby()\n formatter.feed(\"\"\"\"kittens\"\"\")\n\nYou can then access the result via ``.kirbytext`` attribute:\n\n::\n\n print(formatter.kirbytext)\n # prints (image: https://placekitten.com/200/300 alt: kittesn are cute)\n\nTesting\n-------\n\nMake sure you have Pytest installed (``pip install pytest``). Then just\ninvoke it:\n\n::\n\n pytest\n\nSupported Markup\n----------------\n\nAs of now, following tags are supported:\n\n- Simple formatting (````, ````, ````, ````)\n- Headings (``

``, ``

``, ...)\n- Images (````)\n- line breaks (``
``)\n- Paragraphs (``

``)\n- Blocks (``

``, ````, ``
``, ``
``)\n-  Links (````)\n-  Horizontal rulers (``
``)\n- Lists (``
    ``, ``
      ``, ``
    1. ``)\n\nPassed markup\n~~~~~~~~~~~~~\n\nMarkup tags that aren't implemented are just dropped except for\nfollowing tags:\n\n- table\n- tr\n- td\n- th\n- tbody\n- thead\n- strike\n- u\n- abbr\n- del\n- svg\n\nThey will just be kept in the Kirbytext which should result in a valid\noutput.\n\nIssues\n------\n\nIn python3.4, the |unescape| doesn't quite convert all of the html 5\nescaped characters such as \u2013 (en dash).\n\n.. |Build Status| image:: https://travis-ci.org/liip/html2kirby.svg?branch=master\n :target: https://travis-ci.org/liip/html2kirby\n.. |codecov| image:: https://codecov.io/gh/liip/html2kirby/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/liip/html2kirby\n.. |unescape| image:: https://docs.python.org/3/library/html.html?highlight=html#html.unescape", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/liip/html2kirby/archive/0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/liip/html2kirby", "keywords": "kirby,kirbytext,html", "license": "", "maintainer": "", "maintainer_email": "", "name": "html2kirby", "package_url": "https://pypi.org/project/html2kirby/", "platform": "", "project_url": "https://pypi.org/project/html2kirby/", "project_urls": { "Download": "https://github.com/liip/html2kirby/archive/0.1.tar.gz", "Homepage": "https://github.com/liip/html2kirby" }, "release_url": "https://pypi.org/project/html2kirby/0.2/", "requires_dist": null, "requires_python": "", "summary": "A HTML to Kirbytext converter", "version": "0.2" }, "last_serial": 3281090, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "172f1011072e8b57db56fd47400c0752", "sha256": "58b2e98387395b8e7a3f69aab1cc35b21689e258ffbee417e75d92c1d1eba7d5" }, "downloads": -1, "filename": "html2kirby-0.1.tar.gz", "has_sig": false, "md5_digest": "172f1011072e8b57db56fd47400c0752", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4149, "upload_time": "2017-08-15T13:51:20", "url": "https://files.pythonhosted.org/packages/65/67/0ba4988f079fdec00eb5d654317e23d5dcb74c1a3e65b11b6d1d9ea0bab6/html2kirby-0.1.tar.gz" } ], "0.1-1": [ { "comment_text": "", "digests": { "md5": "a32e4e6ed0bde9e057d764f73b357396", "sha256": "1816774e15d0476fda2ce1b0f6bcd93a14db996a3dd0437d70cf82dc700bb623" }, "downloads": -1, "filename": "html2kirby-0.1-1.tar.gz", "has_sig": false, "md5_digest": "a32e4e6ed0bde9e057d764f73b357396", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5122, "upload_time": "2017-10-23T07:48:08", "url": "https://files.pythonhosted.org/packages/78/fe/732be0c1247d780258a00458a18618b897a0402c577e87b7e02bf2d94a0f/html2kirby-0.1-1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d0e9bce71f68b1a0c23151491255c2c7", "sha256": "482a3d969f6fa65b7c4cb19d2458bac880f84a2962e3043be1501cd550e1f3fb" }, "downloads": -1, "filename": "html2kirby-0.2.tar.gz", "has_sig": false, "md5_digest": "d0e9bce71f68b1a0c23151491255c2c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5442, "upload_time": "2017-10-26T14:02:07", "url": "https://files.pythonhosted.org/packages/88/c8/2b5e5f24a51f52d2292c9d182d53d4c1606d8929ca26fdb62b3b6d9a5a30/html2kirby-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d0e9bce71f68b1a0c23151491255c2c7", "sha256": "482a3d969f6fa65b7c4cb19d2458bac880f84a2962e3043be1501cd550e1f3fb" }, "downloads": -1, "filename": "html2kirby-0.2.tar.gz", "has_sig": false, "md5_digest": "d0e9bce71f68b1a0c23151491255c2c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5442, "upload_time": "2017-10-26T14:02:07", "url": "https://files.pythonhosted.org/packages/88/c8/2b5e5f24a51f52d2292c9d182d53d4c1606d8929ca26fdb62b3b6d9a5a30/html2kirby-0.2.tar.gz" } ] }