{ "info": { "author": "Juan Reyero", "author_email": "juan@juanreyero.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries" ], "description": "Copyright (C) 2006-2015 Juan Reyero (http://juanreyero.com).\n\nLicensed under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\neither express or implied. See the License for the specific\nlanguage governing permissions and limitations under the\nLicense.\n\nHome page: http://juanreyero.com/open/magnitude/\n\nAbout:\n\nMagnitude is a library for computing with numbers with\nunits::\n\n >>> print \"10 m/s ** 2 ->\", mg(10, 'm/s') ** 2\n 10 m/s ** 2 -> 100.0000 m2 / s2\n >>> print (mg(10, 'm') * 2 / (10, 'm/s2')).sqrt()\n 1.4142 s\n >>> tsq = mg(10, 'm') * 2 / (10, 'm/s2')\n >>> print tsq ** 0.5\n 1.4142 s\n >>> print mg(1, \"lightyear\") / mg(1, \"c\")\n >>> 31557600.0000 s\n >>> y = mg(1, \"lightyear\") / (1, \"c\")\n >>> y.ounit(\"year\")\n \n >>> print y\n 1.0000 year\n >>> yd = y.ounit('day')\n >>> print yd\n 365.2500 day\n >>> output_precision(0)\n 0\n >>> print yd\n 365 day", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://juanreyero.com/open/magnitude/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "magnitude", "package_url": "https://pypi.org/project/magnitude/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/magnitude/", "project_urls": { "Homepage": "http://juanreyero.com/open/magnitude/" }, "release_url": "https://pypi.org/project/magnitude/0.9.4/", "requires_dist": null, "requires_python": null, "summary": "Python library for computing with numbers with units", "version": "0.9.4" }, "last_serial": 1778516, "releases": { "0.9.4": [ { "comment_text": "", "digests": { "md5": "6726ea650dd45aae01497feb0e3afedb", "sha256": "db120ca7ab89ccb1940c17e8c487500316a64550cbaa6a066e059f563bbc2d83" }, "downloads": -1, "filename": "magnitude-0.9.4.tar.gz", "has_sig": false, "md5_digest": "6726ea650dd45aae01497feb0e3afedb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11777, "upload_time": "2015-10-20T16:43:39", "url": "https://files.pythonhosted.org/packages/78/ae/94ab5d768acbe60715a3efc1014eb560158d779303c89977ed2a79b4adc4/magnitude-0.9.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6726ea650dd45aae01497feb0e3afedb", "sha256": "db120ca7ab89ccb1940c17e8c487500316a64550cbaa6a066e059f563bbc2d83" }, "downloads": -1, "filename": "magnitude-0.9.4.tar.gz", "has_sig": false, "md5_digest": "6726ea650dd45aae01497feb0e3afedb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11777, "upload_time": "2015-10-20T16:43:39", "url": "https://files.pythonhosted.org/packages/78/ae/94ab5d768acbe60715a3efc1014eb560158d779303c89977ed2a79b4adc4/magnitude-0.9.4.tar.gz" } ] }