I have worked with 2 python libraries: phonenumbers, pycountry. I actually could not find a way to give just country code and get its corresponding country name.
In
Small addition - you also can get country prefix by string code. E.g.:
from phonenumbers.phonenumberutil import country_code_for_region print(country_code_for_region('RU')) print(country_code_for_region('DE'))