pyunitconverter


Namepyunitconverter JSON
Version 0.5.1 PyPI version JSON
download
home_pagehttps://github.com/sdejongh/pyunitconverter
SummaryLibrary of Python functions to converts units
upload_time2024-04-07 22:04:58
maintainerNone
docs_urlNone
authorSteve De Jongh
requires_python<4.0,>=3.9
licenseMIT
keywords units conversion helper
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyunitconverter

## Description

`pyunitconverter` is a Python library of functions for unit conversions.

## Modules

- `pyunitconverter.energy`: conversion of energy units
- `pyunitconverter.length`: conversion of length units
- `pyunitconverter.mass`: conversion of mass units
- `pyunitconverter.prefixes`: prefixes for units of the International System (ie: kilo, mega, ...)
- `pyunitconverter.speed`: conversion of speed units
- `pyunitconverter.temperature`: conversion of temperature units
- `pyunitconverter.time`: conversion of time units
- `pyunitconverter.volume`: conversion of volume units

## Installation

```bash
python -m pip install pyunitconverter
```

## Usage
Example 1
```python
from pyunitconverter.mass import ounces_to_kilograms

mass = 10

print(f"{mass} ounces = {ounces_to_kilograms(mass)} kg")
```

Example 2
```python
from pyunitconverter.prefixes import PREFIX_KILO

length = 5.2

print(f"{length} km = {PREFIX_KILO*length} m")
```
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sdejongh/pyunitconverter",
    "name": "pyunitconverter",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "units, conversion, helper",
    "author": "Steve De Jongh",
    "author_email": "dejongh.st@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6d/a8/030be88cf59b8aa2da93d1e347d830314fd6aa4f610c951046bedd23a71a/pyunitconverter-0.5.1.tar.gz",
    "platform": null,
    "description": "# pyunitconverter\n\n## Description\n\n`pyunitconverter` is a Python library of functions for unit conversions.\n\n## Modules\n\n- `pyunitconverter.energy`: conversion of energy units\n- `pyunitconverter.length`: conversion of length units\n- `pyunitconverter.mass`: conversion of mass units\n- `pyunitconverter.prefixes`: prefixes for units of the International System (ie: kilo, mega, ...)\n- `pyunitconverter.speed`: conversion of speed units\n- `pyunitconverter.temperature`: conversion of temperature units\n- `pyunitconverter.time`: conversion of time units\n- `pyunitconverter.volume`: conversion of volume units\n\n## Installation\n\n```bash\npython -m pip install pyunitconverter\n```\n\n## Usage\nExample 1\n```python\nfrom pyunitconverter.mass import ounces_to_kilograms\n\nmass = 10\n\nprint(f\"{mass} ounces = {ounces_to_kilograms(mass)} kg\")\n```\n\nExample 2\n```python\nfrom pyunitconverter.prefixes import PREFIX_KILO\n\nlength = 5.2\n\nprint(f\"{length} km = {PREFIX_KILO*length} m\")\n```",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library of Python functions to converts units",
    "version": "0.5.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/sdejongh/pyunitconverter/issues",
        "Homepage": "https://github.com/sdejongh/pyunitconverter",
        "Repository": "https://github.com/sdejongh/pyunitconverter"
    },
    "split_keywords": [
        "units",
        " conversion",
        " helper"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e25bc57e93fbf30347165dda6f5a977e1afc318ddd4c06e9f7e28c0c65497152",
                "md5": "5d05455e268762a78489092a9e22ae45",
                "sha256": "fa0d176f4ac9aa792e35b6b75e2e2720a8595c21dcff6754d89d79c75e691986"
            },
            "downloads": -1,
            "filename": "pyunitconverter-0.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5d05455e268762a78489092a9e22ae45",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 10934,
            "upload_time": "2024-04-07T22:04:56",
            "upload_time_iso_8601": "2024-04-07T22:04:56.659017Z",
            "url": "https://files.pythonhosted.org/packages/e2/5b/c57e93fbf30347165dda6f5a977e1afc318ddd4c06e9f7e28c0c65497152/pyunitconverter-0.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6da8030be88cf59b8aa2da93d1e347d830314fd6aa4f610c951046bedd23a71a",
                "md5": "577d1ae469cb2453d482dd1d5fd34fb5",
                "sha256": "5b5006f3f9146c891b50e6693274edf88e8692a6cfe2702161753b293cd31b44"
            },
            "downloads": -1,
            "filename": "pyunitconverter-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "577d1ae469cb2453d482dd1d5fd34fb5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 6037,
            "upload_time": "2024-04-07T22:04:58",
            "upload_time_iso_8601": "2024-04-07T22:04:58.251132Z",
            "url": "https://files.pythonhosted.org/packages/6d/a8/030be88cf59b8aa2da93d1e347d830314fd6aa4f610c951046bedd23a71a/pyunitconverter-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-07 22:04:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sdejongh",
    "github_project": "pyunitconverter",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyunitconverter"
}
        
Elapsed time: 0.21571s