This is a simple console application written in Python that allows you to convert values between different units of measurement, such as length and weight. The application features a user-friendly menu system and supports conversion of units defined in a JSON file.
-
Clone the repository or download the ZIP file.
-
git clone https://github.com/DLQuake/Unit-converter-python.git
- ZIP
-
-
Run the application by executing the
main.py
script with Python 3. -
You can also download the JSON file and main.exe from this link: LINK
To use the application, simply run the main.py
script in your terminal. You will be presented with a menu where you can select the type of unit you wish to convert and enter the value to be converted.
After selecting the units, the application will display the converted value along with the original and target units. The terminal will be cleared after the conversion is complete.
The application supports custom units of measurement defined in a JSON file. To add or modify units, simply edit the units.json
. The file uses a simple key-value structure to define conversion ratios between units.
The application requires Python 3.x to run. No additional libraries or dependencies are needed.
This project is licensed under the MIT License. Feel free to use and modify the code for your own purposes.