{"id":23666,"library":"emoji-country-flag","title":"emoji-country-flag","description":"Encode/decode unicode country flag emoji. Version 2.1.0; supports Python >=3.10. Regularly updated to match ISO 3166-1 changes.","status":"active","version":"2.1.0","language":"python","source_language":"en","source_url":"https://github.com/laem/emoji-country-flag","tags":["emoji","country-flag","unicode","iso-3166"],"install":[{"cmd":"pip install emoji-country-flag","lang":"bash","label":"Latest stable"}],"dependencies":[],"imports":[{"wrong":"from emoji_country_flag import Flag","symbol":"Flag","correct":"from flag import Flag"}],"quickstart":{"code":"from emoji_country_flag import Flag\n\nflag = Flag(code='US')\nprint(flag.emoji)  # 🇺🇸\n\n# or using get_flag\nfrom emoji_country_flag import get_flag, decode_flag\nemoji = get_flag('US')\nprint(emoji)  # 🇺🇸\ncode = decode_flag(emoji)\nprint(code)  # US","lang":"python","description":"Create a Flag object or use functions to encode country code to emoji and decode emoji to country code."},"warnings":[{"fix":"Upgrade to Python 3.10+ or pin to version 1.x (e.g., pip install 'emoji-country-flag<2')","message":"Version 2.0.0+ requires Python 3.10 or later. Python 3.6-3.9 no longer supported.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use `Flag(code).emoji` instead of `get_flag(code)`.","message":"The function `get_flag()` is deprecated in favor of `Flag()` class in version 1.2.0+.","severity":"deprecated","affected_versions":">=1.2.0"},{"fix":"Always use uppercase two-letter codes (e.g., 'US', 'GB').","message":"Country codes must be ISO 3166-1 alpha-2 uppercase. Lowercase or full country names are not recognized.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'-1':21 '-3166':29 '2.1.0':11 '3.10':14 '3166':20 'chang':22 'countri':3,7,25 'country-flag':24 'emoji':2,9,23 'emoji-country-flag':1 'encode/decode':5 'flag':4,8,26 'iso':19,28 'match':18 'python':13 'regular':15 'support':12 'unicod':6,27 'updat':16 'version':10","created_at":"2026-05-01T08:08:58.230307+00:00","updated_at":"2026-05-01T08:08:58.230307+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.1.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/cvzi/flag","docs":"https://flag.readthedocs.io/","changelog":null,"pypi":"https://pypi.org/project/emoji-country-flag/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","communication"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}