Get currency symbol by currency code
Project description
currency-symbols :money_with_wings:
Get currency symbol by currency code eg: USD -> $
References
Installation
$ pip3 install currency-symbols
Usage
from currency_symbols import CurrencySymbols
dollarSymbol = CurrencySymbols.get_symbol('USD')
print(dollarSymbol)
# Output:
# $
euroSymbol = CurrencySymbols.get_symbol('EUR')
print(euroSymbol)
# Output:
# €
britishPoundSymbol = CurrencySymbols.get_symbol('GBP')
print(britishPoundSymbol)
# Output:
# £
bitcoinSymbol = CurrencySymbols.get_symbol('BTC')
print(bitcoinSymbol)
# Output:
# ฿
Contributing
Interested in contributing to this project? You can log any issues or suggestion 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
currency-symbols-2.0.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for currency_symbols-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e03bff4ecd8d87744b1cecb18051ad8e73a6eb14a26e5e37da8dc1e3937315 |
|
MD5 | a40947b6c227aeb34e9fe221a80d7255 |
|
BLAKE2b-256 | bdc722783c7108fe2733d89e89bc8582e9a1837416ef860ea68be05cf527597f |