See the locale module.

This does currency (and date) formatting.

>>> import locale
>>> locale.setlocale( locale.LC_ALL, '' )
'English_United States.1252'
>>> locale.currency( 188518982.18 )
'$188518982.18'
>>> locale.currency( 188518982.18, grouping=True )
'$188,518,982.18'
Answer from S.Lott on Stack Overflow
🌐
Exercism
exercism.org › tracks › python › exercises › currency-exchange
Currency Exchange in Python on Exercism
Remember that the currency denomination is a whole number, and cannot be sub-divided. Note: Returned value should be int type. >>> exchangeable_value(127.25, 1.20, 10, 20) 80 >>> exchangeable_value(127.25, 1.20, 10, 5) 95 ... Sign up to Exercism to learn and master Python with 17 concepts146 exercises, and real human mentoring, all for free.
🌐
Reddit
reddit.com › r/python › currency classes for python
r/Python on Reddit: Currency classes for Python
February 20, 2025 -

Monepy

A python package that implements currency classes to work with monetary values.

Target audience

I created it mostly for some data analysis tasks I usually do, and also as way to learn about project structure, documentation, github actions and how to publish packages.

I wouldn't know if it's production ready.

Comparison

After starting it I found about py-moneyed. They are quite similar, but I wanted something that looks "cleaner" when using it.

Any feedback will be appreciated.

A simple programme for converting currency Oct 15, 2025
r/PythonLearning
9mo ago
how to make in-game currency for python Mar 19, 2022
r/learnpython
4y ago
Exercism -> Python -> Currency Change -> Task 6 Feb 3, 2025
r/learnpython
last yr.
Forex data in python Aug 12, 2024
r/PythonLearning
last yr.
More results from reddit.com
🌐
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
🌐
PyPI
pypi.org › project › currencies
currencies · PyPI
Python :: 3.8 · Topic · Software Development · Report project as malware · Display money format and its filthy currencies, for all money lovers out there. currencies is available on PyPi · http://pypi.python.org/pypi/currencies · So easily install it by pip ·
      » pip install currencies
    
Published   Dec 12, 2020
Version   2020.12.12
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-format-numbers-as-currency-strings-in-python
How to format numbers as currency strings in Python - GeeksforGeeks
July 23, 2025 - Formatting numbers as currency strings in Python involves presenting numeric values in the standardized currency format typically including the currency symbol, thousands separators and the number of the decimal places.
🌐
ExchangeRate-API
exchangerate-api.com › docs › python-currency-api
Python Exchange Rate API | Python Currency Converter
Alternatively simply use the Python library code below to get started with our exchange rate data as fast as you can copy & paste! You'll need to sign up for a free account to get an API key. Visit this link to get yours. ... import requests # Where USD is the base currency you want to use url = 'https://v6.exchangerate-api.com/v6/YOUR-API-KEY/latest/USD' # Making our request response = requests.get(url) data = response.json() # Your JSON object print data
🌐
PyPI
pypi.org › project › CurrencyConverter
CurrencyConverter · PyPI
This is a currency converter that uses historical rates against a reference currency (Euro). It is compatible with Python3.9+.
      » pip install CurrencyConverter
    
Published   Jul 08, 2026
Version   0.18.20
Find elsewhere
🌐
The Python Code
thepythoncode.com › article › make-a-currency-converter-in-python
How to Make a Currency Converter in Python - The Python Code
Learn how to make a real-time currency converter using different ways and from various sources such as xe, yahoo finance, xrates and Fixer API in Python.
🌐
DataFlair
data-flair.training › blogs › currency-converter-python
Currency Converter - Python Project with Source Code - DataFlair
August 3, 2021 - Rates: It is the exchange rate of currencies with base currency USD. For this project based on Python, we are using the tkinter and requests library.
🌐
Shakuro
shakuro.com › home › smart strategies for managing monetary values
How to Handle Monetary Values in Python
September 16, 2024 - Another strategy is to pass a value of the String type and the currency identifier as a separate field. The advantage is that the String type value can be converted to the necessary type – Float, Decimal, and others. The received data structure in PayPal services is a perfect example.
🌐
GitHub
github.com › vimeo › py-money
GitHub - vimeo/py-money: Money class for Python 3 · GitHub
Money class for Python 3. Unlike other Python money classes, this class enforces that all monetary amounts are represented with the correct number of decimal places for the currency.
Starred by 127 users
Forked by 24 users
Languages   Python 99.5% | Makefile 0.5%
🌐
Medium
medium.com › pythonforall › build-a-simple-currency-converter-in-python-a-beginners-guide-490005f0046a
Build a Simple Currency Converter in Python: A Beginner’s Guide | by Ahmad Waleed | PythonForAll | Medium
October 2, 2024 - By the end of this tutorial, you’ll have a program that can convert one currency to another using either static or real-time exchange rates.
🌐
Stack Abuse
stackabuse.com › format-number-as-currency-string-in-python
How to Format Number as Currency String in Python
February 24, 2023 - We'll be going over three alternate libraries and functions which allow us to convert numbers into currency strings: The locale module. The Babel module. The str.format() function. The locale module is already included in Python, though, we'll have to install Babel to use it.
🌐
GitHub
github.com › carlospalol › money
GitHub - carlospalol/money: Python money class with optional CLDR-backed locale-aware formatting and an extensible currency exchange solution.
Python money class with optional CLDR-backed locale-aware formatting and an extensible currency exchange solution. - carlospalol/money
Starred by 236 users
Forked by 35 users
Languages   Python 100.0% | Python 100.0%
🌐
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 - 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. Looking to Learn Python?
🌐
Readthedocs
quantlib-python-docs.readthedocs.io › en › latest › currencies.html
Currencies — QuantLib-Python Documentation 1.40 documentation
symbol() : Returns a string, which is a symbol often used to represent the currency in the real world. The dollar is “$” and the yen is “¥”. It should be noted that this function may return Unicode, which may cause the program to fail in Python;
🌐
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
🌐
GitHub
github.com › NearHuscarl › py-currency
GitHub - NearHuscarl/py-currency: A python library to convert currency, prettify price and get various currency info
currency.convert('USD', 'EUR') currency.convert('USD', 'EUR', 2) currency.convert('JPY', 'AUD', 100)
Starred by 8 users
Forked by 3 users
Languages   Python 100.0% | Python 100.0%