currency-symbols
v2.0.6Get currency symbol by currency code
5 KB Python 3.9+ py3-none-anyMIT
$ uv add currency-symbolscurrency-symbols :money_with_wings:
Get the currency symbol for an ISO 4217 currency code — USD → $, EUR → €, INR → ₹.
- Covers all active ISO 4217 codes, plus common historical, crypto and commodity codes
- Zero dependencies
- Fully typed (PEP 561, ships
py.typed) - Python 3.9+
Installation
pip install currency-symbols
Usage
from currency_symbols import CurrencySymbols
CurrencySymbols.get_symbol("USD")
# '$'
CurrencySymbols.get_symbol("EUR")
# '€'
CurrencySymbols.get_symbol("gbp")
# '£' — codes are case-insensitive
CurrencySymbols.get_symbol("XYZ")
# None — unknown codes return None
Changelog
All notable changes are documented in the CHANGELOG.
Contributing
Interested in contributing to this project? You can log any issues or suggestions related to this library here
Read our contributing guide on getting started with contributing to the codebase
Credits
Inspired by work of @bengourley on currency-symbol-map
License
Details
- Version
- 2.0.6
- License
- MIT
- Python
- >=3.9
- Maintainer
- Arshad Kazmi <[email protected]>
Links
Release Cadence
2
releases in the past year
avg 392 days between releases
Maintainers
- Arshad Kazmi · [email protected]