ccy
Python currencies
What it is and what it does
ccy is a Python module that compiles and exposes a dictionary of currency objects, each containing metadata useful for financial analysis. It wraps currency information in a programmatic interface and offers both a Python API and a command-line tool for querying. The module depends on pycountry for country/currency standards, pydantic for data validation, python-dateutil for date handling, and typing-extensions for type hints.
The package is intended for developers who need structured access to currency data in financial applications. It supports querying currencies via the CLI (ccys show) or programmatically in code. An optional holidays extra provides trading centre information, though the core module covers currency fundamentals. The fact sheet notes that not all world currencies are supported, so coverage should be verified for specialized use cases.
Use it for:
- Query currency codes, symbols, and metadata in financial analysis or trading applications.
- Build a CLI tool to inspect available currencies and their properties without writing custom data structures.
- Integrate standardized currency information into a backend service that handles multi-currency transactions.
- Reference trading centre holidays and financial calendars when installing the holidays extra.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a dictionary of currency objects with financial metadata, accessible programmatically or via a command-line tool for querying currency information.
Yes, if you need a lightweight, permissively licensed currency reference library with low install friction. The active maintenance status and lack of known vulnerabilities make it safe to adopt. Verify that the supported currency set covers your use case before committing, as coverage is incomplete.
Install
ccy on PyPI
pip
pip install ccyuv
uv add ccypoetry
poetry add ccyInstalling ccy
Before you install
Low install friction with a pure-Python wheel and four straightforward runtime dependencies. Actively maintained as of the latest release.
License in practice
BSD license is permissive, allowing use in both open-source and proprietary projects with minimal restrictions.
Quickstart
pip install ccy
import ccy
# Access currency objects from the compiled dictionary
currency = ccy.currency('USD')
Requires Python 3.11 or later.
Verify before relying
- Whether the currency dictionary is comprehensive enough for your specific use case, as the description notes not all world currencies are supported yet.
- Whether trading centre data via the holidays extra is actively maintained and complete.
Package facts
| License | BSD (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — pycountry, pydantic, python-dateutil, typing-extensions |
| Maintenance | actively maintained — 139 days since the last release |
| First released | |
| Downloads | 243,374/month — #8,807 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ccy-2.0.0-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pycountryProvides programmatic access to ISO standard…
copyleft · top 1,000 on PyPI
py-moneyRepresents monetary amounts with currency-aware…
permissive · top 15,000 on PyPI
CurrencyConverterConverts currency amounts using historical…
unclear · top 15,000 on PyPI
django-moneyAdds Money and currency field types to Django…
permissive · top 5,000 on PyPI
forex-pythonFetches current and historical foreign exchange…
permissive · top 15,000 on PyPI
iso4217Provides ISO 4217 currency data as a Python…
permissive · top 15,000 on PyPI
metatrader5Connects Python to MetaTrader 5 Terminal to…
permissive · top 15,000 on PyPI
openbb-currencyProvides currency exchange data as an extension…
agpl · top 15,000 on PyPI
py-moneyedProvides Money and Currency classes for…
permissive · top 5,000 on PyPI
iso18245Provides lookup access to ISO 18245 Merchant…
permissive · top 15,000 on PyPI