Skip to main content

Get currency symbol by currency code

Project description

currency-symbols :money_with_wings:

Build Downloads Repo Size LICENSE Version Last Commit

Get currency symbol by currency code eg: USD -> $

References

ISO 4217 - Currency Codes

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.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

currency_symbols-2.0.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for currency_symbols-2.0.4.tar.gz
Algorithm Hash digest
SHA256 cb1ccbbe47909d7958f211359027eb8876874b8b0a19a70a7c0b2fa6bbe71a8b
MD5 8b8657ce79bd44c118de4f809ee99f4e
BLAKE2b-256 baea47b00ec684efb492c6cc1a7c044fb404c3efb961dba5aaa8e3c100bad56a

See more details on using hashes here.

File details

Details for the file currency_symbols-2.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for currency_symbols-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f381c517b08b862612b31e915b5e84aeeef8da9387bcb7a73a221628ae3310
MD5 3771aa821e6481ab830f376a808eb3e0
BLAKE2b-256 095f08d8eed069fb2eb72d5c9cd693b1f79c12521798ef0cfa2068736c16a65c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page