A Python library for working with countries and languages, providing enums, conversion, and lookup utilities. Current version is 0.6.1 (released 2023-11-26), with a slow release cadence (~yearly). Supports Python >=3.8.
pip install babelfishVerified import paths — ran on the pinned version, not inferred.
Basic usage: create Country and Language objects from codes and access properties.
Create a new object if you need a different code.
Use importlib.resources as replacement if needed.
Always use uppercase codes (e.g., 'US', 'GB').
Reinstall with: pip install --upgrade babelfish. The correct import is: from babelfish import Country
Rename your local file (e.g., babelfish_example.py) and remove any cached .pyc files.
Use uppercase: Country('US')No dependency data recorded yet.