🌐
GeeksforGeeks
geeksforgeeks.org › python › currency-converter-in-python
Currency Converter in Python - GeeksforGeeks
November 3, 2025 - Using Tkinter + forex_python for a GUI-based converter · This method requires forex API keys. Get you own API key from here. Install requests module to handle API calls using the following command: ... import requests class CurrencyConverter: def __init__(self, url): # Fetching real-time data from the API data = requests.get(url).json() self.rates = data["rates"] def convert(self, from_currency, to_currency, amount): """Convert amount from one currency to another.""" initial_amount = amount # Convert from non-EUR currency to EUR first if from_currency != 'EUR': amount = amount / self.rates[fr
🌐
W3Schools
w3schools.in › python › examples › real-time-currency-converter
Real Time Currency Converter in Python - W3schools
It will ask you to input the amount and the currency codes you want to convert. ... from forex_python.converter import CurrencyRates cr = CurrencyRates() amount = int(input("Please enter the amount you want to convert: ")) from_currency = input("Please enter the currency code that has to be converted: ").upper() to_currency = input("Please enter the currency code to convert: ").upper() print("You are converting", amount, from_currency, "to", to_currency,".") output = cr.convert(from_currency, to_currency, amount) print("The converted rate is:", output)
🌐
The Python Code
thepythoncode.com › article › make-a-currency-converter-in-python
How to Make a Currency Converter in Python - The Python Code
It is a simple and lightweight API for real-time and historical foreign exchange rates. You can easily create an account and get the API key. After you've done that, you can use the /convert endpoint to convert from one currency to another.
🌐
DataFlair
data-flair.training › blogs › currency-converter-python
Currency Converter - Python Project with Source Code - DataFlair
August 3, 2021 - So we need to import the library. import requests from tkinter import * import tkinter as tk from tkinter import ttk · Now we will create the CurrencyConverter class which will get the real-time exchange rate and convert the currency and return ...
🌐
GitHub
github.com › prathmeshborate › CurrencyConverter
GitHub - prathmeshborate/CurrencyConverter: CurrencyConverter is a Python project using the CurrencyConverter package for real-time currency conversion. · GitHub
CurrencyConverter is a Python project that leverages the powerful CurrencyConverter package to provide real-time currency conversion capabilities. Say goodbye to manual currency calculations and complicated exchange rate lookups; with ...
Starred by 3 users
Forked by 2 users
Languages   Python
🌐
PyPI
pypi.org › project › CurrencyConverter
CurrencyConverter · PyPI
It is compatible with Python3.9+. The default source is the European Central Bank. This is the ECB historical rates for 42 currencies against the Euro since 1999. It can be downloaded here: eurofxref-hist.zip. The converter can use different sources as long as the format is the same. Note that the currency converter does not query the API in real time, to avoid the overhead of the HTTP request.
      » pip install CurrencyConverter
    
Published   Jul 08, 2026
Version   0.18.20
Find elsewhere
🌐
YouTube
youtube.com › watch
How to Build a Currency Converter in Python | Real-Time Rates Using API or GUI with Tkinter - YouTube
Want to convert currencies using Python? In this beginner-friendly tutorial, you’ll learn how to build a currency converter in Python — using real-time excha...
Published   July 27, 2025
🌐
TraderMade
tradermade.com › tutorials › build-your-first-currency-converter-app
Build Your First Currency Converter in Python
May 16, 2024 - Build your own Currency Converter App using just Python and Streamlit. Get live currency conversion rates for free with no delay!
🌐
TechVidvan
techvidvan.com › tutorials › python-currency-converter
Real-time Currency Converter with Python - TechVidvan
June 9, 2021 - Create python currency converter with basic knowledge of python, requests module, and Tkinter library. Convert from one currency to another in real-time.
🌐
TutorialsPoint
tutorialspoint.com › real-time-currency-converter-using-python-tkinter
Real time currency converter using Python Tkinter
Step 3 ? Invoke the get() method to obtain the amount, base_currency and target _currency from the user. Step 4 ? Get real-time trade rates. Step 5 ? Set the labels on the window and at last run the application. import tkinter as tk import requests def convert_currency(): amount = float(entry.get()) base_currency = base_currency_var.get() target_currency = target_currency_var.get() response = requests.get(f"https://api.exchangerate-api.com/v4/latest/{base_currency}") data = response.json() conversion_rate = data['rates'][target_currency] converted_amount = amount * conversion_rate result_label
🌐
Scilit
scilit.com › publications › c9f472eda61719634ddcedf75de0e7d8
Online Currency Converter Using Python and Real-Time ...
April 30, 2026 - <iframe style="border: none; height: 100%; width: 100%;" src=""></iframe> · Powered and protected by · Privacy
🌐
Wiingy
wiingy.com › home › learn › python › how to create a currency converter in python
How to Create a Currency Converter in Python? - Wiingy
January 30, 2025 - In this detailed guide, we will take you through the complete process of setting up your Python environment, understanding essential concepts like variables, functions, libraries, and APIs, and finally writing and deploying a currency converter python project. By the end of this tutorial, you’ll have a working currency converter that fetches real-time exchange rates and can convert between different currencies.
🌐
MakeUseOf
makeuseof.com › home › programming › how to create a currency converter in python
How to Create a Currency Converter in Python
March 9, 2023 - original_amount = amount / exchange_rates[from_currency] converted_amount = original_amount * exchange_rates[to_currency] ... You can run the Python script using a command line or terminal.
🌐
Python GUIs
pythonguis.com › examples › building a currency converter application using tkinter
Build a Currency Converter in Python with Tkinter — Step by Step
March 29, 2026 - $ mkdir currency_converter/ $ cd currency_converter $ python -m venv venv $ source venv/bin/activate (venv)$ pip install requests · We will use the free Exchange Rate API to access real-time exchange rate data.
🌐
PyPI
pypi.org › project › forex-python
forex-python
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Bytescrum
blog.bytescrum.com › how-to-create-a-real-time-currency-converter-using-python
How to Create a Real-Time Currency Converter Using Python
August 23, 2024 - To get started, you need to have Python installed on your system. Additionally, we'll use the requests library to fetch live exchange rates from an API. Install the requests library if you haven't already: ... There are several APIs available for fetching real-time exchange rates. For this guide, we'll use the ExchangeRate-API or OpenExchangeRates as they offer a free tier for basic currency conversion needs.
🌐
GitHub
github.com › topics › currency-converter
currency-converter · GitHub Topics · GitHub
💱 A lightweight Prometheus exporter written in Python that fetches currency exchange rates on a fixed interval and exposes selected currency pairs as metrics. python api iot finance automation real-time ...