properunits


Nameproperunits JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/anglyan/properunits.git
SummaryA simple framework to work with physical magnitudes
upload_time2024-11-17 04:09:54
maintainerNone
docs_urlNone
authorAngel Yanguas-Gil
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Properunits
A simple framework to work with physical magnitudes


## Motivation

Properunits does one simple job: it helps
you define physical magnitudes in Python using units
and automatically convert them to SI units so that
downstream calculations are all done consistently.

Properunits does not attempt to do universal unit conversion
or tries to implement operations that preserve and transform
the units. It is meant to extract numerical values that can
be used anywhere without having to worry about unit conversion,
while keeping information on the original value and units used.


## Status

Properunits is still in development. Please check the
documentation in [readthedocs](https://properunits.readthedocs.io/en/latest/).


## Quick install

Through pypi:

```
pip install properunits
```

## Usage

```
from properunits import Temperature, Pressure

T = Temperature(100, 'C')
p = Pressure(1, 'bar')

print(T.x, T.units) # Return value in SI units.
print(Temperature.list_units()) # Return list of temperature units
print(T.value) # Return the original value, unit
```

## Copyright and license

Properunits is distributed under the terms of MIT License. 


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/anglyan/properunits.git",
    "name": "properunits",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Angel Yanguas-Gil",
    "author_email": "angel.yanguas@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/23/8c/2b7a0364e1c44a00256e39aa1d26c05e2041ddd42eea037df0cec3c1252d/properunits-0.0.3.tar.gz",
    "platform": null,
    "description": "# Properunits\nA simple framework to work with physical magnitudes\n\n\n## Motivation\n\nProperunits does one simple job: it helps\nyou define physical magnitudes in Python using units\nand automatically convert them to SI units so that\ndownstream calculations are all done consistently.\n\nProperunits does not attempt to do universal unit conversion\nor tries to implement operations that preserve and transform\nthe units. It is meant to extract numerical values that can\nbe used anywhere without having to worry about unit conversion,\nwhile keeping information on the original value and units used.\n\n\n## Status\n\nProperunits is still in development. Please check the\ndocumentation in [readthedocs](https://properunits.readthedocs.io/en/latest/).\n\n\n## Quick install\n\nThrough pypi:\n\n```\npip install properunits\n```\n\n## Usage\n\n```\nfrom properunits import Temperature, Pressure\n\nT = Temperature(100, 'C')\np = Pressure(1, 'bar')\n\nprint(T.x, T.units) # Return value in SI units.\nprint(Temperature.list_units()) # Return list of temperature units\nprint(T.value) # Return the original value, unit\n```\n\n## Copyright and license\n\nProperunits is distributed under the terms of MIT License. \n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple framework to work with physical magnitudes",
    "version": "0.0.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/anglyan/properunits/issues",
        "Homepage": "https://github.com/anglyan/properunits.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f90743e2dfb49b900a06eef8f6f95cfe464875edbeca1f4d8b295eeda1af696a",
                "md5": "79c6df4f2088eec14b93f68feb46232c",
                "sha256": "3b96968129df60da49d0820bb7e69d4ac64d7edc0ee2f6fbc3c29c46d99c572e"
            },
            "downloads": -1,
            "filename": "properunits-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "79c6df4f2088eec14b93f68feb46232c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6595,
            "upload_time": "2024-11-17T04:09:52",
            "upload_time_iso_8601": "2024-11-17T04:09:52.672007Z",
            "url": "https://files.pythonhosted.org/packages/f9/07/43e2dfb49b900a06eef8f6f95cfe464875edbeca1f4d8b295eeda1af696a/properunits-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "238c2b7a0364e1c44a00256e39aa1d26c05e2041ddd42eea037df0cec3c1252d",
                "md5": "34d5addcae427d37bad5b84e535281b5",
                "sha256": "6da95404e4335e62f2620cb7043c7d83b0c2e7bd76efbebf674a57f93b0fd71a"
            },
            "downloads": -1,
            "filename": "properunits-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "34d5addcae427d37bad5b84e535281b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5819,
            "upload_time": "2024-11-17T04:09:54",
            "upload_time_iso_8601": "2024-11-17T04:09:54.073441Z",
            "url": "https://files.pythonhosted.org/packages/23/8c/2b7a0364e1c44a00256e39aa1d26c05e2041ddd42eea037df0cec3c1252d/properunits-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 04:09:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "anglyan",
    "github_project": "properunits",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "properunits"
}
        
Elapsed time: 0.98557s