Skip to main content

currency-symbols :money_with_wings:

CI Version Downloads LICENSE

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

MIT

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.6.tar.gz (5.0 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.6-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for currency_symbols-2.0.6.tar.gz
Algorithm Hash digest
SHA256 e72e457cbc15067590c3e0090f80d7e46c9196ac68485c678e52aa4e7599d973
MD5 444a0294daadcaf50f0eeebf56bcf524
BLAKE2b-256 e7d55be243c3fa01bd1c4f2b619e4817134f16426298de7b83b5c9fd80a2d53e

See more details on using hashes here.

Provenance

The following attestation bundles were made for currency_symbols-2.0.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for currency_symbols-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dc8bb1b0a84c9c0a1b1eb02e36573f86f3d9dc0d15a612458e9c6b167f5c6eef
MD5 74433c6178712c2ec0259141239cf548
BLAKE2b-256 ee4de7c84d558c166582f13d9a278c317a77c994fb2a0f9fea9026d653464d6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for currency_symbols-2.0.6-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.

Release history Release notifications | RSS feed

This release

2.0.6 This release

2 files

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page