CurrencyConverter
A currency converter using the European Central Bank data.
What it is and what it does
CurrencyConverter is a Python library that performs currency conversions using historical exchange rates from the European Central Bank. It works with 42 currencies against the Euro and includes rates dating back to 1999. The package uses embedded data rather than real-time API calls, which means conversions are fast but the data may not reflect the absolute latest rates—you can optionally download fresh data from the ECB if needed.
The library supports querying rates for specific historical dates, with fallback modes for missing rates (using linear interpolation or the last known rate) and for dates outside the available range. It also offers a decimal mode for exact conversions when floating-point precision is insufficient. A command-line tool is included for quick conversions from the terminal.
Use it for:
- Build historical financial reports that need accurate exchange rates for specific past dates.
- Integrate currency conversion into applications where embedded data is acceptable and real-time rates are not critical.
- Perform batch conversions across multiple currencies without the latency of HTTP API calls.
- Calculate multi-currency accounting or reconciliation using precise decimal arithmetic.
- Analyze historical currency trends by accessing rates across decades of ECB data.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts currency amounts using historical exchange rates from the European Central Bank, with support for 42 currencies against the Euro since 1999.
Yes. The package is actively maintained, has no dependencies, installs easily, and solves a clear problem for applications needing historical currency conversion. The embedded data model trades freshness for speed and reliability. If you need real-time rates or rates outside the ECB's coverage, this is not the right tool; otherwise, it's a solid choice for historical or batch conversions.
Install
currencyconverter on PyPI
pip
pip install currencyconverteruv
uv add currencyconverterpoetry
poetry add currencyconverterInstalling CurrencyConverter
Before you install
Low install friction with no runtime dependencies. Active maintenance with a recent release 10 days ago and steady repository activity.
Quickstart
pip install currencyconverter
from datetime import date
c = CurrencyConverter()
result = c.convert(100, 'EUR', 'USD', date=date(2013, 3, 21))
Requires Python 3.9 or later.
Verify before relying
- Whether embedded currency data is updated regularly and how stale it typically becomes between releases.
- Performance characteristics when using the decimal option for exact conversions.
- Whether the fallback interpolation methods are suitable for financial applications requiring audit trails.
- Real-time rate availability and whether this package meets latency requirements for live trading or pricing.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 795,011/month — #5,035 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: currencyconverter-0.18.21-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
forex-pythonFetches current and historical foreign exchange…
permissive · top 15,000 on PyPI
ccyProvides a dictionary of currency objects with…
permissive · top 15,000 on PyPI
django-moneyAdds Money and currency field types to Django…
permissive · top 5,000 on PyPI
cpiAdjusts U.S. dollar amounts for inflation using…
permissive · top 15,000 on PyPI
currency-symbolsMaps ISO 4217 currency codes to their symbols…
permissive · top 5,000 on PyPI
py-moneyRepresents monetary amounts with currency-aware…
permissive · top 15,000 on PyPI
py-moneyedProvides Money and Currency classes for…
permissive · top 5,000 on PyPI
pricesHandles monetary amounts with currency…
permissive · top 15,000 on PyPI
aioopenexchangeratesAsync client library for fetching currency…
permissive · top 15,000 on PyPI
usd-exchangeProvides higher-level convenience functions and…
permissive · top 15,000 on PyPI