Install & Compatibility
Where this runs
tested against v2025.8.25 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 58.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.1s · import 0.000s · 59MB
57MB installed
● package 57MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Countries
✓ from isocodes import Countries
✗ from isocodes import IsoCodes
Languages
✓ from isocodes import Languages
✗ from isocodes import IsoCodes
Currencies
✓ from isocodes import Currencies
✗ from isocodes import IsoCodes
Create an IsoCodes instance and iterate over countries to access attributes like name, alpha_2, and numeric.
from isocodes import IsoCodes
codes = IsoCodes()
for country in codes.countries:
if country.name == 'United States':
print('Alpha-2:', country.alpha_2, ', Numeric:', country.numeric)
Upgrade
Version history
2025.8.25latest on PyPI · released Aug 25, 2025
Audit
Dependencies
importlib-resourcesrequiredRequired for accessing JSON data files in Python 3.9+ (standard library since 3.9, but sometimes needed as backport).