python-unitconverter


Namepython-unitconverter JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryMake conversions between various units
upload_time2023-05-23 17:22:35
maintainer
docs_urlNone
author
requires_python>=3.11.0
licenseMIT License Copyright (c) 2023 Unit Converter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords converter units
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Unit Converter

Unit Converter is a simple python unit converter, that can help you convert various units.

For more information see the documentation [Unit Converter Documentation](https://erimac2.github.io/UnitConverter/).

## Installation

You can install the Real Python Feed Reader from [PyPI](https://pypi.org/project/realpython-reader/):

    python -m pip install realpython-reader

The reader is supported on Python 3.11.0 and above.

## How to use

Unit converter is a Python code package, named `unitconverter.converter`. To use the package, first import it:
    >>> from unitconverter import converter

You can then call various conversion modules:

    >>> converter.convertLength(5, "cm", "m")
    [0.05]
    >>> converter.convertWeight(5, "kg", "g")
    [5000.0]
    >>> converter.convertEnergy(5, "kcal", "J")
    [20920.0]
    >>> converter.convertData(5, "Mb", "mb")
    [40.0]
    >>> converter.convertSpeed(5, "km/h", "m/s")
    [1.38889]
    >>> converter.convertVolume(5, "L", "ml")
    [5000.0]
    >>> converter.convertPressure(5, "psi", "bar")
    [0.344738]
    >>> converter.convertTime(5, "day", "h")
    [120]
    >>> converter.convertTemperature(5, "C", "K")
    [278.15]

You can also import individual modules and use them to convert units:

    >>> from unitconverter.converter import convertLength
    >>> converter.convertLength(5, "cm", "m")
    [0.05]

## License

This package is licensed under the MIT license.

## Release History

**1.0.0**

* Initial release

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "python-unitconverter",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11.0",
    "maintainer_email": "",
    "keywords": "converter,units",
    "author": "",
    "author_email": "Erikas Mackevi\u010dius <mackevicius.erikas1@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/6e/fc/5e53514e4f4d909f05fbbaf049ed9673263ad0b09ea22c9ea950b791d07b/python-unitconverter-1.0.0.tar.gz",
    "platform": null,
    "description": "# Unit Converter\r\n\r\nUnit Converter is a simple python unit converter, that can help you convert various units.\r\n\r\nFor more information see the documentation [Unit Converter Documentation](https://erimac2.github.io/UnitConverter/).\r\n\r\n## Installation\r\n\r\nYou can install the Real Python Feed Reader from [PyPI](https://pypi.org/project/realpython-reader/):\r\n\r\n    python -m pip install realpython-reader\r\n\r\nThe reader is supported on Python 3.11.0 and above.\r\n\r\n## How to use\r\n\r\nUnit converter is a Python code package, named `unitconverter.converter`. To use the package, first import it:\r\n    >>> from unitconverter import converter\r\n\r\nYou can then call various conversion modules:\r\n\r\n    >>> converter.convertLength(5, \"cm\", \"m\")\r\n    [0.05]\r\n    >>> converter.convertWeight(5, \"kg\", \"g\")\r\n    [5000.0]\r\n    >>> converter.convertEnergy(5, \"kcal\", \"J\")\r\n    [20920.0]\r\n    >>> converter.convertData(5, \"Mb\", \"mb\")\r\n    [40.0]\r\n    >>> converter.convertSpeed(5, \"km/h\", \"m/s\")\r\n    [1.38889]\r\n    >>> converter.convertVolume(5, \"L\", \"ml\")\r\n    [5000.0]\r\n    >>> converter.convertPressure(5, \"psi\", \"bar\")\r\n    [0.344738]\r\n    >>> converter.convertTime(5, \"day\", \"h\")\r\n    [120]\r\n    >>> converter.convertTemperature(5, \"C\", \"K\")\r\n    [278.15]\r\n\r\nYou can also import individual modules and use them to convert units:\r\n\r\n    >>> from unitconverter.converter import convertLength\r\n    >>> converter.convertLength(5, \"cm\", \"m\")\r\n    [0.05]\r\n\r\n## License\r\n\r\nThis package is licensed under the MIT license.\r\n\r\n## Release History\r\n\r\n**1.0.0**\r\n\r\n* Initial release\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Unit Converter  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Make conversions between various units",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://erimac2.github.io/UnitConverter/"
    },
    "split_keywords": [
        "converter",
        "units"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "73a7f6e6bb1a13f516fff40ec4682c3f5ddcbee329823732f2f3a9a5bf2f857e",
                "md5": "727d4f5de48949046d8625578ed48f07",
                "sha256": "77da12d436ccd25806d7fdc1695514d6c788b3bb2a92cd2fa02e69301081360e"
            },
            "downloads": -1,
            "filename": "python_unitconverter-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "727d4f5de48949046d8625578ed48f07",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11.0",
            "size": 7254,
            "upload_time": "2023-05-23T17:22:32",
            "upload_time_iso_8601": "2023-05-23T17:22:32.640998Z",
            "url": "https://files.pythonhosted.org/packages/73/a7/f6e6bb1a13f516fff40ec4682c3f5ddcbee329823732f2f3a9a5bf2f857e/python_unitconverter-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6efc5e53514e4f4d909f05fbbaf049ed9673263ad0b09ea22c9ea950b791d07b",
                "md5": "deaf2108d7c4af442ddf06d386da5a24",
                "sha256": "02bfc3b13fa526e68c87c734f05cf6d015910d7836b38cf3a65f65e8b487f8f1"
            },
            "downloads": -1,
            "filename": "python-unitconverter-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "deaf2108d7c4af442ddf06d386da5a24",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11.0",
            "size": 6319,
            "upload_time": "2023-05-23T17:22:35",
            "upload_time_iso_8601": "2023-05-23T17:22:35.253803Z",
            "url": "https://files.pythonhosted.org/packages/6e/fc/5e53514e4f4d909f05fbbaf049ed9673263ad0b09ea22c9ea950b791d07b/python-unitconverter-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-23 17:22:35",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "python-unitconverter"
}
        
Elapsed time: 0.06883s