Skip to main content

Get currency symbol by currency code

Project description

currency-symbols :money_with_wings:

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

currency_symbols-2.0.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file currency_symbols-2.0.5.tar.gz.

File metadata

  • Download URL: currency_symbols-2.0.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for currency_symbols-2.0.5.tar.gz
Algorithm Hash digest
SHA256 f1dfcff1a8646e7f80118446bc7e79b8241e0ff93c4d0e8d1d159dbec56c77fb
MD5 f48a2b358708315893faea4f8bbdd5e6
BLAKE2b-256 e4bae5ec5aa9e808c23a2e6811a372a1efdaa615683fa749b6a86980dc482b9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for currency_symbols-2.0.5.tar.gz:

Publisher: publish.yml on arshadkazmi42/currency-symbols

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for currency_symbols-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f4e88588c96134b8066afaf3388d23b85b550b2fbe58846e734a8e4d43cee73e
MD5 bfe22ebb3c9e0226941f6184675ed921
BLAKE2b-256 20148fbbb03af79a0e83a5dd49090e74bfabadca8085f4e3192449e6876b713b

See more details on using hashes here.

Provenance

The following attestation bundles were made for currency_symbols-2.0.5-py3-none-any.whl:

Publisher: publish.yml on arshadkazmi42/currency-symbols

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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