{ "info": { "author": "Cenk Alt\u0131", "author_email": "cenkalti@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "PyHTML\n======\n\n.. image:: https://travis-ci.org/cenkalti/pyhtml.svg?branch=master\n :target: https://travis-ci.org/cenkalti/pyhtml?branch=master\n\n.. image:: https://coveralls.io/repos/github/cenkalti/pyhtml/badge.svg?branch=master\n :target: https://coveralls.io/github/cenkalti/pyhtml?branch=master\n\nPyHTML is a simple HTML generation library for Python.\n\nInspired by `Flask-HTMLBuilder `_\nand `this gist `_.\n\n\nFeatures\n--------\n\n* Compatible with Python 2 and 3\n* Outputs beautifully indented code\n* Some tags have sensible defaults\n* Have Blocks for filling them later\n\n\nInstalling\n----------\n\n.. code-block:: bash\n\n $ pip install pyhtml\n\n\nDocumentation\n-------------\n\nSee the docstring on pyhtml.py file.\n\n\nExample\n-------\n\n.. code-block:: python\n\n from pyhtml import *\n\n\n def f_links(ctx):\n for title, page in [('Home', '/home.html'),\n ('Login', '/login.html')]:\n yield li(a(href=page)(title))\n\n\n t = html(\n head(\n title('Awesome website'),\n script(src=\"http://path.to/script.js\")\n ),\n body(\n header(\n img(src='/path/to/logo.png'),\n nav(\n ul(f_links)\n )\n ),\n div(\n lambda ctx: \"Hello %s\" % ctx.get('user', 'Guest'),\n 'Content here'\n ),\n footer(\n hr,\n 'Copyright 2013'\n )\n )\n )\n\n print t.render(user='Cenk')\n\n\nThe above code is rendered as:\n\n.. code-block:: html\n\n \n \n \n \n Awesome website\n \n \n \n \n
\n \n \n
\n
\n Hello Cenk\n Content here\n
\n \n \n \n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cenkalti/pyhtml", "keywords": "html template markup", "license": "", "maintainer": "", "maintainer_email": "", "name": "PyHTML", "package_url": "https://pypi.org/project/PyHTML/", "platform": "", "project_url": "https://pypi.org/project/PyHTML/", "project_urls": { "Homepage": "https://github.com/cenkalti/pyhtml" }, "release_url": "https://pypi.org/project/PyHTML/1.3.1/", "requires_dist": null, "requires_python": "", "summary": "Simple HTML generator for Python", "version": "1.3.1" }, "last_serial": 2908395, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "223e8b966902c0886784a147303e472d", "sha256": "ab1032d6f8e6ee2a1ec04e1e59d249ed3e1a1a0f83f8f57c7b9801558d06220b" }, "downloads": -1, "filename": "PyHTML-0.1.0.tar.gz", "has_sig": false, "md5_digest": "223e8b966902c0886784a147303e472d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4328, "upload_time": "2013-06-02T08:55:47", "url": "https://files.pythonhosted.org/packages/05/a6/c9f58f1bc83789a1691f4067e9cc75c14413b0b0754680a1022be0da2c7e/PyHTML-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "348d42e6edefd4db39c93c3a25f77595", "sha256": "4be47c14ae0334b8a0b15d44636df272e783c84065b90a284c9248983479d8da" }, "downloads": -1, "filename": "PyHTML-0.1.1.tar.gz", "has_sig": false, "md5_digest": "348d42e6edefd4db39c93c3a25f77595", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5504, "upload_time": "2013-06-20T08:37:53", "url": "https://files.pythonhosted.org/packages/94/58/34da093f46f0fc26560e7356bbf1a8a5cbf19cd35c31902b80f9fbeaae27/PyHTML-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6e6abd14f2727416498176ba0ee5ee2b", "sha256": "41d275422f2b8cccb63b11d99651aef573df3df1cbd96204206a0c87f3affcb5" }, "downloads": -1, "filename": "PyHTML-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6e6abd14f2727416498176ba0ee5ee2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5611, "upload_time": "2013-06-28T19:01:26", "url": "https://files.pythonhosted.org/packages/97/4b/09c3f39052c0e85a4f40e6175b03aaf2f0f08a7afbd2d6bc35754d5bd6e6/PyHTML-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "b6c53bff59493d7ece4ba11f11262fcf", "sha256": "4edd523cee1e1088d8c698da4ee8ac604a38b0129fe67e0556d907a8f1f49b99" }, "downloads": -1, "filename": "PyHTML-0.3.0.tar.gz", "has_sig": false, "md5_digest": "b6c53bff59493d7ece4ba11f11262fcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5652, "upload_time": "2013-07-01T21:27:51", "url": "https://files.pythonhosted.org/packages/54/d1/aa82b5a5f0efc8171e8b529297d1f3101a240a5e1dcd619f5cf8e671e592/PyHTML-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "4d0f4953f425c5e3698d4213832b1bb1", "sha256": "099edcf131f5e53518d67a4c9d9c4f69f321230cb122d46a95ed51c3796901c3" }, "downloads": -1, "filename": "PyHTML-0.4.0.tar.gz", "has_sig": false, "md5_digest": "4d0f4953f425c5e3698d4213832b1bb1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5821, "upload_time": "2013-07-07T10:43:07", "url": "https://files.pythonhosted.org/packages/b4/22/bcc035f5c1ef3c7d695b6fcf13d3d72f1fbcb6d3a772fc9f5f56788c9dff/PyHTML-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "f50f5f4db6040a83ba0cba1eac98e02d", "sha256": "c01f83722cc0f28655484808bad2ee58ed6161d2855ff4949f64d97cc4a4c8f6" }, "downloads": -1, "filename": "PyHTML-0.5.0.tar.gz", "has_sig": false, "md5_digest": "f50f5f4db6040a83ba0cba1eac98e02d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5885, "upload_time": "2014-01-17T20:00:31", "url": "https://files.pythonhosted.org/packages/74/34/70a02236f81343a913b7981c7fdf8efb7215164961787e855b2187f2c048/PyHTML-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "15dc8cf1f9d69d3a313b15750fa66e70", "sha256": "5a29ce5172f07e70aedd911471776674e73a43d682786b6d9b7763abaafb384c" }, "downloads": -1, "filename": "PyHTML-0.6.0.tar.gz", "has_sig": false, "md5_digest": "15dc8cf1f9d69d3a313b15750fa66e70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6065, "upload_time": "2016-12-06T07:47:37", "url": "https://files.pythonhosted.org/packages/62/d4/9a0b072bf9e4a7f2a2c65b323a46ad4347f695b44c514d4511190b6f6fc7/PyHTML-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "052a269dcba673fc203972e59fdfe704", "sha256": "cab84945238b15c442456a0d0fefccc3d3bd7c61382c7ae31cfd4caebdd5d628" }, "downloads": -1, "filename": "PyHTML-0.7.0.tar.gz", "has_sig": false, "md5_digest": "052a269dcba673fc203972e59fdfe704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6086, "upload_time": "2016-12-06T08:53:00", "url": "https://files.pythonhosted.org/packages/d1/2b/e36dfd8682ac5b455e43faf8c5ba98840e5d06e19f290b121b41aaacef2c/PyHTML-0.7.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f82231eb9057105b46f22b414ff7c8d2", "sha256": "b18fbff4b937efcbfd4951e5b5332b6c5f07c0873f8992a7dfc6a67b4832b192" }, "downloads": -1, "filename": "PyHTML-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f82231eb9057105b46f22b414ff7c8d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6128, "upload_time": "2017-05-09T12:37:44", "url": "https://files.pythonhosted.org/packages/4e/a0/76d8fff0cfb57e8ab059a11a3dd1ddabf7cdd9201181b48a5da4b07551ac/PyHTML-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f9ae9b3bbad8cf2461ebe81d2c417404", "sha256": "fe787d422d27d114271aaaab5341028aa27546ab67684a2d92ad79758f71b99b" }, "downloads": -1, "filename": "PyHTML-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f9ae9b3bbad8cf2461ebe81d2c417404", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6127, "upload_time": "2017-05-09T16:51:55", "url": "https://files.pythonhosted.org/packages/98/fa/14bbebd40ffc4e3403e2411b4990b5366a02b8afe1252c132148cba94c0d/PyHTML-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "43b26550d01dd1cd077d35fea54d2c07", "sha256": "7c5639a03e405640dc48f92f7dcfef0653bcb56f9acd1d2de1b008216ce88bc2" }, "downloads": -1, "filename": "PyHTML-1.1.1.tar.gz", "has_sig": false, "md5_digest": "43b26550d01dd1cd077d35fea54d2c07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6124, "upload_time": "2017-05-09T19:26:04", "url": "https://files.pythonhosted.org/packages/69/7f/c1b26d9416d93713db7d379cc16e28f1e29b08c7d5b555056558d88b46c2/PyHTML-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "13c671db8db860fe0e3bf62019411e21", "sha256": "249bc747ca4ddf7f7a560a12eff997bcf0641114bd6f406720bd7611251719b6" }, "downloads": -1, "filename": "PyHTML-1.1.2.tar.gz", "has_sig": false, "md5_digest": "13c671db8db860fe0e3bf62019411e21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6129, "upload_time": "2017-05-10T13:36:39", "url": "https://files.pythonhosted.org/packages/fc/69/91b304e8082edec184c51ea117738ab059440f7b040013c5b12565e74470/PyHTML-1.1.2.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "ac7361ebe31e3b1fec3682da16fe943e", "sha256": "e1eb78ab1aa378ca82b08cfd0bfb3d8d79a57616a7163c34357acc9324041c22" }, "downloads": -1, "filename": "PyHTML-1.2.0.tar.gz", "has_sig": false, "md5_digest": "ac7361ebe31e3b1fec3682da16fe943e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6148, "upload_time": "2017-05-28T10:13:01", "url": "https://files.pythonhosted.org/packages/87/ea/5fe7fcef741762187b43158eb9eb53c6cedb8208d53e2e38ef302b23f046/PyHTML-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "f0d8856e2875879fec94467933ca7c60", "sha256": "12c47a497b9b687fe5c2590a33d4f617f94fb5e9e95d20c35a0c764c5797aa20" }, "downloads": -1, "filename": "PyHTML-1.2.1.tar.gz", "has_sig": false, "md5_digest": "f0d8856e2875879fec94467933ca7c60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6160, "upload_time": "2017-05-28T10:29:19", "url": "https://files.pythonhosted.org/packages/d0/3d/83fc0ed4ed2fbda33e1b3d7bcb10a11ac4c7eeeb200b20f476f1bb6dfe33/PyHTML-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "54b3521c3deb7cbd5a8af82ede1824d2", "sha256": "b43bca50678668cf7aeb49daf0967d80c970a27bbb4a189c4e9ccee07ac233ae" }, "downloads": -1, "filename": "PyHTML-1.2.2.tar.gz", "has_sig": false, "md5_digest": "54b3521c3deb7cbd5a8af82ede1824d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6160, "upload_time": "2017-05-28T13:00:38", "url": "https://files.pythonhosted.org/packages/3e/95/9c358e2dee8bd885941ea00c89970ee59add1d61aae9e26b75a6fc6b9608/PyHTML-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "e0b8a7e3e5b1eeaf58d7539ad5c0df32", "sha256": "7b480931c6f1541ef4a51a753640095b6af1935282d8d5da14bbf817cd4abc77" }, "downloads": -1, "filename": "PyHTML-1.2.3.tar.gz", "has_sig": false, "md5_digest": "e0b8a7e3e5b1eeaf58d7539ad5c0df32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6174, "upload_time": "2017-05-28T13:24:30", "url": "https://files.pythonhosted.org/packages/a9/a1/8e79cca54eec22977b5f5bb9860c11253e8065cf23d04483217c109b9422/PyHTML-1.2.3.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "2ba62cd6d0b897abc756ee8dc2ce4a61", "sha256": "6049e3543c9fb8ef07703910deb5da2ab4ff9070fd3c21b132a5922f2a49e617" }, "downloads": -1, "filename": "PyHTML-1.3.0.tar.gz", "has_sig": false, "md5_digest": "2ba62cd6d0b897abc756ee8dc2ce4a61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6259, "upload_time": "2017-05-29T05:12:59", "url": "https://files.pythonhosted.org/packages/61/17/194666e5a693d2afa95628aaa739acc8695c91d34e5b8fbb9c59f508b764/PyHTML-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "3e829fa8ec2e36320848983aa08f0e1b", "sha256": "374f1abc56975eff8b77c170a5db6e54b973a5a691e845a42d20c9bfab17b499" }, "downloads": -1, "filename": "PyHTML-1.3.1.tar.gz", "has_sig": false, "md5_digest": "3e829fa8ec2e36320848983aa08f0e1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6247, "upload_time": "2017-05-30T04:41:18", "url": "https://files.pythonhosted.org/packages/08/29/bd4070f39ff56ee35bd6b81dd687fc48f40598b56f0d827b8f9acd78f087/PyHTML-1.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3e829fa8ec2e36320848983aa08f0e1b", "sha256": "374f1abc56975eff8b77c170a5db6e54b973a5a691e845a42d20c9bfab17b499" }, "downloads": -1, "filename": "PyHTML-1.3.1.tar.gz", "has_sig": false, "md5_digest": "3e829fa8ec2e36320848983aa08f0e1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6247, "upload_time": "2017-05-30T04:41:18", "url": "https://files.pythonhosted.org/packages/08/29/bd4070f39ff56ee35bd6b81dd687fc48f40598b56f0d827b8f9acd78f087/PyHTML-1.3.1.tar.gz" } ] }