The `iso4217` library provides ISO 4217 currency data for Python, represented as an `enum` module. It offers access to current and historical currency codes, names, and numerical values. The library is actively maintained with version `1.16.20260101` and releases new versions regularly to reflect updates to the ISO 4217 standard, typically indicated by a date-based versioning scheme.
pip install iso4217Verified import paths — ran on the pinned version, not inferred.
The quickstart demonstrates how to import the `Currency` Enum, access specific currencies by their alpha-3 code (e.g., `Currency.USD`), and iterate through all available currencies. Each currency object provides attributes like `currency_name`, `alpha_code`, and `numeric_code`.
Always verify the import paths and API calls against the specific package's documentation or by inspecting the package content. For `dahlia/iso4217`, currencies are typically accessed as members of an `Enum`.
Regularly update the package to its latest version (`pip install --upgrade iso4217`) to ensure you have the most current ISO 4217 data. The package's versioning (e.g., `1.16.YYYYMMDD`) often indicates the date of the data snapshot.
Install the library using pip: `pip install iso4217`
Ensure the currency code is a correct, three-letter uppercase ISO 4217 code. For example, to access the US Dollar, use `iso4217.Currency('USD')` or `iso4217.Currency.USD`.Refer to the library's documentation to use the correct attribute names. Common attributes are `alpha3`, `currency_name`, `numeric_code`, `minor_unit`, and `country_name` (if applicable).
To access historical or obsolete currencies, you might need to use a specific method or a separate collection provided by the library for historical data, if available. For current currencies, ensure you are using an up-to-date, active ISO 4217 code. The library's enum typically only includes currently active currencies directly.
No dependency data recorded yet.