Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

💱 Project 12 – Currency Converter (API)

A simple Command-Line Currency Converter that fetches live exchange rates from Open Exchange Rates API and converts between any two supported currencies.


🛠️ Tech Stack

Python Requests API CLI


✨ Features

  • 🌍 Fetches real-time exchange rates from a free API.
  • 🔄 Converts between any two currencies supported by the API.
  • 📜 Displays all available currencies for reference.
  • ❌ Handles invalid currency codes gracefully.

📦 Installation & Setup

  1. Clone the repository

    git clone <your-repo-url>
    cd Project_12_Currency_Converter
  2. Install dependencies

    pip install requests
  3. Run the program

    python currency_converter.py

🖥️ Usage Example

you can choose from :
 ['USD', 'EUR', 'GBP', 'INR', 'JPY', ...]

Value: 100
from Currency: USD
to Currency: INR

💰 100 USD = 8321.45 INR

🧠 Key Learnings

  • How to consume a public API without authentication.
  • How to process and store exchange rate data in Python.
  • Simple arithmetic to calculate currency conversion.

🔮 Possible Improvements

  • Add GUI interface using Tkinter.
  • Cache rates locally to avoid multiple API calls.
  • Allow batch conversions (convert to multiple currencies at once).