{ "info": { "author": "Peter Volf", "author_email": "do.volfp@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3 :: Only", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Utilities", "Typing :: Typed" ], "description": "[![Build Status](https://travis-ci.org/volfpeter/markyp-html.svg?branch=master)](https://travis-ci.org/volfpeter/markyp-html)\n[![Downloads](https://pepy.tech/badge/markyp-html)](https://pepy.tech/project/markyp-html)\n[![Downloads](https://pepy.tech/badge/markyp-html/month)](https://pepy.tech/project/markyp-html/month)\n[![Downloads](https://pepy.tech/badge/markyp-html/week)](https://pepy.tech/project/markyp-html/week)\n\n# markyp-html\n\n[markyp](https://github.com/volfpeter/markyp)-based HTML implementations.\n\n## Installation\n\nThe project is listed on the Python Package Index, it can be installed simply by executing `pip install markyp-html`.\n\n## Getting started\n\nIf you are not familiar with the basic concepts of `markyp`, please start by having a look at its documentation [here](https://github.com/volfpeter/markyp).\n\nThe following very short example creates the most basic Hello World webpage. As you can see, all it takes is a single `webpage()` call and string conversion.\n\n```Python\nfrom markyp_html import webpage\npage = webpage(\"Hello World!\", page_title=\"Hello World\")\n\n# Get the actual HTML markup.\nhtml = str(page) # or page.markup\nprint(html)\n```\n\nHere is a slightly more sophisticated Hello World example, that contains all kinds of metadata, some CSS, and a couple of simple text elements:\n\n```Python\nfrom markyp_html import meta, style, webpage\nfrom markyp_html.text import h1, p\nfrom markyp_html.inline import strong\n\npage = webpage(\n h1(\"markyp-html\"),\n strong(p(\"Hello World!\")),\n p(\"This page was generated using Python and markyp-html.\"),\n page_title=\"markyp-html demo page\",\n head_elements=[style(\"h1 {color:red;}\\np {color:blue;}\")],\n metadata=[\n meta.author(\"Website Author\"),\n meta.charset(\"UTF-8\"),\n meta.description(\"markyp-html demo\"),\n meta.keywords(\"markyp-html,markup,Python,HTML\"),\n meta.viewport(\"width=device-width, initial-scale=1.0\")\n ]\n)\n\n# Get the actual HTML markup.\nhtml = str(page) # or page.markup\nprint(html)\n```\n\n## `markyp-html` extensions\n\n`markyp-html` is built on [markyp](https://github.com/volfpeter/markyp). In general, extensions follow the `markyp-{domain-or-extension-name}` naming convention.\n\nHere is a list of extension built on top of `markyp-html`:\n\n- `markyp-highlightjs`: Code highlighting in HTML using `highlight.js` at https://github.com/volfpeter/markyp-highlightjs, contribution is welcome.\n- `markyp-bootstrap4`: Bootstrap 4 implementation at https://github.com/volfpeter/markyp-bootstrap4, contribution is welcome.\n\nIf you have created an open source `markyp-html` extension, please let us know and we will include your project in this list.\n\n## Community guidelines\n\nIn general, please treat each other with respect and follow the below guidelines to interact with the project:\n\n- _Questions, feedback_: Open an issue with a `[Question] ` title.\n- _Bug reports_: Open an issue with a `[Bug] ` title, an adequate description of the bug, and a code snippet that reproduces the issue if possible.\n- _Feature requests and ideas_: Open an issue with an `[Enhancement] ` title and a clear description of the enhancement proposal.\n\n## Contribution guidelines\n\nEvery form of contribution is welcome, including documentation improvements, tests, bug fixes, and feature implementations.\n\nPlease follow these guidelines to contribute to the project:\n\n- Make sure your changes match the documentation and coding style of the project, including [PEP 484](https://www.python.org/dev/peps/pep-0484/) type annotations.\n- `mypy` is used to type-check the codebase, submitted code should not produce typing errors. See [this page](http://mypy-lang.org/) for more information on `mypy`.\n- _Small_ fixes can be submitted simply by creating a pull request.\n- Non-trivial changes should have an associated [issue](#community-guidelines) in the issue tracker that commits must reference (typically by adding `#refs ` to the end of commit messages).\n- Please write [tests](#testing) for the changes you make (if applicable).\n\nIf you have any questions about contributing to the project, please contact the project owner.\n\nAs mentioned in the [contribution guidelines](#contribution-guidelines), the project is type-checked using `mypy`, so first of all, the project must pass `mypy`'s static code analysis.\n\nThe project is tested using `pytest`. The chosen test layout is that tests are outside the application code, see [this page](https://docs.pytest.org/en/latest/goodpractices.html#tests-outside-application-code) for details on what it means in practice.\n\nIf `pytest` is installed, the test set can be executed using the `pytest test` command from within the project directory.\n\nIf `pytest-cov` is also installed, a test coverage report can be generated by executing `pytest test --cov markyp_html` from the root directory of the project.\n\n## License - MIT\n\nThe library is open-sourced under the conditions of the MIT [license](https://choosealicense.com/licenses/mit/).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/volfpeter/markyp-html", "keywords": "html markup generator utility", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "markyp-html", "package_url": "https://pypi.org/project/markyp-html/", "platform": "", "project_url": "https://pypi.org/project/markyp-html/", "project_urls": { "Homepage": "https://github.com/volfpeter/markyp-html" }, "release_url": "https://pypi.org/project/markyp-html/0.1910.0/", "requires_dist": [ "markyp (>=0.1910)" ], "requires_python": ">=3.6", "summary": "HTML element implementations based on markyp.", "version": "0.1910.0" }, "last_serial": 5972547, "releases": { "0.1904.0": [ { "comment_text": "", "digests": { "md5": "2f0135590e7af2d66144c0b1ab816b38", "sha256": "ab5b935aad45ef8c3cf3e2261049795bf744a628af09aea2bcfdc8f0d8ad6966" }, "downloads": -1, "filename": "markyp_html-0.1904.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2f0135590e7af2d66144c0b1ab816b38", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12463, "upload_time": "2019-04-15T20:38:00", "url": "https://files.pythonhosted.org/packages/7d/eb/307a50388ea2d100e6d2c06daab09aa29980060a09bf0d8709646f374a94/markyp_html-0.1904.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0a8cb9336713a55af0f87607af968c4", "sha256": "8713029322254f4600f79830eb67ad669766ddf4823fba0ca77edfe45e4c2b4a" }, "downloads": -1, "filename": "markyp-html-0.1904.0.tar.gz", "has_sig": false, "md5_digest": "f0a8cb9336713a55af0f87607af968c4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 14962, "upload_time": "2019-04-15T20:38:02", "url": "https://files.pythonhosted.org/packages/08/ab/f9cfb48645f7859b9874124ec2bedf01abdc10a2575edd69e90b55dba373/markyp-html-0.1904.0.tar.gz" } ], "0.1905.0": [ { "comment_text": "", "digests": { "md5": "9c194ffd98726339b10674ae0c97b173", "sha256": "3bad95496904febc1fa3002040749899811a37789cabfa8c5c0fec4c492bf36f" }, "downloads": -1, "filename": "markyp_html-0.1905.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9c194ffd98726339b10674ae0c97b173", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12450, "upload_time": "2019-05-06T21:15:03", "url": "https://files.pythonhosted.org/packages/6d/81/42ea6e7ceaf1c4acc02e6eecac13698e2d35a51bab701926afbc8d2e53af/markyp_html-0.1905.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "305ebc3013e2a04e1e19c443636e5ba1", "sha256": "52c4e956bb8b2ba8ca61704223a49c134a7581a320ce1ada0a3b65beacc9fef5" }, "downloads": -1, "filename": "markyp-html-0.1905.0.tar.gz", "has_sig": false, "md5_digest": "305ebc3013e2a04e1e19c443636e5ba1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 16262, "upload_time": "2019-05-06T21:15:07", "url": "https://files.pythonhosted.org/packages/6c/a9/ece75186047c7d99e11d923e0acaa5e10e25a4fcc250428e5210350e10c2/markyp-html-0.1905.0.tar.gz" } ], "0.1906.0": [ { "comment_text": "", "digests": { "md5": "4e43fa0c2e6eed3379d6d2a0354212b0", "sha256": "c93d7eaf8ae9eb9f069230a4068ad37d92908e693b5f479f8aae078f3aecaa3d" }, "downloads": -1, "filename": "markyp_html-0.1906.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4e43fa0c2e6eed3379d6d2a0354212b0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12501, "upload_time": "2019-06-08T07:40:17", "url": "https://files.pythonhosted.org/packages/99/3b/2c6c48762332acc6b37ae8145bf8d9a45f03eab06d4bf4a09659c02682c7/markyp_html-0.1906.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f597ffce46a50e40e6a9aab62c60fc19", "sha256": "a83bd035eb9ceb4e3103a3041ab041f5f69458dd713420f277c118d29a0a415f" }, "downloads": -1, "filename": "markyp-html-0.1906.0.tar.gz", "has_sig": false, "md5_digest": "f597ffce46a50e40e6a9aab62c60fc19", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 16397, "upload_time": "2019-06-08T07:40:19", "url": "https://files.pythonhosted.org/packages/b7/1d/be87bea12e1e8b15ae8c26ad18dfd54a88974f55efeeeb001df241671b33/markyp-html-0.1906.0.tar.gz" } ], "0.1910.0": [ { "comment_text": "", "digests": { "md5": "48aba58cf0b3c782f33ff2df53c3fdbd", "sha256": "f22efdd3968dc0208e50ce0aaaf43e1d8a22faaf706d89858c402a73104d1c57" }, "downloads": -1, "filename": "markyp_html-0.1910.0-py3-none-any.whl", "has_sig": false, "md5_digest": "48aba58cf0b3c782f33ff2df53c3fdbd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12536, "upload_time": "2019-10-14T17:53:01", "url": "https://files.pythonhosted.org/packages/04/ba/3da08a5ab6860df7a6a00b84749ebe7ea3702963eb4f5bd48a1315699315/markyp_html-0.1910.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "badea94b4eeddcdaba3851ae988c2e70", "sha256": "1970ca608988b1896b0f49feb683a3d7a7351e3c3b4651d65624f736c813d176" }, "downloads": -1, "filename": "markyp-html-0.1910.0.tar.gz", "has_sig": false, "md5_digest": "badea94b4eeddcdaba3851ae988c2e70", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 16476, "upload_time": "2019-10-14T17:53:04", "url": "https://files.pythonhosted.org/packages/04/28/df1bb21b9ef77e0e37bdb59fafff8cfe7d33fec5b4efdf0e8578501ce85a/markyp-html-0.1910.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48aba58cf0b3c782f33ff2df53c3fdbd", "sha256": "f22efdd3968dc0208e50ce0aaaf43e1d8a22faaf706d89858c402a73104d1c57" }, "downloads": -1, "filename": "markyp_html-0.1910.0-py3-none-any.whl", "has_sig": false, "md5_digest": "48aba58cf0b3c782f33ff2df53c3fdbd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12536, "upload_time": "2019-10-14T17:53:01", "url": "https://files.pythonhosted.org/packages/04/ba/3da08a5ab6860df7a6a00b84749ebe7ea3702963eb4f5bd48a1315699315/markyp_html-0.1910.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "badea94b4eeddcdaba3851ae988c2e70", "sha256": "1970ca608988b1896b0f49feb683a3d7a7351e3c3b4651d65624f736c813d176" }, "downloads": -1, "filename": "markyp-html-0.1910.0.tar.gz", "has_sig": false, "md5_digest": "badea94b4eeddcdaba3851ae988c2e70", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 16476, "upload_time": "2019-10-14T17:53:04", "url": "https://files.pythonhosted.org/packages/04/28/df1bb21b9ef77e0e37bdb59fafff8cfe7d33fec5b4efdf0e8578501ce85a/markyp-html-0.1910.0.tar.gz" } ] }