A simple Command Line Interface (CLI) app built with Python that converts currencies in real-time using the FreeCurrencyAPI.
- Convert between world currencies 🌍
- Real-time exchange rates powered by FreeCurrencyAPI
- Lightweight & beginner-friendly
- Secure API key management with
.env
Follow these steps to set up and run the project on your local machine:
git clone https://github.com/impriyanshusah/Currency-converter-python.git
cd Currency-converter-python
It’s recommended to use a virtual environment to keep dependencies isolated.
On Linux/macOS:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Go to FreeCurrencyAPI
Sign up (it’s free!)
Copy your API key from the Dashboard
Create a .env file in the project root and add your API key
python3 main.py
Here are some currencies - EUR, USD, INR, JPY, RUB, AUD, CAD, GBP
Base currency (e.g., USD, or 'q' to quit): jpy
Target currency: inr
Amount: 5000
5000.00 JPY ≈ 2961.13 INR
You can deactivate venv
deactivate