Country Codes and other Miscellaneous Geo-Spatial Reference Data
pip install georefdata
import georefdata
georefdata.get_country_codes()
# ['AF', 'AL', 'DZ', 'AS', 'AD', ... 'ZW']
georefdata.get_geonames_feature_classes()
# ['A', 'H', 'L', 'P', 'R', 'S', 'T', 'U', 'V', 'n']
georefdata.get_geonames_feature_codes()
# ['ADM1', 'ADM1H', 'ADM2', ... 'ZNF', 'ZOO', 'null]
georefdata.get_timezones()
#['Africa/Abidjan', 'Africa/Accra', ... 'Pacific/Wake', 'Pacific/Wallis']
GeoNames uses Attribution 4.0 International (CC BY 4.0), which requires attribution. GeoNames Feature Classes, GeoNames Feature Codes, and Time Zones come from GeoNames.
http://download.geonames.org/export/dump/featureCodes_en.txt http://download.geonames.org/export/dump/timeZones.txt