Skip to main content

countrydata is a python module and command line client for returning data about countries

Project description

Python versions Build Status Documentation License countrydata version LGTM code quality LGTM alerts


Python package and command line client for retrieve multiple data about countries.


Countrydata is published on PyPI and can be installed from there:

pip install -U countrydata


Documentation is available from

Basic usage


>>> from countrydata import Country
>>> country = Country(a3="ESP")
{'codes': {'a2': 'ES', 'a3': 'ESP', 'num': 724, 'gec': 'SP'}}
>>> country = Country(724)
{'codes': {'a2': 'ES', 'a3': 'ESP', 'num': 724, 'gec': 'SP'}}

Command line client

$ countrydata get-value numeric ESP

$ countrydata get-value "ISO-3361-1 Alpha2" 724

[comment]: <> (eof basic-usage)


Download files

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

Files for countrydata, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size countrydata-0.0.6-py3-none-any.whl (175.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size countrydata-0.0.6.tar.gz (31.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page