作为ISO规范清单的国家组,特别是与《气候公约》气候政策进程有关的国家组
countrygroups的Python项目详细描述
带有国家组的数据包、python和javascript模块。
数据包
数据包包含csv或json文件列表,用于构建 语言模块和 language tools。 有些列表包含附加信息,如加入日期等。
python模块
python模块可以从 PyPI:
pip install countrygroups
它包含三个字母代码的列表:
fromcountrygroupsimportEUROPEAN_UNIONprint(EUROPEAN_UNION)# =># ['AUT', 'BEL', 'BGR', 'CYP', 'CZE', 'DEU', 'DNK', 'ESP', 'EST', 'FIN', 'FRA',# 'GBR', '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',# 'United Kingdom']
javascript模块
javascript模块可以与npm一起安装:
npm install countrygroups
它包含三个字母代码的数组:
varg7=require("countrygroups").G7console.log(g7)// => [ 'CAN', 'DEU', 'EUU', 'FRA', 'GBR', 'ITA', 'JPN', 'USA' ]
数据
《气候公约》附件一缔约方(附件一)
资料来源: List of Annex I Parties to the Convention
《气候公约》附件一缔约方,包括哈萨克斯坦(附件一)
资料来源: Greenhouse gas inventory submissions from non-Annex I Parties
小岛屿国家联盟(小岛屿国家联盟)
资料来源: AOSIS - Members
气专委第五次评估报告(AR5)区域组
资料来源: AR5 Region Definitions
《气候公约》中的阿拉伯集团(阿拉伯集团)
资料来源: UNFCCC - Party Groupings
金砖四国(巴西、俄罗斯、印度、中国和南非)(金砖四国)
资料来源: -
环境完整性小组(EIG)
资料来源: UNFCCC - Party Groupings
欧洲联盟(欧盟)(欧盟)
资料来源: EU member countries in brief
20国集团成员国(g20)
资料来源: -
七国集团成员(G7)
资料来源: -
77国集团成员(77国集团)
资料来源: The Member States of the Group of 77
从最不发达国家毕业的国家(毕业的最不发达国家)
资料来源: LDCs at a Glance
国际海事组织(imo)
资料来源: UN Treaty Collection - Convention on the International Maritime Organization
最不发达国家
资料来源: LDCs at a Glance: List of all LDCs in PDF format, (updated June 2017)
内陆发展中国家
资料来源: UN-OHRLLS: Landlocked Developing Countries
《气候公约》非附件一缔约方(非附件一)
资料来源: List of Non-Annex I Parties to the Convention
经济合作与发展组织(经合组织)
资料来源: List of OECD Member countries - Ratification of the Convention on the OECD
欧佩克成员国(欧佩克)
资料来源: OPEC - Member Countries
小岛屿发展中国家
资料来源: Small Island Developing States, List of SIDS
小岛屿发展中国家区域委员会的非联合国成员/准成员(小岛屿发展中国家非联合国或区域委员会联合国)
data/sids-non-un-or-regional-commissions-associates.csv
资料来源: Small Island Developing States, List of SIDS
共享社会经济路径(SSP)区域组(SSP)
资料来源: -
伞组(伞)
资料来源: UN Climate Change Party Groupings
联合国会员国区域集团(联合国区域集团)
资料来源: United Nations Regional Groups of Member States
《气候公约》成员
资料来源: Status of Ratification of the Convention
联合国统计司地理区域(非统计司地理区域)
data/unstats-geographical-regions.json
资料来源: UN Statistics Division - Standard country or area codes for statistical use (M49)
准备工作
用于生成csv文件的Makefile
需要python3并将
使用运行时自动将其依赖项安装到virtualenv中
make