Skip to main content

A Python package for various unit conversions

Project description

📦 Omniscale

Omniscale is a Python package that provides various unit conversion functions, including temperature, distance, weight, speed, and time conversions.

рџљЂ Installation

You can install the package directly from PyPI using:

pip install omniscale==0.1

рџ›  Usage

Import the package and use the available functions:

import omniscale

# Convert Celsius to Fahrenheit
print(omniscale.celsius_to_fahrenheit(0))  # Output: 32.0
print(omniscale.celsius_to_fahrenheit(100))  # Output: 212.0

# Convert Fahrenheit to Celsius
print(omniscale.fahrenheit_to_celsius(98.6))  # Output: 37.0

# Convert meters to feet
print(omniscale.meters_to_feet(1))  # Output: 3.28084

# Convert feet to meters
print(omniscale.feet_to_meters(3.28084))  # Output: 1.0

# Convert kilograms to pounds
print(omniscale.kg_to_pounds(10))  # Output: 22.05

# Convert pounds to kilograms
print(omniscale.pounds_to_kg(22.05))  # Output: 10.0

# Convert kilometers per hour to miles per hour
print(omniscale.kmh_to_mph(100))  # Output: 62.14

# Convert miles per hour to kilometers per hour
print(omniscale.mph_to_kmh(62.14))  # Output: 100.0

# Convert minutes to seconds
print(omniscale.minutes_to_seconds(5))  # Output: 300

# Convert seconds to minutes
print(omniscale.seconds_to_minutes(300))  # Output: 5.0

рџ“Њ Available Conversions

  • celsius_to_fahrenheit(celsius): Converts Celsius to Fahrenheit.
  • fahrenheit_to_celsius(fahrenheit): Converts Fahrenheit to Celsius.
  • meters_to_feet(meters): Converts meters to feet.
  • feet_to_meters(feet): Converts feet to meters.
  • kg_to_pounds(kg): Converts kilograms to pounds.
  • pounds_to_kg(pounds): Converts pounds to kilograms.
  • kmh_to_mph(kmh): Converts kilometers per hour to miles per hour.
  • mph_to_kmh(mph): Converts miles per hour to kilometers per hour.
  • minutes_to_seconds(minutes): Converts minutes to seconds.
  • seconds_to_minutes(seconds): Converts seconds to minutes.

рџ¤ќ Contributing

Feel free to fork this repository, make improvements, but don't forget to say my name!

рџ“„ License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omniscale-0.2a0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omniscale-0.2a0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file omniscale-0.2a0.tar.gz.

File metadata

  • Download URL: omniscale-0.2a0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for omniscale-0.2a0.tar.gz
Algorithm Hash digest
SHA256 3e743011edfb4aae443d71bcf9a86f4d379afc7bf525233c01c121ff65cf9a54
MD5 9d8266dea6414191e6abec4128cf493c
BLAKE2b-256 a29cb0ccc0b562373bfc2912bd76941b82907aeb04c75186d92dce67fe843e8e

See more details on using hashes here.

File details

Details for the file omniscale-0.2a0-py3-none-any.whl.

File metadata

  • Download URL: omniscale-0.2a0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for omniscale-0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 144fe7b97a75d49d971be3a2d1d9411e8f0b1d1cdd0707dfc1076b84850d8b73
MD5 42fe89f27b6e6fdc7d2db53aa124ec0f
BLAKE2b-256 bb8ceb7e314309b3ef088c38d75ff1d21f6f03b95703b4ac65b05063a0bdda7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page