quantities


Namequantities JSON
Version 0.15.0 PyPI version JSON
download
home_page
SummarySupport for physical quantities with units, based on numpy
upload_time2023-12-08 18:10:19
maintainer
docs_urlhttps://pythonhosted.org/quantities/
author
requires_python>=3.8
license.. _license: *********************************************** License *********************************************** Quantities only uses BSD compatible code. See the Open Source Initiative `licenses page <http://www.opensource.org/licenses>`_ for details on individual licenses. License Agreement for Quantities ================================ Copyright (c) 2012, Darren Dale <dsdale24@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License Agreement for Scimath ============================= This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative. Copyright (c) 2006, Enthought, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Enthought, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords quantities units physical constants
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==========
quantities
==========

Quantities is designed to handle arithmetic and
conversions of physical quantities, which have a magnitude, dimensionality
specified by various units, and possibly an uncertainty. See the tutorial_
for examples. Quantities builds on the popular numpy library and is
designed to work with numpy ufuncs, many of which are already
supported. Quantities is actively developed, and while the current features
and API are stable, test coverage is incomplete so the package is not
suggested for mission-critical applications.

|pypi version|_ |Build status|_

.. |pypi version| image:: https://img.shields.io/pypi/v/quantities.png
.. _`pypi version`: https://pypi.python.org/pypi/quantities
.. |Build status| image:: https://github.com/python-quantities/python-quantities/actions/workflows/test.yml/badge.svg?branch=master
.. _`Build status`: https://github.com/python-quantities/python-quantities/actions/workflows/test.yml
.. _tutorial: http://python-quantities.readthedocs.io/en/latest/user/tutorial.html


A Python package for handling physical quantities. The source code and issue
tracker are hosted on GitHub:

https://www.github.com/python-quantities/python-quantities

Download
--------
Get the latest version of quantities from
https://pypi.python.org/pypi/quantities/

To get the Git version do::

    $ git clone git://github.com/python-quantities/python-quantities.git


Documentation and usage
-----------------------
You can find the official documentation at:

http://python-quantities.readthedocs.io/

Here is a simple example:

.. code:: python

   >>> import quantities as pq
   >>> distance = 42*pq.metre
   >>> time = 17*pq.second
   >>> velocity = distance / time
   >>> "%.3f %s" % (velocity.magnitude, velocity.dimensionality)
   '2.471 m/s'
   >>> velocity + 3
   Traceback (most recent call last):
     ...
   ValueError: Unable to convert between units of "dimensionless" and "m/s"

Installation
------------
quantities has a hard dependency on the `NumPy <http://www.numpy.org>`_ library.
You should install it first, please refer to the NumPy installation guide:

http://docs.scipy.org/doc/numpy/user/install.html

To install quantities itself, then simply run::

    $ pip install quantities


Tests
-----
To execute all tests, install pytest::

    $ python -m pip install pytest

And run::

    $ pytest

in the current directory. The master branch is automatically tested by
GitHub Actions.

Author
------
quantities was originally written by Darren Dale, and has received contributions from `many people`_.

.. _`many people`: https://github.com/python-quantities/python-quantities/graphs/contributors

License
-------
Quantities only uses BSD compatible code.  See the Open Source
Initiative `licenses page <http://www.opensource.org/licenses>`_
for details on individual licenses.

See `doc/user/license.rst <doc/user/license.rst>`_ for further details on the license of quantities

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "quantities",
    "maintainer": "",
    "docs_url": "https://pythonhosted.org/quantities/",
    "requires_python": ">=3.8",
    "maintainer_email": "Andrew Davison <andrew.davison@cnrs.fr>",
    "keywords": "quantities,units,physical,constants",
    "author": "",
    "author_email": "Darren Dale <dsdale24@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/06/1a/d7288e6293d6ca10b0dd7a94a9ee9462cd2f2031ee52e135ff7efc04cfef/quantities-0.15.0.tar.gz",
    "platform": null,
    "description": "==========\nquantities\n==========\n\nQuantities is designed to handle arithmetic and\nconversions of physical quantities, which have a magnitude, dimensionality\nspecified by various units, and possibly an uncertainty. See the tutorial_\nfor examples. Quantities builds on the popular numpy library and is\ndesigned to work with numpy ufuncs, many of which are already\nsupported. Quantities is actively developed, and while the current features\nand API are stable, test coverage is incomplete so the package is not\nsuggested for mission-critical applications.\n\n|pypi version|_ |Build status|_\n\n.. |pypi version| image:: https://img.shields.io/pypi/v/quantities.png\n.. _`pypi version`: https://pypi.python.org/pypi/quantities\n.. |Build status| image:: https://github.com/python-quantities/python-quantities/actions/workflows/test.yml/badge.svg?branch=master\n.. _`Build status`: https://github.com/python-quantities/python-quantities/actions/workflows/test.yml\n.. _tutorial: http://python-quantities.readthedocs.io/en/latest/user/tutorial.html\n\n\nA Python package for handling physical quantities. The source code and issue\ntracker are hosted on GitHub:\n\nhttps://www.github.com/python-quantities/python-quantities\n\nDownload\n--------\nGet the latest version of quantities from\nhttps://pypi.python.org/pypi/quantities/\n\nTo get the Git version do::\n\n    $ git clone git://github.com/python-quantities/python-quantities.git\n\n\nDocumentation and usage\n-----------------------\nYou can find the official documentation at:\n\nhttp://python-quantities.readthedocs.io/\n\nHere is a simple example:\n\n.. code:: python\n\n   >>> import quantities as pq\n   >>> distance = 42*pq.metre\n   >>> time = 17*pq.second\n   >>> velocity = distance / time\n   >>> \"%.3f %s\" % (velocity.magnitude, velocity.dimensionality)\n   '2.471 m/s'\n   >>> velocity + 3\n   Traceback (most recent call last):\n     ...\n   ValueError: Unable to convert between units of \"dimensionless\" and \"m/s\"\n\nInstallation\n------------\nquantities has a hard dependency on the `NumPy <http://www.numpy.org>`_ library.\nYou should install it first, please refer to the NumPy installation guide:\n\nhttp://docs.scipy.org/doc/numpy/user/install.html\n\nTo install quantities itself, then simply run::\n\n    $ pip install quantities\n\n\nTests\n-----\nTo execute all tests, install pytest::\n\n    $ python -m pip install pytest\n\nAnd run::\n\n    $ pytest\n\nin the current directory. The master branch is automatically tested by\nGitHub Actions.\n\nAuthor\n------\nquantities was originally written by Darren Dale, and has received contributions from `many people`_.\n\n.. _`many people`: https://github.com/python-quantities/python-quantities/graphs/contributors\n\nLicense\n-------\nQuantities only uses BSD compatible code.  See the Open Source\nInitiative `licenses page <http://www.opensource.org/licenses>`_\nfor details on individual licenses.\n\nSee `doc/user/license.rst <doc/user/license.rst>`_ for further details on the license of quantities\n",
    "bugtrack_url": null,
    "license": ".. _license:  *********************************************** License ***********************************************   Quantities only uses BSD compatible code.  See the Open Source Initiative `licenses page <http://www.opensource.org/licenses>`_ for details on individual licenses.  License Agreement for Quantities ================================  Copyright (c) 2012, Darren Dale <dsdale24@gmail.com> All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   License Agreement for Scimath =============================  This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative.  Copyright (c) 2006, Enthought, Inc. All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Enthought, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "Support for physical quantities with units, based on numpy",
    "version": "0.15.0",
    "project_urls": {
        "changelog": "https://github.com/python-quantities/python-quantities/blob/master/CHANGES.txt",
        "documentation": "http://python-quantities.readthedocs.io/",
        "download": "http://pypi.python.org/pypi/quantities",
        "repository": "https://github.com/python-quantities/python-quantities"
    },
    "split_keywords": [
        "quantities",
        "units",
        "physical",
        "constants"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3aaa2d37dc5a180585b8b10aac671529625b72c8a6908b6b8b8bf0b1f8e35101",
                "md5": "2840b57e8c263f4309cd38b13057834a",
                "sha256": "589bdadcbbdc1c10950120c6d197f7e71ac145512a4b4ac5fd40d4946709d6ec"
            },
            "downloads": -1,
            "filename": "quantities-0.15.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2840b57e8c263f4309cd38b13057834a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 101218,
            "upload_time": "2023-12-08T18:10:16",
            "upload_time_iso_8601": "2023-12-08T18:10:16.312891Z",
            "url": "https://files.pythonhosted.org/packages/3a/aa/2d37dc5a180585b8b10aac671529625b72c8a6908b6b8b8bf0b1f8e35101/quantities-0.15.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "061ad7288e6293d6ca10b0dd7a94a9ee9462cd2f2031ee52e135ff7efc04cfef",
                "md5": "ae0abd7801a73e5b7769a6354dcda0e6",
                "sha256": "9ea31e2a0d7517cf24d546b14146def9292639993a616cca61b875ef796b4b2b"
            },
            "downloads": -1,
            "filename": "quantities-0.15.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ae0abd7801a73e5b7769a6354dcda0e6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 99702,
            "upload_time": "2023-12-08T18:10:19",
            "upload_time_iso_8601": "2023-12-08T18:10:19.731778Z",
            "url": "https://files.pythonhosted.org/packages/06/1a/d7288e6293d6ca10b0dd7a94a9ee9462cd2f2031ee52e135ff7efc04cfef/quantities-0.15.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-08 18:10:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "python-quantities",
    "github_project": "python-quantities",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "quantities"
}
        
Elapsed time: 0.14682s