Skip to content

About

A Python-based currency converter that retrieves exchange rates from the Frankfurter API and converts currencies through an interactive command-line interface.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Python Currency Converter

A simple command-line currency converter built with Python. This application uses exchange rate data from the Frankfurter API to convert currencies and display the latest available reference rates.

Features

  • Convert between different currencies.
  • Retrieve exchange rates from an API.
  • Display conversion results.
  • Show exchange rate dates.
  • Input validation.
  • Error handling for API connection issues.
  • Colorful terminal interface.
  • Multiple conversions in one session.

Technologies Used

  • Python
  • Requests
  • Colorama
  • Frankfurter API

Project Structure

python-currency-converter/
│
├── app.py
├── requirements.txt
├── README.md
└── .gitignore

Installation

1. Clone Repository

git clone https://github.com/pradipta-web/python-currency-converter.git

2. Navigate to Project

cd python-currency-converter

3. Create Virtual Environment

py -m venv venv

4. Install Dependencies

venv\Scripts\python.exe -m pip install -r requirements.txt

5. Run Application

venv\Scripts\python.exe app.py

Example Usage

PYTHON CURRENCY CONVERTER

Enter amount: 100
From currency (e.g. USD): USD
To currency (e.g. IDR): IDR

CONVERSION RESULT

Amount: 100.00 USD
Exchange Rate: ...
Result: ... IDR
Rate Date: ...

API

This project uses the Frankfurter API to retrieve exchange rate information.

API Documentation: https://frankfurter.dev/

Author

Kinervaaa

GitHub: https://github.com/pradipta-web

About

A Python-based currency converter that retrieves exchange rates from the Frankfurter API and converts currencies through an interactive command-line interface.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages