unyt


Nameunyt JSON
Version 3.0.0 PyPI version JSON
download
home_page
SummaryA package for handling numpy arrays with units
upload_time2023-11-01 18:59:45
maintainer
docs_urlNone
author
requires_python>=3.9
licenseBSD-3-Clause
keywords unyt
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ====
unyt
====


.. image:: https://img.shields.io/pypi/v/unyt.svg
        :target: https://pypi.python.org/pypi/unyt

.. image:: https://img.shields.io/conda/vn/conda-forge/unyt.svg
        :target: https://anaconda.org/conda-forge/unyt
        :alt: conda-forge

.. image:: https://github.com/yt-project/unyt/actions/workflows/ci.yml/badge.svg?branch=main
        :target: https://github.com/yt-project/unyt/actions/workflows/ci.yml

.. image:: https://github.com/yt-project/unyt/actions/workflows/bleeding-edge.yaml/badge.svg?branch=main
        :target: https://github.com/yt-project/unyt/actions/workflows/bleeding-edge.yaml

.. image:: https://readthedocs.org/projects/unyt/badge/?version=latest
        :target: https://unyt.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: http://joss.theoj.org/papers/dbc27acb614dd33eb02b029ef20e7fe7/status.svg
        :target: http://joss.theoj.org/papers/dbc27acb614dd33eb02b029ef20e7fe7
        :alt: Code Paper

|

 .. image:: https://raw.githubusercontent.com/yt-project/unyt/master/docs/_static/yt_logo_small.png
         :target: https://yt-project.org
         :alt: The yt Project

A package for handling numpy arrays with units.

Often writing code that deals with data that has units can be confusing. A
function might return an array but at least with plain NumPy arrays, there is no
way to easily tell what the units of the data are without somehow knowing *a
priori*.

The ``unyt`` package (pronounced like "unit") provides a subclass of NumPy's
``ndarray`` class that knows about units. For example, one could do:

    >>> import unyt as u
    >>> distance_traveled = [3.4, 5.8, 7.2] * u.mile
    >>> print(distance_traveled.to('km'))
    [ 5.4717696  9.3341952 11.5872768] km

And a whole lot more! See `the documentation <http://unyt.readthedocs.io>`_ for
installation instructions, more examples, and full API reference.

This package only depends on ``numpy`` and ``sympy``.  Notably, it does *not*
depend on ``yt`` and it is written in pure Python.

Code of Conduct
---------------

The ``unyt`` package is part of `The yt Project
<https://yt-project.org>`_. Participating in ``unyt`` development therefore
happens under the auspices of the `yt community code of conduct
<http://yt-project.org/doc/developing/developing.html#yt-community-code-of-conduct>`_. If
for any reason you feel that the code of conduct has been violated, please send
an e-mail to confidential@yt-project.org with details describing the
incident. All emails sent to this address will be treated with the strictest
confidence by an individual who does not normally participate in yt development.

License
-------

The unyt package is licensed under the BSD 3-clause license.

Citation
--------

If you make use of unyt in work that leads to a publication we would appreciate
a mention in the text of the paper or in the acknowledgements along with a
citation to our `paper
<https://joss.theoj.org/papers/dbc27acb614dd33eb02b029ef20e7fe7>`_ in the
Journal of Open Source Software. You can use the following BibTeX::

 @article{Goldbaum2018,
   doi = {10.21105/joss.00809},
   url = {https://doi.org/10.21105/joss.00809},
   year  = {2018},
   month = {aug},
   publisher = {The Open Journal},
   volume = {3},
   number = {28},
   pages = {809},
   author = {Nathan J. Goldbaum and John A. ZuHone and Matthew J. Turk and Kacper Kowalik and Anna L. Rosen},
   title = {unyt: Handle,  manipulate,  and convert data with units in Python},
   journal = {Journal of Open Source Software}
 }

Or the following citation format:

  Goldbaum et al., (2018). unyt: Handle, manipulate, and convert data with units in Python . Journal of Open Source Software, 3(28), 809, https://doi.org/10.21105/joss.00809

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "unyt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "unyt",
    "author": "",
    "author_email": "The yt project <yt-dev@python.org>",
    "download_url": "https://files.pythonhosted.org/packages/3f/6f/a97a272470f3c7211da6c1b2e370bac8d0b91c2c0f1a3fb2d5f39271b393/unyt-3.0.0.tar.gz",
    "platform": null,
    "description": "====\nunyt\n====\n\n\n.. image:: https://img.shields.io/pypi/v/unyt.svg\n        :target: https://pypi.python.org/pypi/unyt\n\n.. image:: https://img.shields.io/conda/vn/conda-forge/unyt.svg\n        :target: https://anaconda.org/conda-forge/unyt\n        :alt: conda-forge\n\n.. image:: https://github.com/yt-project/unyt/actions/workflows/ci.yml/badge.svg?branch=main\n        :target: https://github.com/yt-project/unyt/actions/workflows/ci.yml\n\n.. image:: https://github.com/yt-project/unyt/actions/workflows/bleeding-edge.yaml/badge.svg?branch=main\n        :target: https://github.com/yt-project/unyt/actions/workflows/bleeding-edge.yaml\n\n.. image:: https://readthedocs.org/projects/unyt/badge/?version=latest\n        :target: https://unyt.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: http://joss.theoj.org/papers/dbc27acb614dd33eb02b029ef20e7fe7/status.svg\n        :target: http://joss.theoj.org/papers/dbc27acb614dd33eb02b029ef20e7fe7\n        :alt: Code Paper\n\n|\n\n .. image:: https://raw.githubusercontent.com/yt-project/unyt/master/docs/_static/yt_logo_small.png\n         :target: https://yt-project.org\n         :alt: The yt Project\n\nA package for handling numpy arrays with units.\n\nOften writing code that deals with data that has units can be confusing. A\nfunction might return an array but at least with plain NumPy arrays, there is no\nway to easily tell what the units of the data are without somehow knowing *a\npriori*.\n\nThe ``unyt`` package (pronounced like \"unit\") provides a subclass of NumPy's\n``ndarray`` class that knows about units. For example, one could do:\n\n    >>> import unyt as u\n    >>> distance_traveled = [3.4, 5.8, 7.2] * u.mile\n    >>> print(distance_traveled.to('km'))\n    [ 5.4717696  9.3341952 11.5872768] km\n\nAnd a whole lot more! See `the documentation <http://unyt.readthedocs.io>`_ for\ninstallation instructions, more examples, and full API reference.\n\nThis package only depends on ``numpy`` and ``sympy``.  Notably, it does *not*\ndepend on ``yt`` and it is written in pure Python.\n\nCode of Conduct\n---------------\n\nThe ``unyt`` package is part of `The yt Project\n<https://yt-project.org>`_. Participating in ``unyt`` development therefore\nhappens under the auspices of the `yt community code of conduct\n<http://yt-project.org/doc/developing/developing.html#yt-community-code-of-conduct>`_. If\nfor any reason you feel that the code of conduct has been violated, please send\nan e-mail to confidential@yt-project.org with details describing the\nincident. All emails sent to this address will be treated with the strictest\nconfidence by an individual who does not normally participate in yt development.\n\nLicense\n-------\n\nThe unyt package is licensed under the BSD 3-clause license.\n\nCitation\n--------\n\nIf you make use of unyt in work that leads to a publication we would appreciate\na mention in the text of the paper or in the acknowledgements along with a\ncitation to our `paper\n<https://joss.theoj.org/papers/dbc27acb614dd33eb02b029ef20e7fe7>`_ in the\nJournal of Open Source Software. You can use the following BibTeX::\n\n @article{Goldbaum2018,\n   doi = {10.21105/joss.00809},\n   url = {https://doi.org/10.21105/joss.00809},\n   year  = {2018},\n   month = {aug},\n   publisher = {The Open Journal},\n   volume = {3},\n   number = {28},\n   pages = {809},\n   author = {Nathan J. Goldbaum and John A. ZuHone and Matthew J. Turk and Kacper Kowalik and Anna L. Rosen},\n   title = {unyt: Handle,  manipulate,  and convert data with units in Python},\n   journal = {Journal of Open Source Software}\n }\n\nOr the following citation format:\n\n  Goldbaum et al., (2018). unyt: Handle, manipulate, and convert data with units in Python . Journal of Open Source Software, 3(28), 809, https://doi.org/10.21105/joss.00809\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "A package for handling numpy arrays with units",
    "version": "3.0.0",
    "project_urls": {
        "Changelog": "https://unyt.readthedocs.io/en/stable/history.html",
        "Documentation": "https://unyt.readthedocs.io/en/stable/index.html",
        "Homepage": "https://github.com/yt-project/unyt"
    },
    "split_keywords": [
        "unyt"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8f8adbe782625c60b8964e0758fc740d7966636591080e133f4394996b9484e0",
                "md5": "2e337b2068775a5413c89588ae2d7e47",
                "sha256": "67dc3c6a0fd6b424b16833189ebde89347b0b9dc1a979224c33aba70185f544e"
            },
            "downloads": -1,
            "filename": "unyt-3.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2e337b2068775a5413c89588ae2d7e47",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 136847,
            "upload_time": "2023-11-01T18:59:42",
            "upload_time_iso_8601": "2023-11-01T18:59:42.910704Z",
            "url": "https://files.pythonhosted.org/packages/8f/8a/dbe782625c60b8964e0758fc740d7966636591080e133f4394996b9484e0/unyt-3.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3f6fa97a272470f3c7211da6c1b2e370bac8d0b91c2c0f1a3fb2d5f39271b393",
                "md5": "f247298e1bfed48552ba72dff29fd0c5",
                "sha256": "72e4c3f0cd943b7f444123c45b37c0c6662d5413073baef25a04a3b9a57dab4d"
            },
            "downloads": -1,
            "filename": "unyt-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f247298e1bfed48552ba72dff29fd0c5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 1630499,
            "upload_time": "2023-11-01T18:59:45",
            "upload_time_iso_8601": "2023-11-01T18:59:45.309062Z",
            "url": "https://files.pythonhosted.org/packages/3f/6f/a97a272470f3c7211da6c1b2e370bac8d0b91c2c0f1a3fb2d5f39271b393/unyt-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-01 18:59:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yt-project",
    "github_project": "unyt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "unyt"
}
        
Elapsed time: 0.15017s