Encode/decode unicode country flag emoji. Version 2.1.0; supports Python >=3.10. Regularly updated to match ISO 3166-1 changes.
pip install emoji-country-flagVerified import paths — ran on the pinned version, not inferred.
Create a Flag object or use functions to encode country code to emoji and decode emoji to country code.
Upgrade to Python 3.10+ or pin to version 1.x (e.g., pip install 'emoji-country-flag<2')
Use `Flag(code).emoji` instead of `get_flag(code)`.
Always use uppercase two-letter codes (e.g., 'US', 'GB').
No dependency data recorded yet.