Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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
Release History

Release History

This version
History Node

0.1a3

History Node

0.1a2

History Node

0.1a1

History Node

0.1a0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-restcountries-0.1a3.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Sep 12, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting