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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file currency_symbols-2.0.4.tar.gz.
File metadata
- Download URL: currency_symbols-2.0.4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb1ccbbe47909d7958f211359027eb8876874b8b0a19a70a7c0b2fa6bbe71a8b
|
|
| MD5 |
8b8657ce79bd44c118de4f809ee99f4e
|
|
| BLAKE2b-256 |
baea47b00ec684efb492c6cc1a7c044fb404c3efb961dba5aaa8e3c100bad56a
|
File details
Details for the file currency_symbols-2.0.4-py3-none-any.whl.
File metadata
- Download URL: currency_symbols-2.0.4-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0f381c517b08b862612b31e915b5e84aeeef8da9387bcb7a73a221628ae3310
|
|
| MD5 |
3771aa821e6481ab830f376a808eb3e0
|
|
| BLAKE2b-256 |
095f08d8eed069fb2eb72d5c9cd693b1f79c12521798ef0cfa2068736c16a65c
|