{ "info": { "author": "Ben Lopatin", "author_email": "ben@benlopatin.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7" ], "description": "===============================\nFDecimal\n===============================\n\n.. image:: https://img.shields.io/travis/bennylope/fdecimal.svg\n :target: https://travis-ci.org/bennylope/fdecimal\n\n.. image:: https://img.shields.io/pypi/v/fdecimal.svg\n :target: https://pypi.python.org/pypi/fdecimal\n\n\nDecimal compatability with float\n\n* Free software: BSD license\n\nFeatures\n--------\n\nImplicit float-to-Decimal coercion for arithmetic operations.\n\nInstead of this::\n\n >>> from decimal import Decimal\n >>> Decimal(12.0) * 0.5\n TypeError: unsupported operand type(s) for *: 'Decimal' and 'float'\n\nUse FDecimal::\n\n >>> from fdecimal import FDecimal\n >>> FDecimal(12.0) * 0.5\n Decimal('6.0')\n\nAs you can see it only solves part of the problem - the result still can't be\nadded with a float value without explicit type coercion, but it solves some\nproblems where (1) its not clear what type the other value will be, (2) you\ndon't want to add code explicitly handling that coercion, and (3) an\narithmetic surprises due to working with different numeric types are\nacceptable.\n\nTODO\n----\n\n* Missing operations, including mod, floor div\n* Python 3 support\n* Allow cdecimal swap-in\n\nDone:\n\n* Return FDecimal objects rather than Decimal objects\n\n\n\n\nHistory\n-------\n\n0.2.0 (2016-01-14)\n---------------------\n\n* Add support for returning FDecimal objects from operations\n\n0.1.0 (2016-01-14)\n---------------------\n\n* First release on PyPI.", "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/bennylope/fdecimal", "keywords": "fdecimal", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "fdecimal", "package_url": "https://pypi.org/project/fdecimal/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fdecimal/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bennylope/fdecimal" }, "release_url": "https://pypi.org/project/fdecimal/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Decimal compatability with float", "version": "0.2.0" }, "last_serial": 1904716, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f0bd67dd965260198689ecdde0eb1b4a", "sha256": "b0e27ab847cb70288b2bc3fa50a7959cc5c8bd526ce4dcc49369a41e8d5f8865" }, "downloads": -1, "filename": "fdecimal-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f0bd67dd965260198689ecdde0eb1b4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5056, "upload_time": "2016-01-14T17:27:30", "url": "https://files.pythonhosted.org/packages/0d/4f/7811c8b15fc7529caf26c6fc1777f028919fe6ddb34343c6dd33ca5a3e3f/fdecimal-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e03239084c687ff2afd7d785139ffa96", "sha256": "a94c8e7fbdbcde63f0f4108601f43720e445ea89eb07fc3da6b514bf1c7e7ee6" }, "downloads": -1, "filename": "fdecimal-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e03239084c687ff2afd7d785139ffa96", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5660, "upload_time": "2016-01-14T18:12:41", "url": "https://files.pythonhosted.org/packages/72/ab/79f3af61304197b082b3184ce1332dd6dbfd0c6fa5a538ffa19f18250a08/fdecimal-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d82c6ac1e294ccfebb2590a365980ecb", "sha256": "26a49ba88a96d341073dd136d5fc8136f2693f88b5dc4b5b2e56c9d87c7cecca" }, "downloads": -1, "filename": "fdecimal-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d82c6ac1e294ccfebb2590a365980ecb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6723, "upload_time": "2016-01-14T18:12:36", "url": "https://files.pythonhosted.org/packages/ae/1d/1a1261e4074e34c974dd4e15ec3438a9c5af2987c7f71145dd6764ece13d/fdecimal-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e03239084c687ff2afd7d785139ffa96", "sha256": "a94c8e7fbdbcde63f0f4108601f43720e445ea89eb07fc3da6b514bf1c7e7ee6" }, "downloads": -1, "filename": "fdecimal-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e03239084c687ff2afd7d785139ffa96", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5660, "upload_time": "2016-01-14T18:12:41", "url": "https://files.pythonhosted.org/packages/72/ab/79f3af61304197b082b3184ce1332dd6dbfd0c6fa5a538ffa19f18250a08/fdecimal-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d82c6ac1e294ccfebb2590a365980ecb", "sha256": "26a49ba88a96d341073dd136d5fc8136f2693f88b5dc4b5b2e56c9d87c7cecca" }, "downloads": -1, "filename": "fdecimal-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d82c6ac1e294ccfebb2590a365980ecb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6723, "upload_time": "2016-01-14T18:12:36", "url": "https://files.pythonhosted.org/packages/ae/1d/1a1261e4074e34c974dd4e15ec3438a9c5af2987c7f71145dd6764ece13d/fdecimal-0.2.0.tar.gz" } ] }