A simple web-based currency converter built with Python and Streamlit. Converts amounts between currencies using real-time exchange rates from ExchangeRate-API.
- Real-time currency conversion
- Interactive Streamlit UI
- Caches exchange rates for 3 hours
- Supports multiple currencies
./
├── env/ # Virtual environment
├── src/
│ ├── app.py # Streamlit app
│ ├── currency_convertor.py # Conversion logic
│ └── constants.py # Currency list
└── README.md
- Clone the repo:
git clone <repository-url> cd pro-6
- Create and activate virtual environment:
python -m venv env source env/bin/activate # Linux/Mac env\Scripts\activate # Windows
- Install dependencies:
pip install streamlit requests cachetools
- Run the app:
cd src streamlit run app.py
- Select base and target currencies
- Enter amount to convert
- View instant results
- Rates cached for 3 hours
- Requires
constants.pywithCURRENCIESlist - Shows error if API fails
streamlitrequestscachetools
MIT License