Python API Wrapper for restcountries.eu
This is a simple python wrapper for the API of http://restcountries.eu <http://restcountries.eu>. If there are any issues, please use this repository to contact me about it.
Just import the API Wrapper and start using it!:
from restcountries import RestCountryApi as rapi def foo(name): country_list = rapi.get_countries_by_name('France')
The API returns Country objects or a list of Country objects. Through the country objects one is able to access following attributes.:
country = country_list print(country.name) France