/Open-Unit-Converter

Unit Converter: A comprehensive web application for converting between various units of measurement. Built with Python and Flask, it supports a wide range of unit types including length, weight, volume, temperature, and more. Features a user-friendly interface and responsive design for desktop and mobile use.

Primary LanguageHTMLMIT LicenseMIT

Unit Converter

A comprehensive web application for converting between various units of measurement.

Features

  • Convert between a wide range of units:
    • Length (e.g., meters, feet, miles, light-years)
    • Weight (e.g., grams, pounds, tons)
    • Volume (e.g., liters, gallons, cubic meters)
    • Temperature (e.g., Celsius, Fahrenheit, Kelvin)
    • Time (e.g., seconds, minutes, hours, years)
    • Speed (e.g., m/s, km/h, mph)
    • Digital Information (e.g., bits, bytes, GB)
    • Frequency (Hz)
    • Electric units (e.g., Ampere, Volt, Ohm)
    • Power (e.g., Watt, Horsepower)
    • Energy (e.g., Joule, Calorie, kWh)
    • Area (e.g., square meters, acres, hectares)
  • User-friendly interface with dropdown menus for unit selection
  • Responsive design for desktop and mobile devices

Technologies Used

  • Python
  • Flask
  • HTML
  • CSS
  • JavaScript (for future enhancements)

How to Run

  1. Ensure you have Python installed on your system
  2. Clone this repository
  3. Navigate to the project directory
  4. Create a virtual environment:
    python -m venv venv
    
  5. Activate the virtual environment:
    • On Windows:
      venv\Scripts\activate
      
    • On macOS and Linux:
      source venv/bin/activate
      
  6. Install Flask by running:
    pip install flask
    
  7. Run the application:
    python app.py
    
  8. Open a web browser and go to http://localhost:5000

Recent Improvements

  • Added a wide range of new unit types and conversion options
  • Improved the user interface with categorized dropdown menus
  • Enhanced the backend logic to handle various unit conversions efficiently

Upcoming Features

  • Implement a unit search/filter feature for quick unit selection
  • Add a "Swap" button to easily switch between "From" and "To" units
  • Create a conversion history chart to visualize past conversions
  • Include educational content about different units and their uses
  • Further improve the user interface and overall user experience

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.