{ "info": { "author": "Aleix Llus\u00e0 Serra", "author_email": "timbaler@timbaler.cat", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: AsyncIO", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP" ], "description": "aiohttp_tal\n===========\n.. image:: https://travis-ci.com/allusa/aiohttp_tal.svg?branch=master\n :target: https://travis-ci.com/allusa/aiohttp_tal\n.. image:: https://img.shields.io/pypi/v/aiohttp-tal.svg\n :target: https://pypi.python.org/pypi/aiohttp-tal\n.. image:: https://readthedocs.org/projects/aiohttp-tal/badge/?version=latest\n :target: https://aiohttp-tal.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\nTAL_ Chameleon_ template engine renderer for `aiohttp.web`__.\nBased on aiohttp_jinja2_.\n\n.. _TAL: https://chameleon.readthedocs.io/en/latest/reference.html\n.. _Chameleon: https://chameleon.readthedocs.io\n.. _aiohttp_web: https://aiohttp.readthedocs.io/en/latest/web.html\n.. _aiohttp_jinja2: https://github.com/aio-libs/aiohttp_jinja2\n\n__ aiohttp_web_\n\n\nInstallation\n------------\nInstall from PyPI::\n\n pip install aiohttp-tal\n\n\nDeveloping\n----------\n\nInstall requirement and launch tests::\n\n pip install -r requirements-dev.txt\n pytest tests\n\n\nUsage\n-----\n\nFor more details on usage, see https://aiohttp-tal.readthedocs.io/en/latest/usage.html.\n\n\nBefore template rendering you have to setup *TAL environment* first:\n\n.. code-block:: python\n\n app = web.Application()\n aiohttp_tal.setup(app,\n loader=chameleon.PageTemplateLoader('/path/to/templates/folder'))\n\nImport:\n\n.. code-block:: python\n\n import aiohttp_tal\n import chameleon\n\nAfter that you may to use template engine in your *web-handlers*. The\nmost convenient way is to decorate a *web-handler*.\n\nUsing the function based web handlers:\n\n.. code-block:: python\n\n @aiohttp_tal.template('tmpl.pt')\n def handler(request):\n return {'name': 'Andrew', 'surname': 'Svetlov'}\n\n\n\nLicense\n-------\n\n``aiohttp_tal`` is offered under the GPLv3 license.\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see .\n\nCHANGES\n=======\n\n\n0.1.0 (2019-03-28)\n------------------\n\n- Initial release.\n Based on aiohttp-jinja2 copyright by Andrew Svetlo and aio-libs team.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/allusa/aiohttp_tal/", "keywords": "", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "aiohttp-tal", "package_url": "https://pypi.org/project/aiohttp-tal/", "platform": "", "project_url": "https://pypi.org/project/aiohttp-tal/", "project_urls": { "Homepage": "https://github.com/allusa/aiohttp_tal/" }, "release_url": "https://pypi.org/project/aiohttp-tal/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "TAL template renderer for aiohttp.web (http server for asyncio)", "version": "0.1.0" }, "last_serial": 5004521, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "329bf7501de35705b9fa63121a97785e", "sha256": "8dca0afc76079ca25828ab5e83d06c66f3def0bcfbda7414a2d5c5ba24499114" }, "downloads": -1, "filename": "aiohttp-tal-0.1.0.tar.gz", "has_sig": false, "md5_digest": "329bf7501de35705b9fa63121a97785e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16706, "upload_time": "2019-03-29T18:09:21", "url": "https://files.pythonhosted.org/packages/7a/5a/d39d9a72f021c848cbbeb5c258a49922a8677e18671b7eacbb0f3144db12/aiohttp-tal-0.1.0.tar.gz" } ], "0.1.0a1": [ { "comment_text": "", "digests": { "md5": "c60791a886b4396a7efea1fe312454b9", "sha256": "9495ac063856eb5188eb1d0b2fc89f60d7c332e04413b98fc2652699e279d752" }, "downloads": -1, "filename": "aiohttp-tal-0.1.0a1.tar.gz", "has_sig": false, "md5_digest": "c60791a886b4396a7efea1fe312454b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16741, "upload_time": "2019-03-29T12:00:21", "url": "https://files.pythonhosted.org/packages/89/fb/bcb27d3ec15cd206d1aa089d174b4872a55eba142b734884cb2bb9e5e837/aiohttp-tal-0.1.0a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "329bf7501de35705b9fa63121a97785e", "sha256": "8dca0afc76079ca25828ab5e83d06c66f3def0bcfbda7414a2d5c5ba24499114" }, "downloads": -1, "filename": "aiohttp-tal-0.1.0.tar.gz", "has_sig": false, "md5_digest": "329bf7501de35705b9fa63121a97785e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16706, "upload_time": "2019-03-29T18:09:21", "url": "https://files.pythonhosted.org/packages/7a/5a/d39d9a72f021c848cbbeb5c258a49922a8677e18671b7eacbb0f3144db12/aiohttp-tal-0.1.0.tar.gz" } ] }