{ "info": { "author": "Mital Ashok", "author_email": "mital.vaja@googlemail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "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.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "number\\_types\r\n=============\r\n\r\nVarious number types for Python\r\n\r\nUsage\r\n-----\r\n\r\n`Typed complex `__\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nUse a complex number with different types for its real and imaginary\r\nparts:\r\n\r\n.. code:: python\r\n\r\n >>> from number_types.typed_complex import *\r\n >>> z = DecimalComplex('0.2', '0.1')\r\n >>> z + DecimalComplex('0.1', '0.2')\r\n DecimalComplex(Decimal('0.3'), Decimal('0.3'))\r\n >>> z = complex(0.2, 0.1)\r\n >>> z + complex(0.1, 0.2)\r\n (0.30000000000000004+0.30000000000000004j)\r\n\r\n`Coordinates `__\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nA class representing a (2D) coordinate.\r\n\r\n.. code:: python\r\n\r\n >>> from number_types import Coordinate\r\n >>> Coordinate(0, 1) + Coordinate(1, 0)\r\n >>> Coordinate(1, 1)\r\n >>> Coordinate(-1, 0).to_polar()\r\n Coordinate(1.0, 3.141592653589793, False)\r\n >>> Coordinate(-1, 0).to_polar().equals(Coordinate(-1, 0))\r\n True\r\n >>> Coordinate(3, 4).to_polar()\r\n Coordinate(5.0, 0.9272952180016122, False)\r\n >>> abs(Coordinate(3, 4))\r\n 5.0\r\n >>> Coordinate(3, 4).conjugate\r\n Coordinate(3, -4)\r\n\r\nInstalling\r\n----------\r\n\r\nFrom `PyPI `__\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n.. code:: bash\r\n\r\n $ pip install number_types\r\n\r\nFrom source\r\n~~~~~~~~~~~\r\n\r\n.. code:: bash\r\n\r\n $ git clone 'https://github.com/MitalAshok/number_types.git'\r\n $ python ./number_types/setup.py install\r\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MitalAshok/number_types", "keywords": "types", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "number_types", "package_url": "https://pypi.org/project/number_types/", "platform": "any", "project_url": "https://pypi.org/project/number_types/", "project_urls": { "Homepage": "https://github.com/MitalAshok/number_types" }, "release_url": "https://pypi.org/project/number_types/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Various number types for Python", "version": "0.0.5" }, "last_serial": 2987908, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "cef3ef1158b22370a465e8d86d116ed6", "sha256": "3a471543dd270d82c7d5c140b1fe1d40d49fc2924119d4bb6e209c00e8c80da6" }, "downloads": -1, "filename": "number_types-0.0.0.tar.gz", "has_sig": false, "md5_digest": "cef3ef1158b22370a465e8d86d116ed6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3792, "upload_time": "2017-06-28T21:10:05", "url": "https://files.pythonhosted.org/packages/5c/ec/4d6dd6d8f34b6d6695bac9adf9243b0c3053b716c94eb5db3b8cce440126/number_types-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "6099475ca4d28e09bc0eacd510394832", "sha256": "4afd0e49842eee37c9b833d539dfa63f3e84890b22a83d24809a3ee533570809" }, "downloads": -1, "filename": "number_types-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6099475ca4d28e09bc0eacd510394832", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3841, "upload_time": "2017-06-28T21:40:50", "url": "https://files.pythonhosted.org/packages/a5/96/2e10d7c69181cf44a053362824136d04c57c4fbb1e7fb622a5999b69d1ce/number_types-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "6ca9cfb8b86cc7ddc719c41a22bed529", "sha256": "dbabb63b0377b4604a3dcef45d4636f6c0d44eef904668411f19ad1fec7b0cb7" }, "downloads": -1, "filename": "number_types-0.0.2.tar.gz", "has_sig": false, "md5_digest": "6ca9cfb8b86cc7ddc719c41a22bed529", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3874, "upload_time": "2017-06-28T22:19:31", "url": "https://files.pythonhosted.org/packages/2c/b2/137a7658cc5195db8834f323e12f7b8e5d335602173346eccca8f2577713/number_types-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "2332a16a20afdbc0ad92771bba1cc272", "sha256": "5b6f116955e1297745309cba0b6dc7764c7de9c220a66163832388cc10508c9d" }, "downloads": -1, "filename": "number_types-0.0.3.tar.gz", "has_sig": false, "md5_digest": "2332a16a20afdbc0ad92771bba1cc272", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4392, "upload_time": "2017-06-29T11:02:37", "url": "https://files.pythonhosted.org/packages/f3/33/8e2329f1322f80c8d825c8a3df26ddd533d74b0704c92556769874f95fd6/number_types-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "9e8feacd0a0ef0e932fe57221b5065fe", "sha256": "3523b274de513c603219cf2d87d902a41ea842522c3776925e556ece2910d02e" }, "downloads": -1, "filename": "number_types-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9e8feacd0a0ef0e932fe57221b5065fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4659, "upload_time": "2017-06-29T12:29:48", "url": "https://files.pythonhosted.org/packages/36/1f/9d566253554d98f8285f39ac14767aa9a3dd69aa5952861a10a2d76ba462/number_types-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "8378291d38ab25f41a01f99dbf41e906", "sha256": "043333e3c0db0fa59617749f3a502472a687f48144512aa128cce135813a8022" }, "downloads": -1, "filename": "number_types-0.0.5.tar.gz", "has_sig": false, "md5_digest": "8378291d38ab25f41a01f99dbf41e906", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4720, "upload_time": "2017-06-29T16:12:21", "url": "https://files.pythonhosted.org/packages/c0/73/f8fc991ced7de9cfdb26c255a5ff0c3119f08c9561a117e9d5964199e937/number_types-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8378291d38ab25f41a01f99dbf41e906", "sha256": "043333e3c0db0fa59617749f3a502472a687f48144512aa128cce135813a8022" }, "downloads": -1, "filename": "number_types-0.0.5.tar.gz", "has_sig": false, "md5_digest": "8378291d38ab25f41a01f99dbf41e906", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4720, "upload_time": "2017-06-29T16:12:21", "url": "https://files.pythonhosted.org/packages/c0/73/f8fc991ced7de9cfdb26c255a5ff0c3119f08c9561a117e9d5964199e937/number_types-0.0.5.tar.gz" } ] }