Skip to main content

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:

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.")

Metadata

Release files for unit-ease 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unit-ease 0.1
File Size Uploaded Provenance Actions
unit_ease-0.1.tar.gz 2.6 kB Without provenance Details for unit_ease-0.1.tar.gz

Release files / unit_ease-0.1.tar.gz

Download URL unit_ease-0.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
288084026eb92bdd49e93ebc16bff0eb725d33fdc5a011a1257c4abd76e69bb5
BLAKE2b-256 checksum
How to use checksums
01bdfe5fce1692954a47dfb555d2a9286f1d879eaf71a659769768bd86e003da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for unit-ease 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page