{ "info": { "author": "Muhammed Shamil K", "author_email": "note@noteness.cf", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Plugins", "Intended Audience :: Customer Service", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Utilities" ], "description": "NumRep\n------\n\n.. image:: https://travis-ci.org/necessary129/NumRep.svg\n :target: https://travis-ci.org/necessary129/NumRep\n\nVersion: 0.1.3\n\nThis module provides a way to represent the place values in a given number, eg:\n >>> a = NumRep(1234456789123)\n >>> a\n NumRep(Crores=123445,Lakhs=67,Thousands=89,Hundreds=1,Tens=2,Ones=3)\n >>> a.crores\n 123445\n >>> a.ones\n 3\n >>> a.hundreds\n 1\n >>> a.tens\n 2\n >>> a.lakhs\n 67\n >>> print(a)\n 123445 Crores, 67 Lakhs, 89 Thousands, 1 Hundred, 2 Tens, 3 Ones\n\nThis raises TypeError when you give it an invalid number, eg:\n >>> a = NumRep('notanumber1111')\n Traceback (most recent call last):\n ...\n TypeError: Not a valid Number.\n\nAnd Every integer in the NumRep has a GetRep() method, which returns the Representation of the number itself, eg:\n >>> a = NumRep(123456789)\n >>> a\n NumRep(Crores=12,Lakhs=34,Thousands=56,Hundreds=7,Tens=8,Ones=9)\n >>> a.crores\n 12\n >>> a.crores.GetRep()\n NumRep(Tens=1,Ones=2)\n >>> a.crores.GetRep().tens.GetRep()\n NumRep(Ones=1)\n\nYou can also do arithmetic operations on them and then use GetRep(), eg:\n >>> a = NumRep(123456789)\n >>> a\n NumRep(Crores=12,Lakhs=34,Thousands=56,Hundreds=7,Tens=8,Ones=9)\n >>> (a.crores - 2).GetRep()\n NumRep(Tens=1)\n\nYou can compare and do arithmetic operations NumReps with integers and also with other NumReps, like:\n >>> c = NumRep(15)\n >>> c\n NumRep(Tens=1,Ones=5)\n >>> c + 10\n NumRep(Tens=2,Ones=5)\n >>> b = NumRep(10)\n >>> b\n NumRep(Tens=1)\n >>> c + b\n NumRep(Tens=2,Ones=5)\n\n\nThis class also provides an all() function, which gives you the real value of the given denomination, eg:\n >>> a = NumRep(1234456789123)\n >>> a.all('hundreds')\n 12344567891\nYou can also use the values specified in the module for all(), eg:\n >>> a = NumRep(1234456789123)\n >>> a.all(CRORES)\n 123445\n\nChangeLog\n---------\n\n0.1.3\n * Another bug fix\n\n0.1.2\n * Fixed a major bug.\n\n0.1.1\n * define a __str__() function\n * Add a __main__ module\n\n0.1\n * Now can compare and do arithmetic operations on NumRep objects\n * Made NumRep a package\n\n0.0.1.1\n * Added variabes for all() functions in the module\n\n0.0.1\n * First Release", "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/necessary129/NumRep", "keywords": "number representation order place value denomination", "license": "2-clause Simplified BSD", "maintainer": null, "maintainer_email": null, "name": "NumRep", "package_url": "https://pypi.org/project/NumRep/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/NumRep/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/necessary129/NumRep" }, "release_url": "https://pypi.org/project/NumRep/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "A module to represent numbers by their place value.", "version": "0.1.3" }, "last_serial": 1872209, "releases": { "0.0.1": [ { "comment_text": "built for Ubuntu 15.04", "digests": { "md5": "f40668b356dda87c989350d46f103b66", "sha256": "f0ffced2f68ba9e65fac932bce0ca9528b4483d0186372ea7efbf82ed56e4e90" }, "downloads": -1, "filename": "NumRep-0.0.1-1.noarch.rpm", "has_sig": false, "md5_digest": "f40668b356dda87c989350d46f103b66", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 8896, "upload_time": "2015-12-07T15:16:49", "url": "https://files.pythonhosted.org/packages/03/1b/f3e7ddfce14d0e332b38430843789a972657f42cbba1232c15e631bb8dde/NumRep-0.0.1-1.noarch.rpm" }, { "comment_text": "built for Ubuntu 15.04", "digests": { "md5": "ccb78ef5b4e348e348ceb84c5958c938", "sha256": "5d44f5ea8952705419ba9922d66ad506688ff620153e048bc4dd553a23ed3340" }, "downloads": -1, "filename": "NumRep-0.0.1-1.src.rpm", "has_sig": false, "md5_digest": "ccb78ef5b4e348e348ceb84c5958c938", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 7852, "upload_time": "2015-12-07T15:16:33", "url": "https://files.pythonhosted.org/packages/71/01/769ddad5d528fa8f3413dec8fd0c6f082ca725b049977291acb0d3552b83/NumRep-0.0.1-1.src.rpm" }, { "comment_text": "built for Linux-2.6.32-042stab108.2-x86_64-with-glibc2.4", "digests": { "md5": "1cecc3cca5132d3f212146c67c30a3d7", "sha256": "2662c79b4dce6dfc8be0aa070786e5713649358658cdb01f8c2314f35956aa35" }, "downloads": -1, "filename": "NumRep-0.0.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "1cecc3cca5132d3f212146c67c30a3d7", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 4997, "upload_time": "2015-12-07T15:16:17", "url": "https://files.pythonhosted.org/packages/1e/ca/a3d4e164cf601dcccbf571883553ee76a98a4f4f49d88bc59c30afc1a25c/NumRep-0.0.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "158edc08b5f6f0bfebebbd482ff0881d", "sha256": "d0515903bb96dff653007cbdf6b212fc8a472fec3673cbcd9aa9425542299024" }, "downloads": -1, "filename": "NumRep-0.0.1.tar.gz", "has_sig": false, "md5_digest": "158edc08b5f6f0bfebebbd482ff0881d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3624, "upload_time": "2015-12-07T15:16:03", "url": "https://files.pythonhosted.org/packages/bc/c1/aabdbc7815a5c99199abe8e387b6de3a9f886d9b449545aa4987072dd613/NumRep-0.0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "a534b0f5f34916f24bd002e38592857f", "sha256": "a3cd46ee3b1f0de383c7825a82b1bb2536e149aed3fb5dc0196b1cd75e4508ac" }, "downloads": -1, "filename": "NumRep-0.0.1.win-amd64.exe", "has_sig": false, "md5_digest": "a534b0f5f34916f24bd002e38592857f", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 227908, "upload_time": "2015-12-06T16:36:46", "url": "https://files.pythonhosted.org/packages/9a/b1/7c115cd68f70c05831a8797679bdef7f4e81982f3710cbbb41af54f0b2bd/NumRep-0.0.1.win-amd64.exe" }, { "comment_text": "", "digests": { "md5": "03f8c246f28e48a2ddbf21b960317110", "sha256": "be4563364b0b6d817d3202d2d6e94ef1fd17411f9814b379da662a7289d69109" }, "downloads": -1, "filename": "NumRep-0.0.1.zip", "has_sig": false, "md5_digest": "03f8c246f28e48a2ddbf21b960317110", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6051, "upload_time": "2015-12-06T16:35:45", "url": "https://files.pythonhosted.org/packages/e9/92/a12799b8e40d2e6931e011732a1892f02da79409b492ac3225eb8e7563fa/NumRep-0.0.1.zip" } ], "0.0.1.1": [ { "comment_text": "built for Linux-2.6.32-042stab108.2-x86_64-with-glibc2.4", "digests": { "md5": "21e5bc47065049b9effc1d8f83ab6d63", "sha256": "72cde1ee807c6cd0b25c7b33845f0633dc7e319ebb0030157dd6055ecdca288c" }, "downloads": -1, "filename": "NumRep-0.0.1.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "21e5bc47065049b9effc1d8f83ab6d63", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 5216, "upload_time": "2015-12-08T11:57:16", "url": "https://files.pythonhosted.org/packages/69/81/cc1bbc2c9c4aff984c209e6c4e850a3da313c869ef2fdd9bfffe5eb17cc4/NumRep-0.0.1.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "ac1ed3e7a8bc2363b4baac785f77a83d", "sha256": "2e02c5e28c9271a7649a4b61e6217245df33abb2d01cf3f68000a3523e03e75a" }, "downloads": -1, "filename": "NumRep-0.0.1.1.tar.gz", "has_sig": false, "md5_digest": "ac1ed3e7a8bc2363b4baac785f77a83d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3827, "upload_time": "2015-12-08T11:57:26", "url": "https://files.pythonhosted.org/packages/e4/28/00c5f21f9e2e0d30094dc7e909b01b309623d335139a36aa6a04970d9fc8/NumRep-0.0.1.1.tar.gz" } ], "0.1": [ { "comment_text": "", "digests": { "md5": "50acb0edeb042f5a06eef70b0056a51d", "sha256": "7111e93b0b0879af1bad76fd18a053d1ccd459a28df28264c3106e83c2a82c69" }, "downloads": -1, "filename": "NumRep-0.1.tar.gz", "has_sig": false, "md5_digest": "50acb0edeb042f5a06eef70b0056a51d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4351, "upload_time": "2015-12-11T16:07:24", "url": "https://files.pythonhosted.org/packages/55/75/071690333063b9a19ebd9fdb19505666851115bdb0b157e1791dfd9e3c17/NumRep-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2aa9acb739c0d4ce2aa84399cdbdbefb", "sha256": "9c3b1d031c6d599f9ab90638b618a6bf4d3ca20bf360c0f69e6ede066d418a62" }, "downloads": -1, "filename": "NumRep-0.1.1.zip", "has_sig": true, "md5_digest": "2aa9acb739c0d4ce2aa84399cdbdbefb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10385, "upload_time": "2015-12-12T06:48:26", "url": "https://files.pythonhosted.org/packages/81/81/6407779038ed1af187bf9910079bef8034ab1b3eedd3bc86ced9dc60c72e/NumRep-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "28c3bd60b6e88d37f0fd9cbeed4c324a", "sha256": "ea8c0c2239cdfbd37f328cfd953b49b372fa2ddcd5b94cb6994acde3e953f256" }, "downloads": -1, "filename": "NumRep-0.1.2.tar.gz", "has_sig": true, "md5_digest": "28c3bd60b6e88d37f0fd9cbeed4c324a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4702, "upload_time": "2015-12-21T13:48:21", "url": "https://files.pythonhosted.org/packages/d4/ab/f92bfe7c926db754463c7d567e97a0b5286228c0b416a3cdd8524447b780/NumRep-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "560121f63de3408ff3efcd4a1c356e1a", "sha256": "223e2d276e49d9e3fb65f245a12ecd843afe9a1a77e70d6ac5b6d37e4a8618a6" }, "downloads": -1, "filename": "NumRep-0.1.3.tar.gz", "has_sig": true, "md5_digest": "560121f63de3408ff3efcd4a1c356e1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4758, "upload_time": "2015-12-21T14:54:50", "url": "https://files.pythonhosted.org/packages/59/c0/3c7f9418fe2227b973249b28f5bc43721647a8477e9c746999b22b9468ba/NumRep-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "560121f63de3408ff3efcd4a1c356e1a", "sha256": "223e2d276e49d9e3fb65f245a12ecd843afe9a1a77e70d6ac5b6d37e4a8618a6" }, "downloads": -1, "filename": "NumRep-0.1.3.tar.gz", "has_sig": true, "md5_digest": "560121f63de3408ff3efcd4a1c356e1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4758, "upload_time": "2015-12-21T14:54:50", "url": "https://files.pythonhosted.org/packages/59/c0/3c7f9418fe2227b973249b28f5bc43721647a8477e9c746999b22b9468ba/NumRep-0.1.3.tar.gz" } ] }