{ "info": { "author": "Lars Yunker", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Chemistry", "Topic :: Scientific/Engineering :: Information Analysis" ], "description": "\nunithandler\n===========\n\nThis is a package for managing and interacting with units. The focus of\nthe package is to provide numeric type objects (e.g. ``float`` and ``int``\\ )\nwhich also have a ``unit`` attribute. The three core classes of this\npackage are ``Unit``\\ , ``UnitFloat``\\ , and ``UnitInt``.\n\nWhile there are a variety of packages which support units, this\npackage focused on enabling straightforward implementation of units\nwithout affecting Pythonic functionality of the numbers.\n\nAdditionally, the ``UnitFloat`` class was designed to represent the\nmagnitude of the stored value as best as possible with an appropriate\nSI prefix. The value stored is scaled in its representation, but remains\nlocked to a specified prefix when operated upon. For example, ``0.005``\nwith the unit ``'L'`` would be represented as ``5 mL`` if printed, but will\nbehave as ``0.005`` for any numeric operations. This was implemented to\nautomatically keep track of the scale of a unit while allowing the user\nto easily visualize the magnitude of the stored value.\n\nInstallation\n------------\n\n``unithandler`` is registered on PyPI.\n\n.. code-block::\n\n pip install unithandler\n\nSource files may be found in the `GitLab repository `_.\n\nThe ``Unit`` class\n----------------------\n\nThis class handles all unit-associated attributes and methods. The ``unit``\nattribute returns an appropriately formatted unit (complete with\nsuperscripts) as a string. Units are managed in dictionary format,\nassociating a power to each unit denoted. The class (and its subclasses)\nare structured) so that the units may be easily modified using python\nbuilt-in multiplication and division operators (exactly as one would\ntrack units with pen and paper).\n\nThe ``UnitFloat`` class\n---------------------------\n\nThe ``UnitFloat`` class is a ``float``\\ -like numeric class that has an\nassociated unit. The class has all defined Python magic methods, which\nenable all appropriate modifications and operations on or by ``UnitFloat``\nobjects. Typically, the return of each magic method is another ``UnitFloat``\ninstance, but see the ``UnitFloat`` documentation for further details.\n\nKnown limitations\n-----------------\n\nSince this package is written entirely in Python, it does not provide\ndirect access to values as the true ``float`` and ``int`` would. As such,\nsome errors or unintended functionality may be encountered.\n\nCurrently ``numpy`` support is limited to basic ``ufunc`` implementation.\nUnexpected behaviour may be encountered when performing ``numpy``\noperations on ``UnitFloat`` or ``UnitInt``. We are working to implement full\nsupport for vectorized operations on the numeric classes in this package.\nTo the best of our knowledge, the ``math`` package is fully supported, so\nany numeric operations should be performed with that package while we\nwork to enable numpy support.\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/larsyunker/unithandler", "keywords": "units,unit,float,int", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "unithandler", "package_url": "https://pypi.org/project/unithandler/", "platform": "", "project_url": "https://pypi.org/project/unithandler/", "project_urls": { "Homepage": "https://gitlab.com/larsyunker/unithandler" }, "release_url": "https://pypi.org/project/unithandler/1.4.4/", "requires_dist": null, "requires_python": ">=3", "summary": "numeric mimic classes with units", "version": "1.4.4" }, "last_serial": 5892327, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "a4635b43d288c7327f28688773329b05", "sha256": "7fbf03be0917fe8601cafc3d108caef933eb5ca3ff816be8801df10f00d9d365" }, "downloads": -1, "filename": "unithandler-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a4635b43d288c7327f28688773329b05", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3912, "upload_time": "2018-10-23T23:18:14", "url": "https://files.pythonhosted.org/packages/15/d3/36b50d5443a71a70233bc5ec5a4a00394b4e9a6dab33dbec5305330cd8a6/unithandler-1.0.1-py3-none-any.whl" } ], "1.0.1.1": [ { "comment_text": "", "digests": { "md5": "add8a39b84cfa9a06c65d88c01123175", "sha256": "2dde779177266453969cc9b05b872542f5ea70f83e8fba27ed93b89a2ff6731b" }, "downloads": -1, "filename": "unithandler-1.0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "add8a39b84cfa9a06c65d88c01123175", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17164, "upload_time": "2018-10-24T00:12:31", "url": "https://files.pythonhosted.org/packages/dc/3f/96362eb59223b39d9ba3db438603c9d856e56eb6424145afb3d464da39fe/unithandler-1.0.1.1-py3-none-any.whl" } ], "1.0.1.2": [ { "comment_text": "", "digests": { "md5": "829f21ffc366f6cdf5e61cc73da4fd6f", "sha256": "cb5673abba7f7d2290a8f974c327ac52ded70d24cc9b10e438df875d8b8d773a" }, "downloads": -1, "filename": "unithandler-1.0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "829f21ffc366f6cdf5e61cc73da4fd6f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17236, "upload_time": "2018-12-17T20:41:30", "url": "https://files.pythonhosted.org/packages/59/df/57781c50318c31e8cc75e642e2592dfa6dc5f13a00762f6e564c94a2c47d/unithandler-1.0.1.2-py3-none-any.whl" } ], "1.0.1.3": [ { "comment_text": "", "digests": { "md5": "471bddb5b8782603888aec5862e1b673", "sha256": "7461824ee6b1b076998b0df162125366cb8bd48fea95a0da822ecaa52923ebef" }, "downloads": -1, "filename": "unithandler-1.0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "471bddb5b8782603888aec5862e1b673", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17659, "upload_time": "2019-04-10T19:43:59", "url": "https://files.pythonhosted.org/packages/06/5b/938152e511192b200ce0638108b0fce4e11869eed5ec3ddb0ae8bb67007c/unithandler-1.0.1.3-py3-none-any.whl" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "2a898446e9d75c42aad7dfe6c31687f2", "sha256": "c8029034001015ffe18e73792b047dff069e3a4896f90b13a199f1d03b0cd7e5" }, "downloads": -1, "filename": "unithandler-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2a898446e9d75c42aad7dfe6c31687f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17738, "upload_time": "2019-04-10T20:07:14", "url": "https://files.pythonhosted.org/packages/5a/28/167ccd7c86fa99a3c8c3f3c30f8af961c1509f38b81dcf30ff464bf79dd1/unithandler-1.2.0-py3-none-any.whl" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "5fafe07e7d277af6451f32f3418e5f73", "sha256": "fbca1195cca4df9817dfee09796a5d856b79efe2d84e4dfbb7f9d1fff2587cc2" }, "downloads": -1, "filename": "unithandler-1.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5fafe07e7d277af6451f32f3418e5f73", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18430, "upload_time": "2019-04-15T23:07:07", "url": "https://files.pythonhosted.org/packages/12/2b/fe30f66b66287feefce5c4029694d6d3cb79e9698dd17a41e077a8a9e98c/unithandler-1.2.2-py3-none-any.whl" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "88ca4b040983770b3251316f90419549", "sha256": "dc06ab42a0490f2861b8c0e30cc780adab5dc1dea4e6d38ca95bc3ff4ee32d71" }, "downloads": -1, "filename": "unithandler-1.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "88ca4b040983770b3251316f90419549", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 17843, "upload_time": "2019-05-22T22:55:58", "url": "https://files.pythonhosted.org/packages/e1/20/43b3af99dd2c180e1ea39caef3d4230a3191484e2a0c4b7e094834a43cae/unithandler-1.2.4-py3-none-any.whl" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "516b1e4e915f681692860f1e71bf634b", "sha256": "21b4a233fff23bb14dfee227b801001e692599d92f236b9184cab7d8541bcada" }, "downloads": -1, "filename": "unithandler-1.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "516b1e4e915f681692860f1e71bf634b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 17875, "upload_time": "2019-06-07T16:43:46", "url": "https://files.pythonhosted.org/packages/97/08/7d7768ddd877353545c86cd81d7ed1e22fed1692e300d894e1f7a1afb627/unithandler-1.3.0-py3-none-any.whl" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "8710e77cb600f977c81460503060fc1a", "sha256": "71ac6f22eac5013b0818b33d787d8e7e084cd635eba1b0a48aa34101aefebc88" }, "downloads": -1, "filename": "unithandler-1.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8710e77cb600f977c81460503060fc1a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 18106, "upload_time": "2019-06-07T17:41:58", "url": "https://files.pythonhosted.org/packages/eb/ab/10259c0c71c5f3f06b3ffd5c385e2c2048cb81976b88f0ff27496da78076/unithandler-1.3.1-py3-none-any.whl" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "ed25f09f22593fd2881e323030166e96", "sha256": "d92b89fc5cb16139d5abe246d0c81526d34080a9316660f53b7ae1d158f4e0e9" }, "downloads": -1, "filename": "unithandler-1.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ed25f09f22593fd2881e323030166e96", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 18230, "upload_time": "2019-06-07T19:34:00", "url": "https://files.pythonhosted.org/packages/97/83/e4a8afbdff7d2ba3073c2e45207e45d93b19abac2590b0f34f736e59d0be/unithandler-1.3.2-py3-none-any.whl" } ], "1.3.3": [ { "comment_text": "", "digests": { "md5": "31713f95b9420288e57c8c3289502779", "sha256": "0735697b55ab2e3cd142dfceda4c410c0c141a33f5a53f917efc7a000366ed68" }, "downloads": -1, "filename": "unithandler-1.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "31713f95b9420288e57c8c3289502779", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 18393, "upload_time": "2019-06-13T19:22:38", "url": "https://files.pythonhosted.org/packages/19/66/2c7d6e20f3717ecfce5889de325ee1dc6399b9c0e23f1d619b27e3b62f05/unithandler-1.3.3-py3-none-any.whl" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "9f2c30aac920ea24a3e426b8f088d01a", "sha256": "9045fd6eeefaa908a5dfe701dc2440aba7543f74af81584f66996a9b6a04a13c" }, "downloads": -1, "filename": "unithandler-1.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9f2c30aac920ea24a3e426b8f088d01a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 18937, "upload_time": "2019-07-22T19:57:08", "url": "https://files.pythonhosted.org/packages/f9/6e/97993969bfb9158ec801edac9aca11d9e7c9b7f19e883fcfd24ab46e686c/unithandler-1.4.0-py3-none-any.whl" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "89b00ca2dfbe07b2e3cdf45c3b2e07bd", "sha256": "11289d0c212f660cc53203d93820c2827fd9ba1f31eb4ab35989be28898c7319" }, "downloads": -1, "filename": "unithandler-1.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "89b00ca2dfbe07b2e3cdf45c3b2e07bd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 19117, "upload_time": "2019-08-09T03:50:15", "url": "https://files.pythonhosted.org/packages/bf/d3/9c291e8576165cb3d264974a361ee7c3921010c11794719729bf7d8452d2/unithandler-1.4.1-py3-none-any.whl" } ], "1.4.3": [ { "comment_text": "", "digests": { "md5": "59212c55e25a2255061915bafcba357d", "sha256": "efe8b701ce4dcd6c0ab72e97fb1715145e75eba090ff187e554e20f3f6705c48" }, "downloads": -1, "filename": "unithandler-1.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "59212c55e25a2255061915bafcba357d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 19686, "upload_time": "2019-08-22T18:38:28", "url": "https://files.pythonhosted.org/packages/e5/bb/a556259fa8dac54400861296de7342f60fe9b3e211a5fd20eae37eb81633/unithandler-1.4.3-py3-none-any.whl" } ], "1.4.4": [ { "comment_text": "", "digests": { "md5": "84fe9c1a326b3e51b91d56bd9d9cff0b", "sha256": "709f9b9605a0cb20e9b7766d4d6f5482f77b02482ef87afa23eef3a7de4220f4" }, "downloads": -1, "filename": "unithandler-1.4.4-py3-none-any.whl", "has_sig": false, "md5_digest": "84fe9c1a326b3e51b91d56bd9d9cff0b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 20053, "upload_time": "2019-09-26T19:26:47", "url": "https://files.pythonhosted.org/packages/7e/31/c157ba2dda7e8bc1f11e575b49230b1673603af2117778233ec99b275b72/unithandler-1.4.4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "84fe9c1a326b3e51b91d56bd9d9cff0b", "sha256": "709f9b9605a0cb20e9b7766d4d6f5482f77b02482ef87afa23eef3a7de4220f4" }, "downloads": -1, "filename": "unithandler-1.4.4-py3-none-any.whl", "has_sig": false, "md5_digest": "84fe9c1a326b3e51b91d56bd9d9cff0b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 20053, "upload_time": "2019-09-26T19:26:47", "url": "https://files.pythonhosted.org/packages/7e/31/c157ba2dda7e8bc1f11e575b49230b1673603af2117778233ec99b275b72/unithandler-1.4.4-py3-none-any.whl" } ] }