Skip to content

A simple, real-time currency converter web application built with Python and Streamlit, utilizing ExchangeRate-API for up-to-date exchange rates.

Notifications You must be signed in to change notification settings

Mani-IR/python-streamlit-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Currency Converter

A simple web-based currency converter built with Python and Streamlit. Converts amounts between currencies using real-time exchange rates from ExchangeRate-API.

Features

  • Real-time currency conversion
  • Interactive Streamlit UI
  • Caches exchange rates for 3 hours
  • Supports multiple currencies

Project Structure

./
├── env/                        # Virtual environment
├── src/
│   ├── app.py                 # Streamlit app
│   ├── currency_convertor.py  # Conversion logic
│   └── constants.py           # Currency list
└── README.md

Setup

  1. Clone the repo:
    git clone <repository-url>
    cd pro-6
  2. Create and activate virtual environment:
    python -m venv env
    source env/bin/activate  # Linux/Mac
    env\Scripts\activate     # Windows
  3. Install dependencies:
    pip install streamlit requests cachetools
  4. Run the app:
    cd src
    streamlit run app.py

Usage

  • Select base and target currencies
  • Enter amount to convert
  • View instant results

Notes

  • Rates cached for 3 hours
  • Requires constants.py with CURRENCIES list
  • Shows error if API fails

Dependencies

  • streamlit
  • requests
  • cachetools

License

MIT License

About

A simple, real-time currency converter web application built with Python and Streamlit, utilizing ExchangeRate-API for up-to-date exchange rates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages