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.2.tar.gz (4.3 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.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for omniscale-0.2.tar.gz
Algorithm Hash digest
SHA256 0c5bfbb9f0aec7a2b1532a89deb83b458c85baa69cf1a1003f7d179d26fb8176
MD5 4247d92937fb323baf06ad059dc2246f
BLAKE2b-256 1c335b0e19ac3520df17759ee822772e0008ff08e7daddba7592ea3238393d8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omniscale-0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8d4bce2d2fbd5b38b48182f3653078e7131b1e8af9de4f0d1d2424a05d08d0
MD5 70814f278b8001778b9d0960ad228cb9
BLAKE2b-256 437d1d6217b5cd9dd812c01f81d3117ed28a122af376aa7a78b4023e6d13d1a8

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