{ "info": { "author": "Danilo Bargen", "author_email": "mail@dbrgn.ch", "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.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "##################\ndjango-mathfilters\n##################\n\n.. image:: https://secure.travis-ci.org/dbrgn/django-mathfilters.png?branch=master\n :alt: Build status\n :target: http://travis-ci.org/dbrgn/django-mathfilters\n\n.. image:: https://coveralls.io/repos/dbrgn/django-mathfilters/badge.png?branch=master\n :alt: Coverage\n :target: https://coveralls.io/r/dbrgn/django-mathfilters\n\n.. image:: https://pypip.in/d/django-mathfilters/badge.png\n :alt: PyPI download stats\n :target: https://crate.io/packages/django-mathfilters\n\n\ndjango-mathfilters is a pip-installable Python 2/3 module that provides\ndifferent simple math filters for Django.\n\nDjango provides an ``add`` template filter, but no corresponding subtracting,\nmultiplying or dividing filters.\n\nDjango ticket `#361 `_ has been\nclosed as *wontfix*, so I had to create an alternative that is easy to install\nin a new Django project.\n\nIt currently supports ``int``, ``float``, ``Decimal`` and ``cDecimal`` types, or\nany other type that can be converted to int or float.\n\n**WARNING: Note that when you have the ``cdecimal`` package installed, I assume\nall ``Decimal`` values that are passed to the tag are of ``cdecimal`` type. If\nthey aren't, weird things may happen.**\n\n\nInstallation\n============\n\n::\n\n $ pip install django-mathfilters\n\nThen add ``mathfilters`` to your ``INSTALLED_APPS``.\n\n\nUsage\n=====\n\nYou need to load ``mathfilters`` at the top of your template. The script\nprovides the following filters:\n\n* ``sub`` \u2013 subtraction\n* ``mul`` \u2013 multiplication\n* ``div`` \u2013 division\n* ``intdiv`` \u2013 integer (floor) division\n* ``abs`` \u2013 absolute value\n* ``mod`` \u2013 modulo\n* ``addition`` \u2013 replacement for the ``add`` filter with support for float /\n decimal types\n\n**Example:**\n\n.. sourcecode:: html\n\n {% load mathfilters %}\n\n ...\n\n

Basic math filters

\n\n \n\n\nVersion Support\n===============\n\nThis module supports Python 2.6\u20132.7 and 3.2\u20133.4 as well as PyPy and PyPy3.\n\nSupported Django versions are 1.1 through 1.8.\n\nSee https://travis-ci.org/dbrgn/django-mathfilters for the full build matrix.\n\n\nLicense\n=======\n\n`MIT License `_, see LICENSE file.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dbrgn/django-mathfilters", "keywords": "django template filters math", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-mathfilters", "package_url": "https://pypi.org/project/django-mathfilters/", "platform": "any", "project_url": "https://pypi.org/project/django-mathfilters/", "project_urls": { "Homepage": "https://github.com/dbrgn/django-mathfilters" }, "release_url": "https://pypi.org/project/django-mathfilters/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "A set of simple math filters for Django", "version": "0.4.0" }, "last_serial": 2059358, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e8b6801c06527a1f97553ea9373eebf4", "sha256": "276bff95f2c36722911b551be2f5ead96efaa17bec1bdbf6fedab5bbe441cdf0" }, "downloads": -1, "filename": "django-mathfilters-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e8b6801c06527a1f97553ea9373eebf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2727, "upload_time": "2012-10-09T14:58:05", "url": "https://files.pythonhosted.org/packages/d8/2c/2b5fc4010692e6889fd9e7ca4d73323ff64b50e92b6bc44527ea56a4c80f/django-mathfilters-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c92274c024fa5613727adc0ddee754de", "sha256": "2ebdfea1b45d5ab8853f7165477d9ee2c0731d87f67a1a210d509535fc1fb19c" }, "downloads": -1, "filename": "django-mathfilters-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c92274c024fa5613727adc0ddee754de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3191, "upload_time": "2012-10-09T15:05:50", "url": "https://files.pythonhosted.org/packages/48/91/9d7c9572fba28fcb8ab797d62e4149a9501482a40b056815188e5f84870e/django-mathfilters-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e7b7819d1fb35cec9becdc70c835782a", "sha256": "2f51565736e9c17919e43ceaa0792589139ffc1008d19b01feebc8825c60cddd" }, "downloads": -1, "filename": "django-mathfilters-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e7b7819d1fb35cec9becdc70c835782a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3312, "upload_time": "2012-10-09T17:07:41", "url": "https://files.pythonhosted.org/packages/6b/1a/6dcc40115faf929c475dcb8150c47f0e9103105ec9a2cdec90bedae6a9b8/django-mathfilters-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "e51f52a9330b947ea2b24329369d63cd", "sha256": "42c9aff55cafdf9a68ebe6791553f9f3856a52b04324b3a12168a88256a2dddc" }, "downloads": -1, "filename": "django-mathfilters-0.1.3.tar.gz", "has_sig": false, "md5_digest": "e51f52a9330b947ea2b24329369d63cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3596, "upload_time": "2012-12-04T23:07:03", "url": "https://files.pythonhosted.org/packages/9a/54/293cceb73e544275a74f6e0c0ebb66e1611924303a2d2ea13977f987236f/django-mathfilters-0.1.3.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "4f769fa308578a8a4d2e8f89256aa916", "sha256": "a6437944ed4bc82af0a763411ac98c98d5198114df9b947dc04e3b196ea66357" }, "downloads": -1, "filename": "django-mathfilters-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4f769fa308578a8a4d2e8f89256aa916", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4547, "upload_time": "2014-03-30T21:00:34", "url": "https://files.pythonhosted.org/packages/52/5f/a3e288825b9e51b774f4e4ea451a01ef7ddcc23ddc3ef523534b1c1475f1/django-mathfilters-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "683a24d01f2ff2aeebea9e3df2ef2947", "sha256": "24162f4ecf2f1fb9475227cf6f2590da07ca1ed6ad018ae488b2f2486b05838b" }, "downloads": -1, "filename": "django-mathfilters-0.3.0.tar.gz", "has_sig": false, "md5_digest": "683a24d01f2ff2aeebea9e3df2ef2947", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4972, "upload_time": "2014-07-22T09:48:20", "url": "https://files.pythonhosted.org/packages/71/f9/ba43834bf8731f09f6a6dc44d5f0bb2f2bb07c8f6b99ce65164f19f766fa/django-mathfilters-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "f940470566a76ed95aa194156c6f5a49", "sha256": "530774776e5bbf8061c95e3542166fa8a4ec4cd8992b6dc9f3cad866c71051b5" }, "downloads": -1, "filename": "django_mathfilters-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f940470566a76ed95aa194156c6f5a49", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7574, "upload_time": "2016-04-12T06:38:01", "url": "https://files.pythonhosted.org/packages/c6/fb/fa2fe3d531dc018d486b03c91461063e1005e31bb00b7f2ebc6dfa09701f/django_mathfilters-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc742306ef32d6478ac6536904dddbf6", "sha256": "e570e113a92dd54125fc2066a93b509a521d3f42a4502731775d0f7b92acc3e8" }, "downloads": -1, "filename": "django-mathfilters-0.4.0.tar.gz", "has_sig": false, "md5_digest": "fc742306ef32d6478ac6536904dddbf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5985, "upload_time": "2016-04-12T06:38:18", "url": "https://files.pythonhosted.org/packages/b0/44/a194b6374328a102ad8541bf63ba698177199a08ce184b99bf4916f26f01/django-mathfilters-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f940470566a76ed95aa194156c6f5a49", "sha256": "530774776e5bbf8061c95e3542166fa8a4ec4cd8992b6dc9f3cad866c71051b5" }, "downloads": -1, "filename": "django_mathfilters-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f940470566a76ed95aa194156c6f5a49", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7574, "upload_time": "2016-04-12T06:38:01", "url": "https://files.pythonhosted.org/packages/c6/fb/fa2fe3d531dc018d486b03c91461063e1005e31bb00b7f2ebc6dfa09701f/django_mathfilters-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc742306ef32d6478ac6536904dddbf6", "sha256": "e570e113a92dd54125fc2066a93b509a521d3f42a4502731775d0f7b92acc3e8" }, "downloads": -1, "filename": "django-mathfilters-0.4.0.tar.gz", "has_sig": false, "md5_digest": "fc742306ef32d6478ac6536904dddbf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5985, "upload_time": "2016-04-12T06:38:18", "url": "https://files.pythonhosted.org/packages/b0/44/a194b6374328a102ad8541bf63ba698177199a08ce184b99bf4916f26f01/django-mathfilters-0.4.0.tar.gz" } ] }