{ "info": { "author": "Kevin Walchko", "author_email": "kevin.walchko@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2 :: Only" ], "description": "simplehtml\n============================\n\n.. image:: https://img.shields.io/pypi/v/simplehtml.svg\n\t:target: https://pypi.python.org/pypi/simplehtml/\n\t:alt: Latest Version\n.. image:: https://img.shields.io/pypi/l/simplehtml.svg\n\t:target: https://pypi.python.org/pypi/simplehtml/\n\t:alt: License\n.. image:: https://travis-ci.org/walchko/simplehtml.svg?branch=master\n\t:target: https://travis-ci.org/walchko/simplehtml\n.. image:: https://api.codacy.com/project/badge/Grade/af6dc70daea843dc8d48c190a0076ccb\n\t:target: https://www.codacy.com/app/kevin-walchko/simplehtml?utm_source=github.com&utm_medium=referral&utm_content=walchko/simplehtml&utm_campaign=Badge_Grade\n\nA light weight html library to create web pages dynamically. This is used in\nsome of my embedded applications to save me from reinventing the wheel over and\nover.\n\nInstall\n-----------\n\npip\n~~~~~\n\n::\n\n\tpip install simplehtml\n\nDevelopment\n~~~~~~~~~~~~~\n\n::\n\n\tgit clone https://github.com/walchko/simplehtml\n\tcd simplehtml\n\tpip install -e .\n\nUsage\n---------\n\nTo build a webpage with a simple table on it, do:\n\n.. code-block:: python\n\n\tfrom simplehtml import HTML, CSS\n\n\t# make a simple table\n\tdata = {\n\t\t\"header\": [5, 6, 7], # optional table header\n\t\t\"data\": [\n\t\t\t[\"hello\", \"hi\", \"ola\"],\n\t\t\t[1, 2, 3],\n\t\t\t[\"a\", \"b\", \"c\"]\n\t\t]\n\t}\n\n\thtml = HTML()\n\thtml.css(CSS.cssTable()) # make the table look pretty\n\thtml.h1('My awesome table')\n\thtml.table(data)\n\tprint html\n\nTo just create a simple webpage, you can just call standard tags like ``h1``,\n``h2``, ``img``, etc and create a page. Note, only a small (common?) selection\nof tags is supported.\n\n.. code-block:: python\n\n\tfrom simplehtml import HTML\n\n\t# create your own css\n\tcss = '''\n\tbody {\n\t\tbackground-color: white;\n\t}\n\n\th1 {\n\t\tcolor: black;\n\t\ttext-align: center;\n\t}\n\t'''\n\n\thtml = HTML()\n\thtml.css(css)\n\thtml.h1('Welcome to my page')\n\thtml.img('mypic.jpg')\n\thtml.p('this is a paragraph')\n\thtml.p('this is another paragraph')\n\thtml.footer('my code')\n\tprint html\n\nChange Log\n-------------\n\n========== ======= =============================\n2016-12-20 0.2.0 better table support and cleanup\n2016-12-14 0.0.1 init\n========== ======= =============================\n\nLicense\n-----------\n\n**The MIT License (MIT)**\n\nCopyright (c) 2016 Kevin J. Walchko\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/walchko/simplehtml", "keywords": "html,security", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "simplehtml", "package_url": "https://pypi.org/project/simplehtml/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/simplehtml/", "project_urls": { "Homepage": "https://github.com/walchko/simplehtml" }, "release_url": "https://pypi.org/project/simplehtml/0.2.0/", "requires_dist": [ "requests", "simplejson" ], "requires_python": "", "summary": "A simple html generation", "version": "0.2.0" }, "last_serial": 2531402, "releases": { "0.1.0": [], "0.2.0": [ { "comment_text": "", "digests": { "md5": "dbbe8a44239204f6ad82ab0a735456a7", "sha256": "3b9bd897ff14ef6a9b897550c5e121ce77fa7394be8083688aa274b57f6d998d" }, "downloads": -1, "filename": "simplehtml-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "dbbe8a44239204f6ad82ab0a735456a7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8975, "upload_time": "2016-12-20T23:06:10", "url": "https://files.pythonhosted.org/packages/e0/71/6c0bdd3840b1daf574a5025a4ea06afbf65cae42768fa6587dad42552f10/simplehtml-0.2.0-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dbbe8a44239204f6ad82ab0a735456a7", "sha256": "3b9bd897ff14ef6a9b897550c5e121ce77fa7394be8083688aa274b57f6d998d" }, "downloads": -1, "filename": "simplehtml-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "dbbe8a44239204f6ad82ab0a735456a7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8975, "upload_time": "2016-12-20T23:06:10", "url": "https://files.pythonhosted.org/packages/e0/71/6c0bdd3840b1daf574a5025a4ea06afbf65cae42768fa6587dad42552f10/simplehtml-0.2.0-py2-none-any.whl" } ] }