{ "info": { "author": "Oleksandr Shepetko", "author_email": "a@shepetko.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML" ], "description": "# HTMLer\n\nHTMLer is a simple HTML generation library for Python.\n\n\n## Build status\n\n[![Build Status](https://travis-ci.org/ashep/htmler.svg?branch=master)](https://travis-ci.org/ashep/htmler)\n[![Coverage](https://codecov.io/gh/ashep/htmler/branch/master/graph/badge.svg)](https://codecov.io/gh/ashep/htmler)\n\n\n## Features\n\n* Easy and flexible to use.\n* Outputs beautifully indented code\n\n\n## Requirements\n\nPython >=3.6\n\n\n## Installation\n\n```bash\npip install htmler\n```\n\n## Usage\n\nThis example:\n\n```python\nfrom htmler import Html, Head, Body, Meta, Title, Script, Link, P, A\n\ndoc = Html(\n Head(\n Meta(charset='utf-8'),\n Title('Hello World Document'),\n Script(src='main.js'),\n Link(rel='stylesheet', src='main.css'),\n ),\n Body(\n P(\n A('Hello World!', href=\"https://en.wikipedia.org/wiki/%22Hello,_World!%22_program\")\n )\n ),\n lang=\"en\",\n)\n\nprint(doc)\n```\n\nwill provide following output:\n\n```html\n\n\n \n \n \n Hello World Document\n \n \n \n \n \n

\n Hello World!\n

\n \n\n```\n\nIf indentation is not necessary, just call `render()` method with `indent` \nargument set to `False`:\n\n```python\n\nprint(doc.render(indent=False))\n``` \n\n\n## Documentation\n\nWork in progress.\n\n\n## Testing\n\n```bash\npython setup.py test\n```\n\nor\n\n```bash\nmake test\n```\n\n\n## Contributing\n\nIf you want to contribute to a project and make it better, your help is very \nwelcome. Contributing is also a great way to learn more about social coding on \nGithub, new technologies and and their ecosystems and how to make constructive, \nhelpful bug reports, feature requests and the noblest of all contributions: \na good, clean pull request.\n\n- Create a personal fork of the project on Github.\n- Clone the fork on your local machine. Your remote repo on Github is called \n `origin`.\n- Add the original repository as a remote called `upstream`.\n- If you created your fork a while ago be sure to pull upstream changes into \n your local repository.\n- Create a new branch to work on. Branch from `develop` if it exists, else from \n `master`.\n- Implement/fix your feature, comment your code.\n- Follow the code style of the project, including indentation.\n- If the project has tests run them.\n- Write or adapt tests as needed.\n- Add or change the documentation as needed.\n- Squash your commits into a single commit with git's interactive rebase. Create \n a new branch if necessary.\n- Push your branch to your fork on Github, the remote `origin`.\n- From your fork open a pull request in the correct branch. Target the project's \n `develop` branch if there is one, else go for `master`.\n- If the maintainer requests further changes just push them to your branch. \n- Once the pull request is approved and merged you can pull the changes from \n `upstream` to your local repo and delete your extra branch(es).\n\nAnd last but not least: Always write your commit messages in the present tense. \nYour commit message should describe what the commit, when applied, does to the \ncode \u2013 not what you did to the code.\n\n\n## Roadmap\n\n* Write documentation.\n\n\n## Support\n\nIf you have any issues or enhancement proposals feel free to report them via \nproject's [Issue Tracker](https://github.com/ashep/htmler/issues). \n\n\n## Authors\n\n* [Oleksandr Shepetko](https://shepetko.com) -- initial work.\n\n\n## Credits\n\nThis project was inspired by [PyHTML](https://github.com/cenkalti/pyhtml) \nlibrary.\n\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE.md](LICENSE.md) \nfile for details.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/ashep/htmler/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ashep/htmler", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "htmler", "package_url": "https://pypi.org/project/htmler/", "platform": "", "project_url": "https://pypi.org/project/htmler/", "project_urls": { "Download": "https://github.com/ashep/htmler/archive/master.zip", "Homepage": "https://github.com/ashep/htmler" }, "release_url": "https://pypi.org/project/htmler/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "A simple HTML generation library", "version": "0.1.3" }, "last_serial": 5630505, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "22ad955bf865e07172ada4459c967c25", "sha256": "bfea5a77a5dd734a18a04bb03f0426adefa983f3780142c8ac3ded66ba04d6d4" }, "downloads": -1, "filename": "htmler-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "22ad955bf865e07172ada4459c967c25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10399, "upload_time": "2019-07-04T22:40:26", "url": "https://files.pythonhosted.org/packages/42/63/6705b9dec0d508c51e6bef2dc99e7db39f02fb2f5277eaf89a77e46c2afc/htmler-0.1-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f6e8243b7c9aa3138ae963618d111d93", "sha256": "4e7f89f6e366b3e3c40e00c2fc1eaf34c0777d8cf1d1a2d809feffe3534737b3" }, "downloads": -1, "filename": "htmler-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f6e8243b7c9aa3138ae963618d111d93", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10427, "upload_time": "2019-07-04T22:45:41", "url": "https://files.pythonhosted.org/packages/db/86/464d3913da4b389f6cbd6c2fccb66315c8d219de7bd2c967966141df4af0/htmler-0.1.1-py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "71e04dd044781f8f887ac384bc6dec5d", "sha256": "cfe3cff7f5b849587e55b8926d7f0934cfc6e632ae52a52313904bb4d4c5e554" }, "downloads": -1, "filename": "htmler-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "71e04dd044781f8f887ac384bc6dec5d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10547, "upload_time": "2019-07-23T13:17:00", "url": "https://files.pythonhosted.org/packages/3b/7f/4bfd0d75a03eb615cf9d816bc25230cdd1ec533d0bd535498349d29a4ed6/htmler-0.1.2-py3-none-any.whl" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "703dd8b20525b0323d6dd44165ab1c4f", "sha256": "a8c9c80014204f00d375283b33d0fb749758fda613b72ca1fea836ead1a430ae" }, "downloads": -1, "filename": "htmler-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "703dd8b20525b0323d6dd44165ab1c4f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10621, "upload_time": "2019-08-04T12:35:48", "url": "https://files.pythonhosted.org/packages/c6/dd/7ab507bb88048e54b99a6af100472bb73f0b8fae30e74ea2641db97a9735/htmler-0.1.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "703dd8b20525b0323d6dd44165ab1c4f", "sha256": "a8c9c80014204f00d375283b33d0fb749758fda613b72ca1fea836ead1a430ae" }, "downloads": -1, "filename": "htmler-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "703dd8b20525b0323d6dd44165ab1c4f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10621, "upload_time": "2019-08-04T12:35:48", "url": "https://files.pythonhosted.org/packages/c6/dd/7ab507bb88048e54b99a6af100472bb73f0b8fae30e74ea2641db97a9735/htmler-0.1.3-py3-none-any.whl" } ] }