{ "info": { "author": "G. Clifford Williams", "author_email": "gcw@notadiscussion.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: Jython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Text Processing :: Filters" ], "description": "==============================\nWempy and Wemplates for Python\n==============================\n\nWempy is a command line tool for parsing embedded python (similar to Ruby's\nerb). Wempy's syntax is pure python with 3 very important differences:\n\n 1. There is no need for indentation\n\n 2. The python keyword 'pass' must be used to indicate the end of some\n satements, blocks, and loops (like if/else, Try/Except, for or while )\n depending on context\n\n 3. 'extend' and 'include' are special keywords used to make templates (which can inherit)\n\nExample\n=======\n\n::\n\n % wempy <<-EOF\n\n {{first_name = 'Tyler'}}\n\n {{last_name = 'Durden'}}\n\n Hello Mr. {{=last_name}} or shall I call you {{=first_name}} instead?\n\n EOF\n\nThis generates the following output:\n\n::\n\n Hello Mr. Durden or shall I call you Tyler instead?\n\nYou can see the python script that is generated & executed by using the -x flag. \n\n::\n\n % wempy -x <<-EOF\n\n {{first_name = 'Tyler'}}\n\n {{last_name = 'Durden'}}\n\n Hello Mr. {{=last_name}} or shall I call you {{=first_name}} instead?\n\n EOF\n\nWhich prints out:\n\n::\n\n import sys\n\n sys.stdout.write(' ')\n\n first_name = 'Tyler'\n \n sys.stdout.write('\\n ')\n\n last_name = 'Durden'\n\n sys.stdout.write('\\n Hello Mr. ')\n\n sys.stdout.write(last_name)\n\n sys.stdout.write(' or shall I call you ')\n\n sys.stdout.write(first_name)\n\n sys.stdout.write(' instead?\\n')\n\nwempy.py shows how to use the wemplate library. But here's a quick rundown:\n\n::\n\n >> import wemplate.wemplate\n\n >> text=\"Hello {{=planet}} !\"\n\n >> parser = wemplate.wemplate.TemplateParser(text)\n\n >>\n\n >> print parser.render(planet=\"World\") #print the rendered template\n\n 'Hello World !'\n\nOrigin\n======\n\nWempy is taken directly from Web2py's template engine. We've removed some\nthings like the gluon integration wrapper functions, the response object, and\nHTML/XML escaping. \n\nThe name stands for (W)eb2py's (Em)bedded (Py)thon\n\nDocumentation\n=============\n\nThere isn't any for wempy (yet). To understand the caveats of the engine take\na look at the `Views Basic Syntax `_\nsection of the `web2py manual `_\n\nI'll be working on Wempy specific documentation shortly\n\nLicense\n=======\n\nAs Web2py is licensed under the LGPL v3 so too is Wempy\n\nHome\n====\n\nMore information will soon be available at http://www.wempy.org", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.wempy.org/", "keywords": null, "license": "LGPLv3", "maintainer": null, "maintainer_email": null, "name": "wempy", "package_url": "https://pypi.org/project/wempy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wempy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.wempy.org/" }, "release_url": "https://pypi.org/project/wempy/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "Embedded python interpreter (very similar to Ruby's erb).", "version": "0.1.5" }, "last_serial": 801622, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "654b15a1f8d3f3307e2e146d0ca1516d", "sha256": "4a6f2778c23432ceebd9a98d3db478b20da82ee48ff0e966613367b77d14126a" }, "downloads": -1, "filename": "wempy-0.1.tar.gz", "has_sig": false, "md5_digest": "654b15a1f8d3f3307e2e146d0ca1516d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13381, "upload_time": "2012-06-28T03:43:32", "url": "https://files.pythonhosted.org/packages/20/3b/1a04d4f9cc637f4cade669d4e94000695613583d459df19de95fe9d07047/wempy-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "a46cf9ac5e12abb3cd2b4729638c5da9", "sha256": "274bdc1392978779112afc68622d039c595881e5bbfa5e40757e9e57f69f5124" }, "downloads": -1, "filename": "wempy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a46cf9ac5e12abb3cd2b4729638c5da9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13374, "upload_time": "2012-07-09T23:41:59", "url": "https://files.pythonhosted.org/packages/c0/94/fe81e978eb2fd1ba95170ca8cc3d14781064372faee803fd7d3a9ae3d6a1/wempy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "228e29f5b92b08bb156c099194b0cc12", "sha256": "2014f8930bbcc0ffb688d9ff3173101de5e392476ecd9c9eccb4b9906d0d978b" }, "downloads": -1, "filename": "wempy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "228e29f5b92b08bb156c099194b0cc12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13235, "upload_time": "2012-09-04T03:32:01", "url": "https://files.pythonhosted.org/packages/67/7c/773f527609b5928b392c1140ceda0a25d31145cef4b8a53255ac473cb349/wempy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "a8c8d65833cd915f4d8003e3ba1a10ec", "sha256": "7b122e0104b166414b4613aa9210ee133819254be7205a15bcfbf357ca588759" }, "downloads": -1, "filename": "wempy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a8c8d65833cd915f4d8003e3ba1a10ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13516, "upload_time": "2012-09-12T03:34:37", "url": "https://files.pythonhosted.org/packages/03/3b/d83d6ce4090a671686c971861219e4fa91d47025f287f69997c1c474a65a/wempy-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "f1a54a1d25dc58bbc94768b6d79597d7", "sha256": "bfffc6ea3f35a2ef6c04a098371ae7eb3045a623103d483778e0ce755823c340" }, "downloads": -1, "filename": "wempy-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f1a54a1d25dc58bbc94768b6d79597d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13509, "upload_time": "2012-11-26T01:18:05", "url": "https://files.pythonhosted.org/packages/d8/4b/fa3d7c4d7ba0f40c95b5599d7adf833f7f6ff357e012457a217863bb1a79/wempy-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "00a754e0788fb4cf55a7c8bc1245aa24", "sha256": "34e6d806390e65c7f55630e03de4f6f83f6107803cb219e8d5099b9c5a96abac" }, "downloads": -1, "filename": "wempy-0.1.5.tar.gz", "has_sig": false, "md5_digest": "00a754e0788fb4cf55a7c8bc1245aa24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13506, "upload_time": "2012-11-26T05:58:50", "url": "https://files.pythonhosted.org/packages/41/ef/b1a937bb9289f4c4131a7401a560036f65dc4e126afa3e278bb7e767aab3/wempy-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "00a754e0788fb4cf55a7c8bc1245aa24", "sha256": "34e6d806390e65c7f55630e03de4f6f83f6107803cb219e8d5099b9c5a96abac" }, "downloads": -1, "filename": "wempy-0.1.5.tar.gz", "has_sig": false, "md5_digest": "00a754e0788fb4cf55a7c8bc1245aa24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13506, "upload_time": "2012-11-26T05:58:50", "url": "https://files.pythonhosted.org/packages/41/ef/b1a937bb9289f4c4131a7401a560036f65dc4e126afa3e278bb7e767aab3/wempy-0.1.5.tar.gz" } ] }