{ "info": { "author": "Cody Soyland", "author_email": "codysoyland@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "django-template-repl is a readline shell for the Django template language.\nIt is similar to a CPython shell but it interprets template code instead of\nPython. It can be invoked either as a management command or with a templatetag.\n\nTo install, add 'template_repl' to your settings.INSTALLED_APPS.\n\nThe management command gives you quick access to the shell:\n python manage.py templateshell\n\nYou can pass a url to the management command to assume the context of a specific location:\n python manage.py templateshell -u /admin/foo/bar/\n\nYou can also provide context directly with a command line option. Here is\nan example of an interactive session:\n $ python manage.py templateshell -c \"{'foo': 'FOO', 'bar': True}\"\n >>> {% if bar %}\n ... {{ foo }}\n ... {% endif %}\n FOO\n >>>\n\nThe templateshell management command also has a --pdb option to allow you to load\nthe context into a namespace and start a PDB debugger shell. This works in conjunction\nwith the -u (--url) and -c (--context) commands. It also provides a \"vars\" list that\nshows the names of the context variables:\n $ python manage.py templateshell -u /admin/ --pdb\n ...\n ipdb> vars\n Out[0]:\n ['app_path',\n 'error_message',\n 'root_path',\n 'title',\n 'MEDIA_URL',\n 'LANGUAGES',\n 'LANGUAGE_BIDI',\n 'LANGUAGE_CODE',\n 'perms',\n 'messages',\n 'user']\n ipdb> print user\n AnonymousUser\n\nIn addition, you can use the repl templatetag which creates a REPL that assumes the\ncontext of the caller template. This is basically \"PDB for templates\":\n {% load repl %}{% repl %}\n\nYou can also start a real PDB shell using the same tag by giving it a second argument\nof \"pdb\". This loads the contex into the PDB namespace:\n {% load repl %}{% repl pdb %}", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/codysoyland/django-template-repl/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-template-repl", "package_url": "https://pypi.org/project/django-template-repl/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-template-repl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/codysoyland/django-template-repl/" }, "release_url": "https://pypi.org/project/django-template-repl/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "A readline shell for the Django template language.", "version": "0.3.0" }, "last_serial": 790837, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bae7e7a7905eaabd0f4278dd09f11c74", "sha256": "cd64f19b63514fadffb6b8dd592415f47423463f057fdcedc2972c7905e86c2f" }, "downloads": -1, "filename": "django-template-repl-0.1.tar.gz", "has_sig": false, "md5_digest": "bae7e7a7905eaabd0f4278dd09f11c74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2208, "upload_time": "2009-12-10T19:16:39", "url": "https://files.pythonhosted.org/packages/9b/18/62a2eda1d39b443f9cd22738e63307283dc97c6b656cb64dc63182ae1636/django-template-repl-0.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d0533cb1cc054afcf0c1f02dee805c58", "sha256": "4cf6d3674118af97387dfcc75bb0fb2bf9b6a1bf5a678b191cc45f7ac89de700" }, "downloads": -1, "filename": "django-template-repl-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d0533cb1cc054afcf0c1f02dee805c58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4817, "upload_time": "2009-12-12T21:10:16", "url": "https://files.pythonhosted.org/packages/2f/ed/56a19af2efb4702bc3a8671ae06c03e1c0621814be8ab752dc6967020ad7/django-template-repl-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9736f5b2820e1c463c752467ab5c9277", "sha256": "dc10eda2e040b39cf119d12c527bdf1a751d6ce7106e4fad47ba4d384f87d7eb" }, "downloads": -1, "filename": "django-template-repl-0.2.1.tar.gz", "has_sig": false, "md5_digest": "9736f5b2820e1c463c752467ab5c9277", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4906, "upload_time": "2009-12-28T04:13:34", "url": "https://files.pythonhosted.org/packages/fb/13/86dc8c4f8e6f620860ad19947a8deb6311613f06fb11702687b4dd17bf9a/django-template-repl-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "389e7df1b844905c6b3653d5a44854a5", "sha256": "07f4d8e9aa76a0890c27c0ff74145057812497301158bc48c995a3c6a5fbd04f" }, "downloads": -1, "filename": "django-template-repl-0.3.0.tar.gz", "has_sig": false, "md5_digest": "389e7df1b844905c6b3653d5a44854a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7463, "upload_time": "2010-02-18T05:24:32", "url": "https://files.pythonhosted.org/packages/96/70/7a021b70657a545804cbd21c8ddeae3a86910912b9b46bbd4f9661fb9d44/django-template-repl-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "389e7df1b844905c6b3653d5a44854a5", "sha256": "07f4d8e9aa76a0890c27c0ff74145057812497301158bc48c995a3c6a5fbd04f" }, "downloads": -1, "filename": "django-template-repl-0.3.0.tar.gz", "has_sig": false, "md5_digest": "389e7df1b844905c6b3653d5a44854a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7463, "upload_time": "2010-02-18T05:24:32", "url": "https://files.pythonhosted.org/packages/96/70/7a021b70657a545804cbd21c8ddeae3a86910912b9b46bbd4f9661fb9d44/django-template-repl-0.3.0.tar.gz" } ] }