Skip to main content

Python unit converter with a Tkinter interface for easy and precise conversions across various measurements such as force, length, and mass

Project description

Metricus

made-with-python PyPi license Open Source? Yes!

Getting StartedCollaboratorsContributeLicensePreview

This Python-based unit converter is a simple and efficient tool for converting measurements between various units, such as force, length, mass, and others, including complex operations like displacement. It features an intuitive graphical user interface built with Tkinter, allowing users to navigate and perform conversions easily. The converter returns precise results, formatted with or without the unit abbreviation for easy readability.

🚀 Getting started

pip install metricus

Usage Example

from Metricus import MetricusGUI
from Metricus import temperature_converter

# Converting temperatures
temp_celsius = 25
temp_rankine = temperature_converter(temp_celsius, 'celsius', 'rankine')
print(f"{temp_celsius} degrees Celsius equals {temp_rankine} Rankine")

# Initializing and running the graphical interface
MetricusGUI()

🌟 Preview

Below is a preview of the Metricus graphical user interface (GUI):

Simple Conversions:

Metricus GUI

Complex Conversions:

Metricus GUI

The GUI is built with Tkinter and provides an intuitive way to perform unit conversions quickly and accurately.

Prerequisites

  • Python 3.8+
  • Tkinter (included in Python's standard library)

Cloning

git clone https://github.com/guifreschi/Metricus

Starting

Clone the repository git clone https://github.com/guifreschi/Metricus

Navigate into the project directory cd Metricus

Create a virtual environment python -m venv venv

Activate the virtual environment

  • On Windows venv\Scripts\activate
  • On Unix or MacOS source venv/bin/activate

Install Metricus pip install -e .

🤝 Collaborators

This project is maintained and created by:

Guilherme Freschi Profile Picture
Guilherme Freschi
Yaron Buchler Profile Picture
Yaron Buchler

📫 Contribute

  1. git clone https://github.com/guifreschi/Metricus
  2. git checkout -b feature/NAME
  3. Follow commit patterns
  4. Open a Pull Request explaining the problem solved or feature made, if exists, append screenshot of visual modifications and wait for the review!

Documentations that might help

📝 How to create a Pull Request

💾 Commit pattern

📝 License

This project is licensed under the MIT License. See the LICENSE file for details.

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

metricus-0.11.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

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

metricus-0.11-py3-none-any.whl (67.4 kB view details)

Uploaded Python 3

File details

Details for the file metricus-0.11.tar.gz.

File metadata

  • Download URL: metricus-0.11.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for metricus-0.11.tar.gz
Algorithm Hash digest
SHA256 64fa62a6c78a564dc53d8e477f16c56e6bd3c3548e5ac77fd360321fe79d0299
MD5 6fba5ede294de07a6052f497ae80f25b
BLAKE2b-256 aba948e0feefa50693e144d20395614b9de821f7c46a07a874b6dcf0e02ac997

See more details on using hashes here.

File details

Details for the file metricus-0.11-py3-none-any.whl.

File metadata

  • Download URL: metricus-0.11-py3-none-any.whl
  • Upload date:
  • Size: 67.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for metricus-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 77d4ae0db6bcbd8f8289e5d2a06f0de7500ca87bbff956f0033757c0dc0d73af
MD5 72939f23255b3f59d19d8ea9c311081d
BLAKE2b-256 603d2e034f46467b5be8e850511c302f14689824446c82e6650a7a451a563257

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