{ "info": { "author": "42nd Design and CREO Agency", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: User Interfaces", "Topic :: Utilities" ], "description": "=================\nDjango CommonTags\n=================\n\nCommon useful django template tags and filters\n\nGetting Started\n===============\n\nSimply install, add to your INSTALLED_APPS setting and use {% load common_filters common_tags %} in your templates to enable access to the tags and filters\n\nInstalling\n==========\n\nYou can get Django Commontags by using pip or easy_install::\n\n $ pip install django-commontags\n or\n $ easy_install django-commontags\n\nIf you want to install it from source, grab the git repository from github and run setup.py::\n\n $ git clone git://github.com/Jaidan/django-commontags.git\n $ cd django-commontags\n $ python setup.py install \n\nIncluded Tags and Filters\n=========================\n\nTags\n----\n\ndivide\n Allows division of two numbers within a template. Accepts a numerator,\n denominator, and optional format string. Be aware that the format string\n cannot be a string literal and must be a context variable that contains\n the format string\n\ndynamic_regroup\n Extends the built in regroup tag to allow regrouping by a attribute named\n by a context variable's value. Accepts an iterable, th vairable to be\n resolved to an attribute name, and the variable to write the result into. \n\nFilters\n-------\n\npercentage\n Takes a value converts it to a float and returns the result formatted\n as a percentage. Accepts an integer for number of decimal places.\n\ntruncatechars\n Takes a string value and truncates it to a given number of chars. \n Appends \"...\" to the truncated value. Accepts an integer for the number\n of characters to truncate to\n\npartition\n Break a list into ``n`` pieces. The last list may be larger than the \n rest if the list doesn't break cleanly. That is::\n\n >>> l = range(10)\n\n >>> partition(l, 2)\n [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]\n\n >>> partition(l, 3)\n [[0, 1, 2], [3, 4, 5], [6, 7, 8, 9]]\n\n >>> partition(l, 4)\n [[0, 1], [2, 3], [4, 5], [6, 7, 8, 9]]\n\n >>> partition(l, 5)\n [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]\n\nlookup\n Looks up a value from a dictionary. This allows dictionary look ups\n based on a context variables value. Accepts the name to lookup.\n\nunslugify\n Attempts to roughly unslugify a string. Replaces '-' and '_' with ' '", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python/ord/pypi/django-commontags", "keywords": null, "license": "LICENSE", "maintainer": null, "maintainer_email": null, "name": "django-commontags", "package_url": "https://pypi.org/project/django-commontags/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-commontags/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python/ord/pypi/django-commontags" }, "release_url": "https://pypi.org/project/django-commontags/0.1/", "requires_dist": null, "requires_python": null, "summary": "Common django template tags and filters", "version": "0.1" }, "last_serial": 789340, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a98c9aa565c22a7b4d3c68fa9c870ea9", "sha256": "f7cfa6e925ddd78f361528796d4704ddb0540c121ad5a1c56dd316552db2f5e1" }, "downloads": -1, "filename": "django-commontags-0.1.linux-i686.exe", "has_sig": false, "md5_digest": "a98c9aa565c22a7b4d3c68fa9c870ea9", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 66722, "upload_time": "2012-04-19T03:18:31", "url": "https://files.pythonhosted.org/packages/4d/85/b16bc1748515784524af07a8cabcb9d4363ab55732956ed4fe6c5144b013/django-commontags-0.1.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "a2f77e9258e3091edbbfe30c1b4534fa", "sha256": "219ec1c4c20e578b0792e1d8a298eef52cbbab906b6b4e1c31db580a08cc26d3" }, "downloads": -1, "filename": "django-commontags-0.1.tar.gz", "has_sig": false, "md5_digest": "a2f77e9258e3091edbbfe30c1b4534fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3731, "upload_time": "2012-04-19T03:18:30", "url": "https://files.pythonhosted.org/packages/33/26/f663450e1f9c830aa57777252d734381fd6457033955b0930747af8ae9dc/django-commontags-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a98c9aa565c22a7b4d3c68fa9c870ea9", "sha256": "f7cfa6e925ddd78f361528796d4704ddb0540c121ad5a1c56dd316552db2f5e1" }, "downloads": -1, "filename": "django-commontags-0.1.linux-i686.exe", "has_sig": false, "md5_digest": "a98c9aa565c22a7b4d3c68fa9c870ea9", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 66722, "upload_time": "2012-04-19T03:18:31", "url": "https://files.pythonhosted.org/packages/4d/85/b16bc1748515784524af07a8cabcb9d4363ab55732956ed4fe6c5144b013/django-commontags-0.1.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "a2f77e9258e3091edbbfe30c1b4534fa", "sha256": "219ec1c4c20e578b0792e1d8a298eef52cbbab906b6b4e1c31db580a08cc26d3" }, "downloads": -1, "filename": "django-commontags-0.1.tar.gz", "has_sig": false, "md5_digest": "a2f77e9258e3091edbbfe30c1b4534fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3731, "upload_time": "2012-04-19T03:18:30", "url": "https://files.pythonhosted.org/packages/33/26/f663450e1f9c830aa57777252d734381fd6457033955b0930747af8ae9dc/django-commontags-0.1.tar.gz" } ] }