This repository contains two versions of a Python Currency Converter that fetches live exchange rates using the exchangerate.host API. It is designed for both command-line (CLI) and graphical user interface (GUI) usage.
A command-line interface (CLI) Python script to convert currencies in real-time. Users can interact through terminal input and see instant conversion results.
- Real-time conversion between any two currencies.
- Handles invalid inputs gracefully.
- Lightweight and easy-to-use CLI interface.
-
Python 3.x
-
requests
librarypip install requests
-
Clone the repository.
-
Run the script:
python currency_coverter_api.py
-
Follow prompts in the terminal:
- Enter the source currency (e.g., USD)
- Enter the target currency (e.g., INR)
- Enter the amount to convert
- Type
exit
,quit
, orq
to stop the program.
A Python GUI application built with Tkinter. Users can input currencies and amount via a graphical interface and see the converted value instantly.
- Intuitive GUI for currency conversion.
- Validates user input.
- Displays conversion results in the app window.
- Uses live exchange rates from exchangerate.host API.
-
Python 3.x
-
requests
library -
tkinter
(usually comes pre-installed with Python)pip install requests
-
Clone the repository.
-
Run the script:
python currency_coverter_GUI.py
-
Use the GUI to:
- Enter From Currency (e.g., USD)
- Enter To Currency (e.g., INR)
- Enter Amount
- Click Convert to see the converted value.
- exchangerate.host - Free API for real-time currency conversion.
Imran Ahmad
Python Automation Tester | Selenium | PyTest | API Testing
✅ Developed as part of a Python automation learning exercise.