{ "info": { "author": "Damien MARI\u00c9", "author_email": "damien@dam.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "Lys\n===\n.. image:: https://img.shields.io/pypi/v/lys.svg\n :target: https://pypi.python.org/pypi/lys\n.. image:: https://travis-ci.org/mdamien/lys.svg?branch=master\n :target: https://travis-ci.org/mdamien/lys\n\n*Simple HTML templating for Python*\n\n.. code:: python\n\n from lys import L\n\n print(L.body / (\n L.h1 / 'What is love ?',\n L.ul / (\n L.li / 'Something in the air',\n L.li / 'You can\\'t catch it',\n L.li / (\n L.a(href=\"https://en.wikipedia.org/wiki/Love\") / 'Keep trying'\n ),\n ),\n ))\n\nTo install, :code:`pip3 install lys`\n\nA few more tricks:\n\n.. code:: python\n\n # raw() to mark the content as already escaped\n from lys import raw\n L.p / raw('')\n\n # attributes '_' are replaced with '-'\n L.button(data_id=\"123\") / 'click me'\n # => \n\n # shortcut to add classes and ids easily\n L.button('#magic-button.very-big', onclick='add_it()') / 'Magic !'\n\n # one easy way to do loops and ifs\n (\n L.h1 / 'Welcome',\n (L.ul / (\n 'Try one of our recipes:',\n (L.li / (\n L.a(href=recipe.link) / recipe.name\n ) for recipe in recipes)\n ) if len(recipes) > 0 else ''),\n )\n\n**Inspiration** : `pyxl `_, `React `_\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mdamien/lys", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lys", "package_url": "https://pypi.org/project/lys/", "platform": "", "project_url": "https://pypi.org/project/lys/", "project_urls": { "Homepage": "http://github.com/mdamien/lys" }, "release_url": "https://pypi.org/project/lys/0.3/", "requires_dist": null, "requires_python": "", "summary": "Simple HTML templating for Python", "version": "0.3" }, "last_serial": 3723347, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a8e3af846d9534f529b2b10c9c012da3", "sha256": "ed834d32ebc145ad5cfc9dc3c86873074f793dcc3b1c94f1d835b8e7aac30d0b" }, "downloads": -1, "filename": "lys-0.1.tar.gz", "has_sig": false, "md5_digest": "a8e3af846d9534f529b2b10c9c012da3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2975, "upload_time": "2016-09-05T20:31:37", "url": "https://files.pythonhosted.org/packages/12/35/8337137f1ad665a45823415c5188eaa10e7d84429ce2b384a4ddf7381b63/lys-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e5715bb8a35940d5802036e66db42713", "sha256": "b4431199bceac1bb5c23c959fa994b131085ae94bcedb10a265a5d979356cc42" }, "downloads": -1, "filename": "lys-0.2.tar.gz", "has_sig": false, "md5_digest": "e5715bb8a35940d5802036e66db42713", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3315, "upload_time": "2016-09-06T02:00:24", "url": "https://files.pythonhosted.org/packages/35/6f/30c48c2f4f76890b0014c4e739831c45693adf52493ff2fb855e7fce6181/lys-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "9440dcbabde29a1e7f4344fa182fd592", "sha256": "3d670c82d4b3204b88ffea941c0d02bd5448ff3c1c448cd6d1dd195aa9ee36b5" }, "downloads": -1, "filename": "lys-0.3.tar.gz", "has_sig": false, "md5_digest": "9440dcbabde29a1e7f4344fa182fd592", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3813, "upload_time": "2018-04-01T08:29:56", "url": "https://files.pythonhosted.org/packages/c4/17/35558e4349353938f0bde471a26c0cf09e8f1a5baa20a8bbbbbec136568e/lys-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9440dcbabde29a1e7f4344fa182fd592", "sha256": "3d670c82d4b3204b88ffea941c0d02bd5448ff3c1c448cd6d1dd195aa9ee36b5" }, "downloads": -1, "filename": "lys-0.3.tar.gz", "has_sig": false, "md5_digest": "9440dcbabde29a1e7f4344fa182fd592", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3813, "upload_time": "2018-04-01T08:29:56", "url": "https://files.pythonhosted.org/packages/c4/17/35558e4349353938f0bde471a26c0cf09e8f1a5baa20a8bbbbbec136568e/lys-0.3.tar.gz" } ] }