currency-symbols
Get currency symbol by currency code
What it is and what it does
currency-symbols is a lightweight lookup library that translates ISO 4217 currency codes into their corresponding symbols. It covers all active ISO 4217 codes plus historical, cryptocurrency, and commodity codes, returning the symbol string or None for unknown codes. The library is fully type-hinted (PEP 561 compliant), has zero external dependencies, and is maintained as a pure Python package.
Typical usage is a single function call: pass a currency code (case-insensitive) and receive its symbol. It's designed for applications that need to display currency symbols in financial dashboards, e-commerce platforms, or data processing pipelines without pulling in a large dependency tree.
Use it for:
- Display currency symbols in e-commerce checkout flows or price displays without hardcoding symbol mappings.
- Format financial reports or data exports that need localized currency representation.
- Validate and normalize currency codes in payment processing or accounting integrations.
- Build currency conversion or exchange-rate tools that require symbol lookup alongside code handling.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Maps ISO 4217 currency codes to their symbols (USD → $, EUR → €, etc.), with support for active, historical, crypto, and commodity codes.
Yes. Zero dependencies, active maintenance, MIT license, and a focused, type-safe API make this a safe choice for any project needing currency symbol lookup. The low install friction and broad code coverage (active, historical, crypto, commodity) justify inclusion even in minimal environments.
Install
currency-symbols on PyPI
pip
pip install currency-symbolsuv
uv add currency-symbolspoetry
poetry add currency-symbolsInstalling currency-symbols
Before you install
Low friction: pure Python wheel with zero runtime dependencies and active maintenance (last commit 2026-08-01, released 13 days ago).
License in practice
MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal attribution requirements.
Quickstart
pip install currency-symbols
from currency_symbols import CurrencySymbols
CurrencySymbols.get_symbol("USD") # '$'
CurrencySymbols.get_symbol("EUR") # '€'
Requires Python 3.9 or later.
Verify before relying
- Exact coverage count for active, historical, crypto, and commodity codes beyond 'all active ISO 4217'.
- Whether the symbol lookup is case-insensitive for all code types or only standard ISO codes.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 13 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,181,646/month — #3,228 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: currency_symbols-2.0.6-py3-none-any.whl
Keywords: currency, currency-symbols, iso-4217, currency-code, symbols
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
iso4217Provides ISO 4217 currency data as a Python…
permissive · top 15,000 on PyPI
CurrencyConverterConverts currency amounts using historical…
unclear · top 15,000 on PyPI
price-parserExtracts price amounts and currency symbols…
permissive · top 5,000 on PyPI
pricesHandles monetary amounts with currency…
permissive · top 15,000 on PyPI
sepaxmlGenerates SEPA XML payment files for direct…
permissive · top 15,000 on PyPI
forex-pythonFetches current and historical foreign exchange…
permissive · top 15,000 on PyPI
py-moneyRepresents monetary amounts with currency-aware…
permissive · top 15,000 on PyPI
isocodesisocodes provides programmatic access to ISO…
permissive · top 15,000 on PyPI
cxxfiltDemangle C++ symbol names by wrapping the…
permissive · top 5,000 on PyPI
django-moneyAdds Money and currency field types to Django…
permissive · top 5,000 on PyPI