{ "info": { "author": "Raphi", "author_email": "r.gaziano@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "===\nTIE\n===\n\nTemplate Illiterate Engine\n\n.. image:: https://raw.github.com/raphigaziano/TIE/master/TIE.jpg\n :alt: Twin Ion Engine of Awesomeness\n :align: center\n :scale: 50 %\n\n.. contents::\n :local:\n :backlinks: top\n\nWhat is TIE ?\n-------------\n\nThe TIE library provides a set of classes and utilities to facilitate the \ndefinition of very simple, personal template languages.\n\nThe library provides a basic substitution engine based on regular expressions, \nwhich doesn't recognize any particular syntax by itself; it's up to the user to \nprovide it with his own tag patterns as well as their optional, custom \nbehaviour.\n\nTIE also provides simple tools to ease the definition of those custom tags,\nand aims to allow for easy customisation or extension (either by providing\ncallbacks or by subclassing the provided types).\n\nDo I need it ?\n--------------\n\nMaybe. Maybe not.\n\nIf you need a full-fledged template engine,\nwith lots of features and good performances,\nthen TIE is probably not for you.\nYou'll be far better off using an already established template language -\n`Quite a lot of them `_ are already \npart of the python ecosystem and have more than proven themselves.\nTrying to emulate one of those with TIE *might* be possible,\nbut will surely prove very cumbersome and inneficient.\n \nOn the other hand, TIE might still be overkill if your requirements are very\nsimple.\nPython's batteries include a very nice and quite powerful string formatting syntax,\nand also provides a Template class for slightly more complex operations. \nThose built-in features might be more than sufficient for what you have in mind. \n(See http://docs.python.org/2/library/string.html for more info on python's \nstring operations.)\n\nTIE aims to step in when python's built-in tools might be enough for the job, \nbut become too unwieldy to handle the task in a straight-forward way.\n\nInstallation\n------------\n\nYou can install TIE by simply using pip (this is the recomanded way):\n\n::\n\n pip install tie\n\nIf you must, you can also use easy_install:\n\n::\n\n easy_install tie\n\nAlternativeley, you could also clone the project's repository and run the \nsetup script:\n\n::\n\n git clone https://github.com/raphigaziano/TIE\n cd TIE/\n python setup.py install\n\nGetting Started\n---------------\n\nFor most basic uses, rendering a template with TIE involves 3 simple steps:\n\n - Register your tag patterns\n - Wrap your template(s) text in (a) Template object(s)\n - Pass your templates the data they need to render them\n\nA naive exemple could look like this:\n\n.. code-block:: python\n\n >>> import tie\n >>> # Register a tag pattern\n >>> tie.tag.register(\"name\")\n >>> # Instanciate a Template object\n >>> my_template = tie.Template(\"Hello, name!\")\n >>> # Render it!\n >>> res = my_template(name=\"raphi\")\n >>> print(res)\n Hello, raphi!\n >>> res = my_template(name=\"Darth Vader, lord of the sith\")\n >>> print(res)\n Hello, Darth Vader, lord of the sith!\n\nRead the (still incomplete)\n`Full documentation `_\nhosted on readthedocs.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pypi.python.org/pypi/TIE", "keywords": "templating", "license": "LICENCE.txt", "maintainer": "Raphi", "maintainer_email": "r.gaziano@gmail.com", "name": "TIE", "package_url": "https://pypi.org/project/TIE/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/TIE/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://pypi.python.org/pypi/TIE" }, "release_url": "https://pypi.org/project/TIE/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A minimalist template ENGINE allowing users to define their own simple templating languages.", "version": "0.1.0" }, "last_serial": 783125, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cbca9d39dae281f9a4bed77f4fbd09f8", "sha256": "390c2e706daed46fd50c134c6ef7ea01cad4ccb71091adbcfd7a4d2799a2f41c" }, "downloads": -1, "filename": "TIE-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cbca9d39dae281f9a4bed77f4fbd09f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18527, "upload_time": "2013-06-30T12:18:09", "url": "https://files.pythonhosted.org/packages/a7/67/7b02312588da4e6e476ae11c00185643027ed130d3165fbf7a17f0fd74b1/TIE-0.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "6f6385470beda43981c777f257561afe", "sha256": "3f5f7c2c6e46890f238292daa09060484d49b3f337771758dc32a4e7d0628636" }, "downloads": -1, "filename": "TIE-0.1.0.win32.exe", "has_sig": false, "md5_digest": "6f6385470beda43981c777f257561afe", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 74841, "upload_time": "2013-06-30T12:18:12", "url": "https://files.pythonhosted.org/packages/7f/8a/cf4a5eeb1f15ae3d98005e0d3b9aeaaaea0aacc45a1d7a1aeea5014ade06/TIE-0.1.0.win32.exe" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cbca9d39dae281f9a4bed77f4fbd09f8", "sha256": "390c2e706daed46fd50c134c6ef7ea01cad4ccb71091adbcfd7a4d2799a2f41c" }, "downloads": -1, "filename": "TIE-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cbca9d39dae281f9a4bed77f4fbd09f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18527, "upload_time": "2013-06-30T12:18:09", "url": "https://files.pythonhosted.org/packages/a7/67/7b02312588da4e6e476ae11c00185643027ed130d3165fbf7a17f0fd74b1/TIE-0.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "6f6385470beda43981c777f257561afe", "sha256": "3f5f7c2c6e46890f238292daa09060484d49b3f337771758dc32a4e7d0628636" }, "downloads": -1, "filename": "TIE-0.1.0.win32.exe", "has_sig": false, "md5_digest": "6f6385470beda43981c777f257561afe", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 74841, "upload_time": "2013-06-30T12:18:12", "url": "https://files.pythonhosted.org/packages/7f/8a/cf4a5eeb1f15ae3d98005e0d3b9aeaaaea0aacc45a1d7a1aeea5014ade06/TIE-0.1.0.win32.exe" } ] }