{ "info": { "author": "Adrian Matellanes", "author_email": "matellanesadrian@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Utilities" ], "description": "django-numfilters\n=================\n\n.. image:: https://travis-ci.org/amatellanes/django-numfilters.svg?branch=master\n :target: https://travis-ci.org/amatellanes/django-numfilters\n\n\n.. image:: https://coveralls.io/repos/amatellanes/django-numfilters/badge.png?branch=master\n :target: https://coveralls.io/r/amatellanes/django-numfilters?branch=master\n\n.. image:: https://pypip.in/v/django-numfilters/badge.png\n :target: https://crate.io/packages/django-numfilters/\n :alt: Pypi version\n\n.. image:: https://pypip.in/d/django-numfilters/badge.png\n :target: https://crate.io/packages/django-numfilters/\n :alt: Pypi downloads\n\n\n**django-numfilters** is a collection of template filters for Django who provides access to several basic mathematical functions.\n\nDownload\n--------\n\nTo install it by using `pip`_: ::\n\n $ pip install django-numfilters\n\nor by using `easy_install`_: ::\n \n $ easy_install django-numfilters\n \nYou can also pot for installing it from source: ::\n \n $ git clone git@github.com:amatellanes/django-numfilters.git\n $ cd django-numfilters\n $ python setup.py install\n\n.. _pip: https://pypi.python.org/pypi/pip\n.. _easy_install: https://pypi.python.org/pypi/setuptools\n\nInstallation\n------------\n\nTo enable **django-numfilters** in your Django project, you need to add `django_numfilters` to `INSTALLED_APPS`: ::\n\n INSTALLED_APPS = (\n ...\n 'django_numfilters',\n ...\n )\n\nUsage\n-----\n\nThis section provides a summary of **django-numfilters** features.\n\nFirstly, you need make filters available to your templates using `{% load numfilters %}` tag. After this, you can use \nnext tags:\n\n`abs`\n Returns the absolute value of `a`, for `a` number.\n \n`add`\n This filter is provided by `Django`_.\n\n`sub`\n Returns `a - b`, for `a` and `b` numbers.\n \n`mul`\n Returns `a * b`, for `a` and `b` numbers.\n \n`div`\n Returns `a / b`, for `a` and `b` numbers (*classic* division).\n \n`mod`\n Returns `a % b`, for `a` and `b` numbers.\n \n`floordiv`\n Returns `a // b`, for `a` and `b` numbers.\n \n`pow`\n Returns `a ** b`, for `a` and `b` numbers. \n \n`sqrt`\n Return the square root of `a`, for `a` number.\n \n.. _Django: https://docs.djangoproject.com/en/dev/ref/templates/builtins/#add\n \n**Example**\n\n.. sourcecode:: html\n\n {% load numfilters %}\n \n \n \n \n Example django-numfilters\n \n \n \n \n \n\nTesting\n-------\n\nYou can see the current Travis CI build here: https://travis-ci.org/amatellanes/django-numfilters.\n\nChangelog\n---------\n\nRelease 0.1.1 (no codename, released on December 26th 2014)\n\n- Fix minor bugs.\n\nRelease 0.1.0 (no codename, released on July 20th 2014)\n\n- Initial release.\n\nLicense\n-------\n\n`MIT License `_, see LICENSE file.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/amatellanes/django-numfilters", "keywords": "django number math template filters", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-numfilters", "package_url": "https://pypi.org/project/django-numfilters/", "platform": "any", "project_url": "https://pypi.org/project/django-numfilters/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/amatellanes/django-numfilters" }, "release_url": "https://pypi.org/project/django-numfilters/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Mathematical template filters for Django", "version": "0.1.1" }, "last_serial": 2163788, "releases": { "0.0.8": [ { "comment_text": "", "digests": { "md5": "75ec07b4e785ba4991650404015a1e0b", "sha256": "007a7e40afd7c1040fa2e4ee76a75ee5d05e61b5a8d4eb81b2247f62d879dce4" }, "downloads": -1, "filename": "django-numfilters-0.0.8.tar.gz", "has_sig": false, "md5_digest": "75ec07b4e785ba4991650404015a1e0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4662, "upload_time": "2014-07-13T15:13:29", "url": "https://files.pythonhosted.org/packages/37/dc/f372b957a9a0b4b99b19c1692f878564b9ccb2b522e96c06d56b6809d577/django-numfilters-0.0.8.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b615e16bfe3a4151914ba90a050ba1a0", "sha256": "fe5971bd6238cf45ccc5e1f1f2b859da6c75ae4c3b6ab46112baaf424defa24b" }, "downloads": -1, "filename": "django-numfilters-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b615e16bfe3a4151914ba90a050ba1a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4865, "upload_time": "2014-12-26T09:17:30", "url": "https://files.pythonhosted.org/packages/bb/cf/3c20971da0a20d4fa8e81096d44d7dc135f7605cddfd9072b20272946dbf/django-numfilters-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b615e16bfe3a4151914ba90a050ba1a0", "sha256": "fe5971bd6238cf45ccc5e1f1f2b859da6c75ae4c3b6ab46112baaf424defa24b" }, "downloads": -1, "filename": "django-numfilters-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b615e16bfe3a4151914ba90a050ba1a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4865, "upload_time": "2014-12-26T09:17:30", "url": "https://files.pythonhosted.org/packages/bb/cf/3c20971da0a20d4fa8e81096d44d7dc135f7605cddfd9072b20272946dbf/django-numfilters-0.1.1.tar.gz" } ] }