Converts a country code or country name into a flag emoji


Keywords
python, flagmoji, emoji, flag, converter
License
MIT
Install
pip install flagmoji==1.2.1

Documentation

Flagmoji

A Python package that converts a country code or country name into a country's flag emoji.

Heavily inspired by: Jonathan Kosgei's Emoji Flags

  • Differs by allowing country name as well

Previously known as: Emoji Flag Converter

Install

pip install flagmoji

Usage

> flagUS = byCode("US")
> print(flagUS)
> πŸ‡ΊπŸ‡Έ

> flagCN = byName("China")
> print(flagChina)
> πŸ‡¨πŸ‡³

Hope this helps!

Second Python Project 😎