Skip to main content

Country groups as lists of ISO codes, especially those related to the UNFCCC climate policy process

Project description

PyPI npm

Data Package, Python and JavaScript module with country groups.

Data Package

The Data Package contains the lists as CSV or JSON file used to build the language modules and can be loaded with the respective language tools. Some lists contain additional information like date of joining etc.

Python Module

The Python module can be installed from PyPI:

pip install countrygroups

It contains lists with three-letter codes:

from countrygroups import EUROPEAN_UNION

print(EUROPEAN_UNION)

# =>
# ['AUT', 'BEL', 'BGR', 'CYP', 'CZE', 'DEU', 'DNK', 'ESP', 'EST', 'FIN', 'FRA',
#  'GRC', 'HRV', 'HUN', 'IRL', 'ITA', 'LTU', 'LUX', 'LVA', 'MLT', 'NLD', 'POL',
#  'PRT', 'ROU', 'SVK', 'SVN', 'SWE']

print(EUROPEAN_UNION.names)

# =>
# ['Austria', 'Belgium', 'Bulgaria', 'Croatia', 'Cyprus', 'Czechia', 'Denmark',
#   'Estonia', 'Finland', 'France', 'Germany', 'Greece', 'Hungary', 'Ireland',
#   'Italy', 'Latvia', 'Lithuania', 'Luxembourg', 'Malta', 'Netherlands',
#   'Poland', 'Portugal', 'Romania', 'Slovakia', 'Slovenia', 'Spain', 'Sweden']

JavaScript Module

The JavaScript module can be installed with npm:

npm install countrygroups

It contains arrays with three-letter codes:

var g7 = require("countrygroups").G7

console.log(g7) // => [ 'CAN', 'DEU', 'EUU', 'FRA', 'GBR', 'ITA', 'JPN', 'USA' ]

Data

UNFCCC Annex I parties (ANNEX_ONE)

data/annex-one.csv

Sources: List of Annex I Parties to the Convention

UNFCCC Annex I parties incl. Kazakhstan (ANNEX_ONE_KAZ)

data/annex-one-kaz.csv

Sources: Greenhouse gas inventory submissions from non-Annex I Parties

Alliance of Small Island States (AOSIS) (AOSIS)

data/aosis.csv

Sources: AOSIS - Members

Regional groups for the IPCC AR5 report (AR5)

data/ar5.csv

Sources: AR5 Region Definitions

Arab Group in the UNFCCC (ARAB_GROUP)

data/arab-group.csv

Sources: UNFCCC - Party Groupings

BRICS (Brazil, Russia, India, China and South Africa) (BRICS)

data/brics.csv

Sources: -

Environmental Integrity Group (EIG)

data/eig.csv

Sources: UNFCCC - Party Groupings

European Union (EU) (EUROPEAN_UNION)

data/european-union.csv

Sources: EU member countries in brief

G20 members (G20)

data/g20.csv

Sources: -

G7 members (G7)

data/g7.csv

Sources: -

G77 members (G77)

data/g77.csv

Sources: The Member States of the Group of 77

Countries graduated from Least Developed Countries (LDCs) (GRADUATED_LDCS)

data/graduated-ldcs.csv

Sources: LDCs at a Glance

International Maritime Organization (IMO)

data/imo.csv

Sources: UN Treaty Collection - Convention on the International Maritime Organization

Least Developed Countries (LDCs) (LDC)

data/ldc.csv

Sources: LDCs at a Glance: List of all LDCs in PDF format, (updated 24 Nov 2021)

Landlocked Developing Countries (LLDCs) (LLDC)

data/lldc.csv

Sources: UN-OHRLLS: Landlocked Developing Countries

UNFCCC Non-Annex I parties (NON_ANNEX_ONE)

data/non-annex-one.csv

Sources: List of Non-Annex I Parties to the Convention

Organisation for Economic Co-operation and Development (OECD) (OECD)

data/oecd.csv

Sources: List of OECD Member countries - Ratification of the Convention on the OECD

OPEC members (OPEC)

data/opec.csv

Sources: OPEC - Member Countries

Small Island Developing States (SIDS) (SIDS)

data/sids.csv

Sources: Small Island Developing States, List of SIDS

Montreal Protocol

data/montreal_protocol_countries.json

data/montreal_protocol_high_ambient_temp.csv

Sources: Article 5 / Non-Article 5 status Group 1 and 2 and high-ambient-temperature classification

Non-UN Members/Associate Members of Regional Commissions of SIDS (SIDS_NON_UN_OR_REGIONAL_COMMISSIONS_ASSOCIATES)

data/sids-non-un-or-regional-commissions-associates.csv

Sources: Small Island Developing States, List of SIDS

Regional groups for the Shared Socioeconomic Pathways (SSPs) (SSP)

data/ssp.csv

Sources: -

Umbrella group (UMBRELLA)

data/umbrella.csv

Sources: UN Climate Change Party Groupings

UN Regional Groups of Member States (UN_REGIONAL_GROUPS)

data/un-regional-groups.csv

Sources: United Nations Regional Groups of Member States

Members of the UNFCCC (UNFCCC)

data/unfccc.csv

Sources: Status of Ratification of the Convention

UN Statistical Division Geographical Regions (UNSTATS_GEOGRAPHICAL_REGIONS)

data/unstats-geographical-regions.json

Sources: UN Statistics Division - Standard country or area codes for statistical use (M49)

Preparation

The Makefile used to generate the CSV files requires Python3 and will automatically install its dependencies into a Virtualenv when run with

make

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

countrygroups-0.13.0-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file countrygroups-0.13.0-py2.py3-none-any.whl.

File metadata

  • Download URL: countrygroups-0.13.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for countrygroups-0.13.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c9884155df6092ed644a03d1bec94aabb1018ccfacdb68ae755675f29cbcb3c4
MD5 3b37fc88d195e4ec03d4c5c3d7b5971b
BLAKE2b-256 4b343fbfe3ea89d173bbef3928324b6c2ce98d523ed6f8f8e265e1c036e0ab48

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page