Skip to main content

countrystatecity-currencies

PyPI Python Version License Type Checked currencies currencies

Official Python package for 249 country/currency associations, including currency codes, names, and symbols. Part of the countrystatecity ecosystem.

From offline prototype to production

This package provides a versioned offline snapshot. For regularly updated data, server-side search and filtering, field-selected responses, or managed availability and support, use the Country State City API through its official Python client:

pip install countrystatecity-api
from countrystatecity import CountryStateCity

csc = CountryStateCity()          # reads CSC_API_KEY

Get a free API key · API docs · Pricing · Migration guide

Keep API keys in server-side environment variables, never in client-side code or source control.

Installation

pip install countrystatecity-currencies

Quick Start

from countrystatecity_currencies import (
    get_all_currencies,
    get_currency_by_country,
    get_countries_by_currency,
    search_currencies,
)

# Get all currency entries
currencies = get_all_currencies()
# [Currency(code="AFN", name="Afghan afghani", symbol="؋", countryCode="AF", ...), ...]

# Get the currency for a country
usd = get_currency_by_country("US")
# Currency(code="USD", name="United States dollar", symbol="$", countryCode="US", ...)

# Get all countries using a currency
euro_countries = get_countries_by_currency("EUR")
# [Currency(code="EUR", countryCode="DE", ...), Currency(code="EUR", countryCode="FR", ...), ...]

# Search by code, name, or symbol
results = search_currencies("dollar")
# [Currency(code="USD", ...), Currency(code="CAD", ...), ...]

Data Model

class Currency(BaseModel):
    code: str         # ISO 4217 currency code (e.g., "USD")
    name: str         # Full currency name (e.g., "United States dollar")
    symbol: str       # Currency symbol (e.g., "$")
    countryCode: str  # ISO2 country code (e.g., "US")
    countryName: str  # Country name (e.g., "United States")

API Reference

Function Description
get_all_currencies() Get all currency entries (one per country)
get_currency_by_country(code) Get the currency for an ISO2 country code
get_countries_by_currency(code) Get all countries using an ISO 4217 currency code
search_currencies(query) Search by currency code, name, or symbol

License

ODbL-1.0 — see LICENSE.

Other Packages in this Ecosystem

Package Description
countrystatecity-api Official API client — live data, sync + async, typed
countrystatecity-countries 250 countries, 5,327 states, 156,169 cities
countrystatecity-timezones 432 country/timezone associations with country associations and time conversion
countrystatecity-translations 4,724 translations in 19 languages
countrystatecity-phonecodes International phone/dialing codes for 250 countries
countrystatecity-regions Region and subregion associations for 250 countries
countrystatecity-postal-codes Postal/ZIP records for 117 countries

Data sourced from countries-states-cities-database.


Made with ❤️ by dr5hn

Metadata

Release files for countrystatecity-currencies 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for countrystatecity-currencies 3.1.0
File Size Uploaded Provenance Actions
countrystatecity_currencies-3.1.0.tar.gz 63.0 kB With provenance Details for countrystatecity_currencies-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for countrystatecity-currencies 3.1.0
File Interpreter ABI Platform Actions
countrystatecity_currencies-3.1.0-py3-none-any.whl Python 3 none any Details for countrystatecity_currencies-3.1.0-py3-none-any.whl

Total release size: 124.9 kB

Release files / countrystatecity_currencies-3.1.0.tar.gz

Download URL countrystatecity_currencies-3.1.0.tar.gz
Size 63.0 kB
Tags Source
SHA-256 checksum
How to use checksums
37ffd43de14f823fb60fc902ede3c775a8fec28cc64c31c1b9ca34d46b81a7ea
BLAKE2b-256 checksum
How to use checksums
fadaa01c61624195e09aa98a3c79dc6349f9f119110a33b96f097f1b3dd3dcf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / countrystatecity_currencies-3.1.0-py3-none-any.whl

Download URL countrystatecity_currencies-3.1.0-py3-none-any.whl
Size 61.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd30cf2b3ed02125d4fc11bb20150da10da82b2f62de12a3ab8907a2b56b9ac2
BLAKE2b-256 checksum
How to use checksums
0e1efffa7433da279be3c03526d8baef5c157b88fbb8d0445af7d5f338513b63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for countrystatecity-currencies 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for countrystatecity_currencies-3.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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