black40/emoji-flags
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Emoji Flags
===========
This is a Python package that takes the `ISO 3166-1`_: internationally
recognized two-letter country code, and returns the country’s flag emoji
and is inspired by the Node version by Matias Singers `Emoji Flags`_.
Usage
-----
::
>>> from emojiflags.lookup import lookup
>>> lookup('DE')
'🇩🇪'
.. _ISO 3166-1: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
.. _Emoji Flags: https://github.com/matiassingers/emoji-flags