unit-ease


Nameunit-ease JSON
Version 0.1 PyPI version JSON
download
home_pageNone
SummaryA simple unit converter package for length, temperature, weight, and volume conversions
upload_time2024-09-03 14:29:17
maintainerNone
docs_urlNone
authorHari K
requires_python>=3.6
licenseNone
keywords unit converter conversion length temperature weight volume
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 package that allows you to convert between various units of length, temperature, weight, and volume. This package provides straightforward functions to handle common unit conversions with ease.

## Features

- **Length Conversions**
  - Meters to Feet and Feet to Meters
  - Kilometers to Miles and Miles to Kilometers
  - Centimeters to Inches and Inches to Centimeters
  - Millimeters to Inches and Inches to Millimeters

- **Temperature Conversions**
  - Celsius to Fahrenheit and Fahrenheit to Celsius
  - Celsius to Kelvin and Kelvin to Celsius

- **Weight Conversions**
  - Kilograms to Pounds and Pounds to Kilograms
  - Grams to Ounces and Ounces to Grams
  - Stones to Kilograms and Kilograms to Stones

- **Volume Conversions**
  - Liters to Gallons and Gallons to Liters
  - Milliliters to Ounces and Ounces to Milliliters
  - Cups to Liters and Liters to Cups

## Installation

You can install the package using pip:

```bash
pip install unit_ease


>>> from unit_ease import (
    meters_to_feet, feet_to_meters,
    kilometers_to_miles, miles_to_kilometers,
    centimeters_to_inches, inches_to_centimeters,
    millimeters_to_inches, inches_to_millimeters,
    celsius_to_fahrenheit, fahrenheit_to_celsius,
    celsius_to_kelvin, kelvin_to_celsius,
    kilograms_to_pounds, pounds_to_kilograms,
    grams_to_ounces, ounces_to_grams,
    stones_to_kilograms, kilograms_to_stones,
    liters_to_gallons, gallons_to_liters,
    milliliters_to_ounces, ounces_to_milliliters,
    cups_to_liters, liters_to_cups
 )

# Length Conversions
>>> print(f"10 meters is {meters_to_feet(10)} feet.")
>>> print(f"5 miles is {miles_to_kilometers(5)} kilometers.")

# Temperature Conversions
>>> print(f"25 Celsius is {celsius_to_fahrenheit(25)} Fahrenheit.")
>>> print(f"300 Kelvin is {kelvin_to_celsius(300)} Celsius.")

# Weight Conversions
>>> print(f"70 kilograms is {kilograms_to_pounds(70)} pounds.")
>>> print(f"5 grams is {grams_to_ounces(5)} ounces.")

# Volume Conversions
>>> print(f"2 liters is {liters_to_gallons(2)} gallons.")
>>> print(f"100 milliliters is {milliliters_to_ounces(100)} ounces.")

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "unit-ease",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "unit converter conversion length temperature weight volume",
    "author": "Hari K",
    "author_email": "hariswdeveloper@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/01/bd/fe5fce1692954a47dfb555d2a9286f1d879eaf71a659769768bd86e003da/unit_ease-0.1.tar.gz",
    "platform": null,
    "description": "# Unit Converter\r\n\r\n**Unit Converter** is a simple Python package that allows you to convert between various units of length, temperature, weight, and volume. This package provides straightforward functions to handle common unit conversions with ease.\r\n\r\n## Features\r\n\r\n- **Length Conversions**\r\n  - Meters to Feet and Feet to Meters\r\n  - Kilometers to Miles and Miles to Kilometers\r\n  - Centimeters to Inches and Inches to Centimeters\r\n  - Millimeters to Inches and Inches to Millimeters\r\n\r\n- **Temperature Conversions**\r\n  - Celsius to Fahrenheit and Fahrenheit to Celsius\r\n  - Celsius to Kelvin and Kelvin to Celsius\r\n\r\n- **Weight Conversions**\r\n  - Kilograms to Pounds and Pounds to Kilograms\r\n  - Grams to Ounces and Ounces to Grams\r\n  - Stones to Kilograms and Kilograms to Stones\r\n\r\n- **Volume Conversions**\r\n  - Liters to Gallons and Gallons to Liters\r\n  - Milliliters to Ounces and Ounces to Milliliters\r\n  - Cups to Liters and Liters to Cups\r\n\r\n## Installation\r\n\r\nYou can install the package using pip:\r\n\r\n```bash\r\npip install unit_ease\r\n\r\n\r\n>>> from unit_ease import (\r\n    meters_to_feet, feet_to_meters,\r\n    kilometers_to_miles, miles_to_kilometers,\r\n    centimeters_to_inches, inches_to_centimeters,\r\n    millimeters_to_inches, inches_to_millimeters,\r\n    celsius_to_fahrenheit, fahrenheit_to_celsius,\r\n    celsius_to_kelvin, kelvin_to_celsius,\r\n    kilograms_to_pounds, pounds_to_kilograms,\r\n    grams_to_ounces, ounces_to_grams,\r\n    stones_to_kilograms, kilograms_to_stones,\r\n    liters_to_gallons, gallons_to_liters,\r\n    milliliters_to_ounces, ounces_to_milliliters,\r\n    cups_to_liters, liters_to_cups\r\n )\r\n\r\n# Length Conversions\r\n>>> print(f\"10 meters is {meters_to_feet(10)} feet.\")\r\n>>> print(f\"5 miles is {miles_to_kilometers(5)} kilometers.\")\r\n\r\n# Temperature Conversions\r\n>>> print(f\"25 Celsius is {celsius_to_fahrenheit(25)} Fahrenheit.\")\r\n>>> print(f\"300 Kelvin is {kelvin_to_celsius(300)} Celsius.\")\r\n\r\n# Weight Conversions\r\n>>> print(f\"70 kilograms is {kilograms_to_pounds(70)} pounds.\")\r\n>>> print(f\"5 grams is {grams_to_ounces(5)} ounces.\")\r\n\r\n# Volume Conversions\r\n>>> print(f\"2 liters is {liters_to_gallons(2)} gallons.\")\r\n>>> print(f\"100 milliliters is {milliliters_to_ounces(100)} ounces.\")\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple unit converter package for length, temperature, weight, and volume conversions",
    "version": "0.1",
    "project_urls": null,
    "split_keywords": [
        "unit",
        "converter",
        "conversion",
        "length",
        "temperature",
        "weight",
        "volume"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "01bdfe5fce1692954a47dfb555d2a9286f1d879eaf71a659769768bd86e003da",
                "md5": "f70abcfb08a67a1ec407cef267eab7cb",
                "sha256": "288084026eb92bdd49e93ebc16bff0eb725d33fdc5a011a1257c4abd76e69bb5"
            },
            "downloads": -1,
            "filename": "unit_ease-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f70abcfb08a67a1ec407cef267eab7cb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2580,
            "upload_time": "2024-09-03T14:29:17",
            "upload_time_iso_8601": "2024-09-03T14:29:17.892294Z",
            "url": "https://files.pythonhosted.org/packages/01/bd/fe5fce1692954a47dfb555d2a9286f1d879eaf71a659769768bd86e003da/unit_ease-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-03 14:29:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "unit-ease"
}
        
Elapsed time: 3.57100s