Python API Wrapper for restcountries.eu
Project description
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.
Usage
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 Country object
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[0] print(country.name) France
top_level_domain
alpha2_code
alpha3_code
currencies
capital
calling_codes
alt_spellings
relevance
region
subregion
translation
population
latlng
demonym
area
gini
timezones
borders
native_name
name
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for python-restcountries-0.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec0214c40b9d039676691f2cd620cf72961266d21b31172872af06f8943be53 |
|
MD5 | 33f5eea1412877e8b95ff79789935de9 |
|
BLAKE2b-256 | 4cf3fc8b452a321db238313cd7a27f009f9eb57ef0b01dba61690e069b65d666 |