quantities


Namequantities JSON
Version 0.16.1 PyPI version JSON
download
home_pageNone
SummarySupport for physical quantities with units, based on numpy
upload_time2024-10-16 15:11:29
maintainerNone
docs_urlhttps://pythonhosted.org/quantities/
authorNone
requires_python>=3.9
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": null,
    "name": "quantities",
    "maintainer": null,
    "docs_url": "https://pythonhosted.org/quantities/",
    "requires_python": ">=3.9",
    "maintainer_email": "Andrew Davison <andrew.davison@cnrs.fr>",
    "keywords": "quantities, units, physical, constants",
    "author": null,
    "author_email": "Darren Dale <dsdale24@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e7/73/748df179eaa75415c0daa6d11e80aa3d9d2390c802080df5e4d71c4b6916/quantities-0.16.1.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.16.1",
    "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": "8232f38ac490fd27933bc2cd9646e8c18b97191950438919a5785f10c18a146c",
                "md5": "ec1adb47ca158cd41a9f30b32334de03",
                "sha256": "247391b91c28c30c5ba1dbf3cfd7912d53ed9120b628398d203083db91ec7144"
            },
            "downloads": -1,
            "filename": "quantities-0.16.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ec1adb47ca158cd41a9f30b32334de03",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 102423,
            "upload_time": "2024-10-16T15:11:24",
            "upload_time_iso_8601": "2024-10-16T15:11:24.703656Z",
            "url": "https://files.pythonhosted.org/packages/82/32/f38ac490fd27933bc2cd9646e8c18b97191950438919a5785f10c18a146c/quantities-0.16.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e773748df179eaa75415c0daa6d11e80aa3d9d2390c802080df5e4d71c4b6916",
                "md5": "a77d54b5b252cb6bc0195c46224b7ed1",
                "sha256": "c9d688e8719720654187a6a83425e7d54f427d7465e03c49f3da53befd20074b"
            },
            "downloads": -1,
            "filename": "quantities-0.16.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a77d54b5b252cb6bc0195c46224b7ed1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 101045,
            "upload_time": "2024-10-16T15:11:29",
            "upload_time_iso_8601": "2024-10-16T15:11:29.017782Z",
            "url": "https://files.pythonhosted.org/packages/e7/73/748df179eaa75415c0daa6d11e80aa3d9d2390c802080df5e4d71c4b6916/quantities-0.16.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-16 15:11:29",
    "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.36865s