countries-dictionary 1.0.2__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- countries_dictionary/__init__.py +1959 -203
- countries_dictionary/quick_variables.py +27 -0
- countries_dictionary/russia.py +456 -0
- countries_dictionary/vietnam.py +145 -0
- countries_dictionary-2.0.0.dist-info/METADATA +57 -0
- countries_dictionary-2.0.0.dist-info/RECORD +9 -0
- countries_dictionary-1.0.2.dist-info/METADATA +0 -36
- countries_dictionary-1.0.2.dist-info/RECORD +0 -6
- {countries_dictionary-1.0.2.dist-info → countries_dictionary-2.0.0.dist-info}/WHEEL +0 -0
- {countries_dictionary-1.0.2.dist-info → countries_dictionary-2.0.0.dist-info}/licenses/LICENSE +0 -0
- {countries_dictionary-1.0.2.dist-info → countries_dictionary-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Some prepared variables"""
|
|
2
|
+
|
|
3
|
+
from countries_dictionary import countries
|
|
4
|
+
from russia import russia
|
|
5
|
+
from vietnam import vietnam
|
|
6
|
+
import json
|
|
7
|
+
|
|
8
|
+
json_countries = json.dumps(countries, indent=4)
|
|
9
|
+
"""A JSON string converted from the countries dictionary, having an indent level of 4"""
|
|
10
|
+
|
|
11
|
+
json_russia = json.dumps(russia, indent=4)
|
|
12
|
+
"""A JSON string converted from the Russia dictionary, having an indent level of 4"""
|
|
13
|
+
|
|
14
|
+
json_vietnam = json.dumps(vietnam, indent=4)
|
|
15
|
+
"""A JSON string converted from the Vietnam dictionary, having an indent level of 4"""
|
|
16
|
+
|
|
17
|
+
countries_france_censored = countries
|
|
18
|
+
countries_france_censored["Fr*nce"] = countries_france_censored.pop("France")
|
|
19
|
+
countries_france_censored = dict(sorted(countries_france_censored.items()))
|
|
20
|
+
"""The countries dictionary with the `France` key gets censored `Fr*nce`
|
|
21
|
+
(This is only a joke, I don't support hate against France and French)"""
|
|
22
|
+
|
|
23
|
+
countries_area_sorted = dict(sorted(countries.items(), key=lambda item: item[1]["area"], reverse=True))
|
|
24
|
+
"""The countries dictionary sorted by area"""
|
|
25
|
+
|
|
26
|
+
countries_population_sorted = dict(sorted(countries.items(), key=lambda item: item[1]["population"], reverse=True))
|
|
27
|
+
"""The countries dictionary sorted by population"""
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
russia = {
|
|
2
|
+
"Adygea": {
|
|
3
|
+
"federal district": "Southern",
|
|
4
|
+
"economic region": "North Caucasus",
|
|
5
|
+
"area": 7792.0,
|
|
6
|
+
"population": 501038},
|
|
7
|
+
"Bashkortostan": {
|
|
8
|
+
"federal district": "Volga",
|
|
9
|
+
"economic region": "Ural",
|
|
10
|
+
"area": 142947.0,
|
|
11
|
+
"population": 4046094},
|
|
12
|
+
"Buryatia": {
|
|
13
|
+
"federal district": "Far Eastern",
|
|
14
|
+
"economic region": "East Siberian",
|
|
15
|
+
"area": 351334.0,
|
|
16
|
+
"population": 970679},
|
|
17
|
+
"Altai Republic": {
|
|
18
|
+
"federal district": "Siberian",
|
|
19
|
+
"economic region": "West Siberian",
|
|
20
|
+
"area": 92903.0,
|
|
21
|
+
"population": 210099},
|
|
22
|
+
"Dagestan": {
|
|
23
|
+
"federal district": "North Caucasian",
|
|
24
|
+
"economic region": "North Caucasus",
|
|
25
|
+
"area": 50270.0,
|
|
26
|
+
"population": 3258993},
|
|
27
|
+
"Ingushetia": {
|
|
28
|
+
"federal district": "North Caucasian",
|
|
29
|
+
"economic region": "North Caucasus",
|
|
30
|
+
"area": 3628.0,
|
|
31
|
+
"population": 534219},
|
|
32
|
+
"Kabardino-Balkaria": {
|
|
33
|
+
"federal district": "North Caucasian",
|
|
34
|
+
"economic region": "North Caucasus",
|
|
35
|
+
"area": 12470.0,
|
|
36
|
+
"population": 908090},
|
|
37
|
+
"Kalmykia": {
|
|
38
|
+
"federal district": "Southern",
|
|
39
|
+
"economic region": "Volga",
|
|
40
|
+
"area": 74731.0,
|
|
41
|
+
"population": 267376},
|
|
42
|
+
"Karachay-Cherkessia": {
|
|
43
|
+
"federal district": "North Caucasian",
|
|
44
|
+
"economic region": "North Caucasus",
|
|
45
|
+
"area": 14277.0,
|
|
46
|
+
"population": 468531},
|
|
47
|
+
"Karelia": {
|
|
48
|
+
"federal district": "Northwestern",
|
|
49
|
+
"economic region": "Northern",
|
|
50
|
+
"area": 180520.0,
|
|
51
|
+
"population": 518644},
|
|
52
|
+
"Komi Republic": {
|
|
53
|
+
"federal district": "Northwestern",
|
|
54
|
+
"economic region": "Northern",
|
|
55
|
+
"area": 416774.0,
|
|
56
|
+
"population": 714391},
|
|
57
|
+
"Mari El": {
|
|
58
|
+
"federal district": "Volga",
|
|
59
|
+
"economic region": "Volga-Vyatka",
|
|
60
|
+
"area": 23375.0,
|
|
61
|
+
"population": 665983},
|
|
62
|
+
"Mordovia": {
|
|
63
|
+
"federal district": "Volga",
|
|
64
|
+
"economic region": "Volga-Vyatka",
|
|
65
|
+
"area": 26128.0,
|
|
66
|
+
"population": 758390},
|
|
67
|
+
"Sakha": {
|
|
68
|
+
"federal district": "Far Eastern",
|
|
69
|
+
"economic region": "Far Eastern",
|
|
70
|
+
"area": 3083523.0,
|
|
71
|
+
"population": 1007058},
|
|
72
|
+
"North Ossetia–Alania": {
|
|
73
|
+
"federal district": "North Caucasian",
|
|
74
|
+
"economic region": "North Caucasus",
|
|
75
|
+
"area": 7987.0,
|
|
76
|
+
"population": 678454},
|
|
77
|
+
"Tatarstan": {
|
|
78
|
+
"federal district": "Volga",
|
|
79
|
+
"economic region": "Volga",
|
|
80
|
+
"area": 67847.0,
|
|
81
|
+
"population": 4016571},
|
|
82
|
+
"Tuva": {
|
|
83
|
+
"federal district": "Siberian",
|
|
84
|
+
"economic region": "East Siberian",
|
|
85
|
+
"area": 168604.0,
|
|
86
|
+
"population": 338341},
|
|
87
|
+
"Udmurtia": {
|
|
88
|
+
"federal district": "Volga",
|
|
89
|
+
"economic region": "Ural",
|
|
90
|
+
"area": 42061.0,
|
|
91
|
+
"population": 1427018},
|
|
92
|
+
"Khakassia": {
|
|
93
|
+
"federal district": "Siberian",
|
|
94
|
+
"economic region": "East Siberian",
|
|
95
|
+
"area": 61569.0,
|
|
96
|
+
"population": 534795},
|
|
97
|
+
"Chechnya": {
|
|
98
|
+
"federal district": "North Caucasian",
|
|
99
|
+
"economic region": "North Caucasus",
|
|
100
|
+
"area": 16165.0,
|
|
101
|
+
"population": 1575819},
|
|
102
|
+
"Chuvashia": {
|
|
103
|
+
"federal district": "Volga",
|
|
104
|
+
"economic region": "Volga-Vyatka",
|
|
105
|
+
"area": 18343.0,
|
|
106
|
+
"population": 1159757},
|
|
107
|
+
"Altai Krai": {
|
|
108
|
+
"federal district": "Siberian",
|
|
109
|
+
"economic region": "West Siberian",
|
|
110
|
+
"area": 167996.0,
|
|
111
|
+
"population": 2098979},
|
|
112
|
+
"Krasnodar Krai": {
|
|
113
|
+
"federal district": "Southern",
|
|
114
|
+
"economic region": "North Caucasus",
|
|
115
|
+
"area": 75485.0,
|
|
116
|
+
"population": 5841846},
|
|
117
|
+
"Krasnoyarsk Krai": {
|
|
118
|
+
"federal district": "Siberian",
|
|
119
|
+
"economic region": "East Siberian",
|
|
120
|
+
"area": 2366797.0,
|
|
121
|
+
"population": 2837374},
|
|
122
|
+
"Primorsky Krai": {
|
|
123
|
+
"federal district": "Far Eastern",
|
|
124
|
+
"economic region": "Far Eastern",
|
|
125
|
+
"area": 164673.0,
|
|
126
|
+
"population": 1798047},
|
|
127
|
+
"Stavropol Krai": {
|
|
128
|
+
"federal district": "North Caucasian",
|
|
129
|
+
"economic region": "North Caucasus",
|
|
130
|
+
"area": 66160.0,
|
|
131
|
+
"population": 2883494},
|
|
132
|
+
"Khabarovsk Krai": {
|
|
133
|
+
"federal district": "Far Eastern",
|
|
134
|
+
"economic region": "Far Eastern",
|
|
135
|
+
"area": 787633.0,
|
|
136
|
+
"population": 1273093},
|
|
137
|
+
"Amur Oblast": {
|
|
138
|
+
"federal district": "Far Eastern",
|
|
139
|
+
"economic region": "Far Eastern",
|
|
140
|
+
"area": 361908.0,
|
|
141
|
+
"population": 750870},
|
|
142
|
+
"Arkhangelsk Oblast": {
|
|
143
|
+
"federal district": "Northwestern",
|
|
144
|
+
"economic region": "Northern",
|
|
145
|
+
"area": 413103.0,
|
|
146
|
+
"population": 947192},
|
|
147
|
+
"Astrakhan Oblast": {
|
|
148
|
+
"federal district": "Southern",
|
|
149
|
+
"economic region": "Volga",
|
|
150
|
+
"area": 49024.0,
|
|
151
|
+
"population": 945991},
|
|
152
|
+
"Belgorod Oblast": {
|
|
153
|
+
"federal district": "Central",
|
|
154
|
+
"economic region": "Central Black Earth",
|
|
155
|
+
"area": 27134.0,
|
|
156
|
+
"population": 1481098},
|
|
157
|
+
"Bryansk Oblast": {
|
|
158
|
+
"federal district": "Central",
|
|
159
|
+
"economic region": "Central",
|
|
160
|
+
"area": 34857.0,
|
|
161
|
+
"population": 1132475},
|
|
162
|
+
"Vladimir Oblast": {
|
|
163
|
+
"federal district": "Central",
|
|
164
|
+
"economic region": "Central",
|
|
165
|
+
"area": 29084.0,
|
|
166
|
+
"population": 1295930},
|
|
167
|
+
"Volgograd Oblast": {
|
|
168
|
+
"federal district": "Southern",
|
|
169
|
+
"economic region": "Volga",
|
|
170
|
+
"area": 112877.0,
|
|
171
|
+
"population": 2435355},
|
|
172
|
+
"Vologda Oblast": {
|
|
173
|
+
"federal district": "Northwestern",
|
|
174
|
+
"economic region": "Northern",
|
|
175
|
+
"area": 144527.0,
|
|
176
|
+
"population": 1114639},
|
|
177
|
+
"Voronezh Oblast": {
|
|
178
|
+
"federal district": "Central",
|
|
179
|
+
"economic region": "Central Black Earth",
|
|
180
|
+
"area": 52216.0,
|
|
181
|
+
"population": 2259610},
|
|
182
|
+
"Ivanovo Oblast": {
|
|
183
|
+
"federal district": "Central",
|
|
184
|
+
"economic region": "Central",
|
|
185
|
+
"area": 21437.0,
|
|
186
|
+
"population": 897869},
|
|
187
|
+
"Irkutsk Oblast": {
|
|
188
|
+
"federal district": "Siberian",
|
|
189
|
+
"economic region": "East Siberian",
|
|
190
|
+
"area": 774846.0,
|
|
191
|
+
"population": 2316571},
|
|
192
|
+
"Kaliningrad Oblast": {
|
|
193
|
+
"federal district": "Northwestern",
|
|
194
|
+
"economic region": "Kaliningrad",
|
|
195
|
+
"area": 15125.0,
|
|
196
|
+
"population": 1064747},
|
|
197
|
+
"Kaluga Oblast": {
|
|
198
|
+
"federal district": "Central",
|
|
199
|
+
"economic region": "Central",
|
|
200
|
+
"area": 29777.0,
|
|
201
|
+
"population": 1064747},
|
|
202
|
+
"Kamchatka Krai": {
|
|
203
|
+
"federal district": "Far Eastern",
|
|
204
|
+
"economic region": "Far Eastern",
|
|
205
|
+
"area": 464275.0,
|
|
206
|
+
"population": 287949},
|
|
207
|
+
"Kemerovo Oblast": {
|
|
208
|
+
"federal district": "Siberian",
|
|
209
|
+
"economic region": "West Siberian",
|
|
210
|
+
"area": 95725.0,
|
|
211
|
+
"population": 2526384},
|
|
212
|
+
"Kirov Oblast": {
|
|
213
|
+
"federal district": "Volga",
|
|
214
|
+
"economic region": "Volga-Vyatka",
|
|
215
|
+
"area": 120374.0,
|
|
216
|
+
"population": 1120178},
|
|
217
|
+
"Kostroma Oblast": {
|
|
218
|
+
"federal district": "Central",
|
|
219
|
+
"economic region": "Central",
|
|
220
|
+
"area": 60211.0,
|
|
221
|
+
"population": 560758},
|
|
222
|
+
"Kurgan Oblast": {
|
|
223
|
+
"federal district": "Ural",
|
|
224
|
+
"economic region": "Ural",
|
|
225
|
+
"area": 71488.0,
|
|
226
|
+
"population": 744197},
|
|
227
|
+
"Kursk Oblast": {
|
|
228
|
+
"federal district": "Central",
|
|
229
|
+
"economic region": "Central Black Earth",
|
|
230
|
+
"area": 29997.0,
|
|
231
|
+
"population": 1050134},
|
|
232
|
+
"Leningrad Oblast": {
|
|
233
|
+
"federal district": "Northwestern",
|
|
234
|
+
"economic region": "Northwestern",
|
|
235
|
+
"area": 83908.0,
|
|
236
|
+
"population": 2057708},
|
|
237
|
+
"Lipetsk Oblast": {
|
|
238
|
+
"federal district": "Central",
|
|
239
|
+
"economic region": "Central Black Earth",
|
|
240
|
+
"area": 24047.0,
|
|
241
|
+
"population": 1107812},
|
|
242
|
+
"Magadan Oblast": {
|
|
243
|
+
"federal district": "Far Eastern",
|
|
244
|
+
"economic region": "Far Eastern",
|
|
245
|
+
"area": 462464.0,
|
|
246
|
+
"population": 134202},
|
|
247
|
+
"Moscow Oblast": {
|
|
248
|
+
"federal district": "Central",
|
|
249
|
+
"economic region": "Central",
|
|
250
|
+
"area": 44329.0,
|
|
251
|
+
"population": 8766594},
|
|
252
|
+
"Murmansk Oblast": {
|
|
253
|
+
"federal district": "Northwestern",
|
|
254
|
+
"economic region": "Northern",
|
|
255
|
+
"area": 144902.0,
|
|
256
|
+
"population": 650920},
|
|
257
|
+
"Nizhny Novgorod Oblast": {
|
|
258
|
+
"federal district": "Volga",
|
|
259
|
+
"economic region": "Volga-Vyatka",
|
|
260
|
+
"area": 76624.0,
|
|
261
|
+
"population": 3037816},
|
|
262
|
+
"Novgorod Oblast": {
|
|
263
|
+
"federal district": "Northwestern",
|
|
264
|
+
"economic region": "Northwestern",
|
|
265
|
+
"area": 54501.0,
|
|
266
|
+
"population": 566745},
|
|
267
|
+
"Novosibirsk Oblast": {
|
|
268
|
+
"federal district": "Siberian",
|
|
269
|
+
"economic region": "West Siberian",
|
|
270
|
+
"area": 177756.0,
|
|
271
|
+
"population": 2784587},
|
|
272
|
+
"Omsk Oblast": {
|
|
273
|
+
"federal district": "Siberian",
|
|
274
|
+
"economic region": "West Siberian",
|
|
275
|
+
"area": 141140.0,
|
|
276
|
+
"population": 1805443},
|
|
277
|
+
"Orenburg Oblast": {
|
|
278
|
+
"federal district": "Volga",
|
|
279
|
+
"economic region": "Ural",
|
|
280
|
+
"area": 123702.0,
|
|
281
|
+
"population": 1815655},
|
|
282
|
+
"Oryol Oblast": {
|
|
283
|
+
"federal district": "Central",
|
|
284
|
+
"economic region": "Central",
|
|
285
|
+
"area": 24652.0,
|
|
286
|
+
"population": 685693},
|
|
287
|
+
"Penza Oblast": {
|
|
288
|
+
"federal district": "Volga",
|
|
289
|
+
"economic region": "Volga",
|
|
290
|
+
"area": 43352.0,
|
|
291
|
+
"population": 1225984},
|
|
292
|
+
"Perm Krai": {
|
|
293
|
+
"federal district": "Volga",
|
|
294
|
+
"economic region": "Ural",
|
|
295
|
+
"area": 160236.0,
|
|
296
|
+
"population": 2482080},
|
|
297
|
+
"Pskov Oblast": {
|
|
298
|
+
"federal district": "Northwestern",
|
|
299
|
+
"economic region": "Northwestern",
|
|
300
|
+
"area": 55399.0,
|
|
301
|
+
"population": 574199},
|
|
302
|
+
"Rostov Oblast": {
|
|
303
|
+
"federal district": "Southern",
|
|
304
|
+
"economic region": "North Caucasus",
|
|
305
|
+
"area": 100967.0,
|
|
306
|
+
"population": 4135018},
|
|
307
|
+
"Ryazan Oblast": {
|
|
308
|
+
"federal district": "Central",
|
|
309
|
+
"economic region": "Central",
|
|
310
|
+
"area": 39605.0,
|
|
311
|
+
"population": 1073981},
|
|
312
|
+
"Samara Oblast": {
|
|
313
|
+
"federal district": "Volga",
|
|
314
|
+
"economic region": "Volga",
|
|
315
|
+
"area": 53565.0,
|
|
316
|
+
"population": 3108944},
|
|
317
|
+
"Saratov Oblast": {
|
|
318
|
+
"federal district": "Volga",
|
|
319
|
+
"economic region": "Volga",
|
|
320
|
+
"area": 101240.0,
|
|
321
|
+
"population": 2368387},
|
|
322
|
+
"Sakhalin Oblast": {
|
|
323
|
+
"federal district": "Far Eastern",
|
|
324
|
+
"economic region": "Far Eastern",
|
|
325
|
+
"area": 87101.0,
|
|
326
|
+
"population": 456792},
|
|
327
|
+
"Sverdlovsk Oblast": {
|
|
328
|
+
"federal district": "Ural",
|
|
329
|
+
"economic region": "Ural",
|
|
330
|
+
"area": 194307.0,
|
|
331
|
+
"population": 4218204},
|
|
332
|
+
"Smolensk Oblast": {
|
|
333
|
+
"federal district": "Central",
|
|
334
|
+
"economic region": "Central",
|
|
335
|
+
"area": 49779.0,
|
|
336
|
+
"population": 857847},
|
|
337
|
+
"Tambov Oblast": {
|
|
338
|
+
"federal district": "Central",
|
|
339
|
+
"economic region": "Central Black Earth",
|
|
340
|
+
"area": 34462.0,
|
|
341
|
+
"population": 946010},
|
|
342
|
+
"Tver Oblast": {
|
|
343
|
+
"federal district": "Central",
|
|
344
|
+
"economic region": "Central",
|
|
345
|
+
"area": 84201.0,
|
|
346
|
+
"population": 1189685},
|
|
347
|
+
"Tomsk Oblast": {
|
|
348
|
+
"federal district": "Siberian",
|
|
349
|
+
"economic region": "West Siberian",
|
|
350
|
+
"area": 314391.0,
|
|
351
|
+
"population": 1039458},
|
|
352
|
+
"Tula Oblast": {
|
|
353
|
+
"federal district": "Central",
|
|
354
|
+
"economic region": "Central",
|
|
355
|
+
"area": 25679.0,
|
|
356
|
+
"population": 1455911},
|
|
357
|
+
"Tyumen Oblast": {
|
|
358
|
+
"federal district": "Ural",
|
|
359
|
+
"economic region": "West Siberian",
|
|
360
|
+
"area": 160122.0,
|
|
361
|
+
"population": 1625129},
|
|
362
|
+
"Ulyanovsk Oblast": {
|
|
363
|
+
"federal district": "Volga",
|
|
364
|
+
"economic region": "Volga",
|
|
365
|
+
"area": 37181.0,
|
|
366
|
+
"population": 1164837},
|
|
367
|
+
"Chelyabinsk Oblast": {
|
|
368
|
+
"federal district": "Ural",
|
|
369
|
+
"economic region": "Ural",
|
|
370
|
+
"area": 88529.0,
|
|
371
|
+
"population": 3383188},
|
|
372
|
+
"Zabaykalsky Krai": {
|
|
373
|
+
"federal district": "Far Eastern",
|
|
374
|
+
"economic region": "East Siberian",
|
|
375
|
+
"area": 431892.0,
|
|
376
|
+
"population": 982525},
|
|
377
|
+
"Yaroslavl Oblast": {
|
|
378
|
+
"federal district": "Central",
|
|
379
|
+
"economic region": "Central",
|
|
380
|
+
"area": 36177.0,
|
|
381
|
+
"population": 1179301},
|
|
382
|
+
"Moscow": {
|
|
383
|
+
"federal district": "Central",
|
|
384
|
+
"economic region": "Central",
|
|
385
|
+
"area": 2561.0,
|
|
386
|
+
"population": 13258262},
|
|
387
|
+
"Saint Petersburg": {
|
|
388
|
+
"federal district": "Northwestern",
|
|
389
|
+
"economic region": "Northwestern",
|
|
390
|
+
"area": 1403.0,
|
|
391
|
+
"population": 5645943},
|
|
392
|
+
"Jewish Autonomous Oblast": {
|
|
393
|
+
"federal district": "Far Eastern",
|
|
394
|
+
"economic region": "Far Eastern",
|
|
395
|
+
"area": 36271.0,
|
|
396
|
+
"population": 144389},
|
|
397
|
+
"Nenets Autonomous Okrug": {
|
|
398
|
+
"federal district": "Northwestern",
|
|
399
|
+
"economic region": "Northern",
|
|
400
|
+
"area": 176810.0,
|
|
401
|
+
"population": 41829},
|
|
402
|
+
"Khanty-Mansi Autonomous Okrug": {
|
|
403
|
+
"federal district": "Ural",
|
|
404
|
+
"economic region": "West Siberian",
|
|
405
|
+
"area": 534801.0,
|
|
406
|
+
"population": 1779510},
|
|
407
|
+
"Chukotka Autonomous Okrug": {
|
|
408
|
+
"federal district": "Far Eastern",
|
|
409
|
+
"economic region": "Far Eastern",
|
|
410
|
+
"area": 721481.0,
|
|
411
|
+
"population": 47902},
|
|
412
|
+
"Yamalo-Nenets Autonomous Okrug": {
|
|
413
|
+
"federal district": "Ural",
|
|
414
|
+
"economic region": "West Siberian",
|
|
415
|
+
"area": 769250.0,
|
|
416
|
+
"population": 521655},
|
|
417
|
+
# Occupied zones; internationally regconised as Ukraine's territories
|
|
418
|
+
"Republic of Crimea": {
|
|
419
|
+
"federal district": "Southern",
|
|
420
|
+
"economic region": "North Caucasus",
|
|
421
|
+
"area": 26081.0,
|
|
422
|
+
"population": 1934630},
|
|
423
|
+
"Sevastopol": {
|
|
424
|
+
"federal district": "Southern",
|
|
425
|
+
"economic region": "North Caucasus",
|
|
426
|
+
"area": 864.0,
|
|
427
|
+
"population": 547820},
|
|
428
|
+
"Donetsk People's Republic": {
|
|
429
|
+
"federal district": None,
|
|
430
|
+
"economic region": None,
|
|
431
|
+
"area": 26517.0,
|
|
432
|
+
"population": 4100280},
|
|
433
|
+
"Luhansk People's Republic": {
|
|
434
|
+
"federal district": None,
|
|
435
|
+
"economic region": None,
|
|
436
|
+
"area": 26684.0,
|
|
437
|
+
"population": 2121322},
|
|
438
|
+
"Zaporozhye Oblast": {
|
|
439
|
+
"federal district": None,
|
|
440
|
+
"economic region": None,
|
|
441
|
+
"area": 27183.0,
|
|
442
|
+
"population": 1666515},
|
|
443
|
+
"Kherson Oblast": {
|
|
444
|
+
"federal district": None,
|
|
445
|
+
"economic region": None,
|
|
446
|
+
"area": 28461.0,
|
|
447
|
+
"population": 1016707},
|
|
448
|
+
# Source: https://en.wikipedia.org/wiki/Federal_subjects_of_Russia
|
|
449
|
+
}
|
|
450
|
+
"""A dictionary contains all federal subjects of Russia and information about them:
|
|
451
|
+
- Federal district
|
|
452
|
+
- Economic region
|
|
453
|
+
- Area
|
|
454
|
+
- Population
|
|
455
|
+
|
|
456
|
+
Note: the dictionary might contain inaccuracies"""
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
vietnam = {
|
|
2
|
+
"Hanoi": {
|
|
3
|
+
"region": "Red River Delta",
|
|
4
|
+
"area": 3359.84,
|
|
5
|
+
"population": 8807523},
|
|
6
|
+
"Ho Chi Minh City": {
|
|
7
|
+
"region": "Southeast",
|
|
8
|
+
"area": 6772.59,
|
|
9
|
+
"population": 14002598},
|
|
10
|
+
"Haiphong": {
|
|
11
|
+
"region": "Red River Delta",
|
|
12
|
+
"area": 3194.72,
|
|
13
|
+
"population": 4664124},
|
|
14
|
+
"Da Nang": { # Includes Hoàng Sa
|
|
15
|
+
"region": "South Central Coast",
|
|
16
|
+
"area": 11859.59,
|
|
17
|
+
"population": 3065628},
|
|
18
|
+
"Cần Thơ": {
|
|
19
|
+
"region": "Mekong Delta",
|
|
20
|
+
"area": 6360.83,
|
|
21
|
+
"population": 4199824},
|
|
22
|
+
"Huế": {
|
|
23
|
+
"region": "North Central Coast",
|
|
24
|
+
"area": 4947.11,
|
|
25
|
+
"population": 1432986},
|
|
26
|
+
"Điện Biên province": {
|
|
27
|
+
"region": "Northwest",
|
|
28
|
+
"area": 9539.93,
|
|
29
|
+
"population": 673091},
|
|
30
|
+
"Lai Châu province": {
|
|
31
|
+
"region": "Northwest",
|
|
32
|
+
"area": 9068.73,
|
|
33
|
+
"population": 512601},
|
|
34
|
+
"Lào Cai province": {
|
|
35
|
+
"region": "Northwest",
|
|
36
|
+
"area": 13256.92,
|
|
37
|
+
"population": 1778785},
|
|
38
|
+
"Cao Bằng province": {
|
|
39
|
+
"region": "Northeast",
|
|
40
|
+
"area": 6700.39,
|
|
41
|
+
"population": 573119},
|
|
42
|
+
"Lạng Sơn province": {
|
|
43
|
+
"region": "Northeast",
|
|
44
|
+
"area": 8310.18,
|
|
45
|
+
"population": 881384},
|
|
46
|
+
"Tuyên Quang province": {
|
|
47
|
+
"region": "Northeast",
|
|
48
|
+
"area": 13795.5,
|
|
49
|
+
"population": 1865270},
|
|
50
|
+
"Thái Nguyên province": {
|
|
51
|
+
"region": "Northeast",
|
|
52
|
+
"area": 8375.21,
|
|
53
|
+
"population": 1799489},
|
|
54
|
+
"Sơn La province": {
|
|
55
|
+
"region": "Northwest",
|
|
56
|
+
"area": 14108.89,
|
|
57
|
+
"population": 1404587},
|
|
58
|
+
"Phú Thọ province": {
|
|
59
|
+
"region": "Northeast",
|
|
60
|
+
"area": 9361.38,
|
|
61
|
+
"population": 4022638},
|
|
62
|
+
"Bắc Ninh province": {
|
|
63
|
+
"region": "Red River Delta",
|
|
64
|
+
"area": 3194.72,
|
|
65
|
+
"population": 3619433},
|
|
66
|
+
"Quảng Ninh province": {
|
|
67
|
+
"region": "Northeast",
|
|
68
|
+
"area": 6207.95,
|
|
69
|
+
"population": 1497477},
|
|
70
|
+
"Hưng Yên province": {
|
|
71
|
+
"region": "Red River Delta",
|
|
72
|
+
"area": 2514.81,
|
|
73
|
+
"population": 3567943},
|
|
74
|
+
"Ninh Bình province": {
|
|
75
|
+
"region": "Red River Delta",
|
|
76
|
+
"area": 3942.62,
|
|
77
|
+
"population": 4412464},
|
|
78
|
+
"Thanh Hóa province": {
|
|
79
|
+
"region": "North Central Coast",
|
|
80
|
+
"area": 11114.71,
|
|
81
|
+
"population": 4324783},
|
|
82
|
+
"Nghệ An province": {
|
|
83
|
+
"region": "North Central Coast",
|
|
84
|
+
"area": 16486.5,
|
|
85
|
+
"population": 3831694},
|
|
86
|
+
"Hà Tĩnh province": {
|
|
87
|
+
"region": "North Central Coast",
|
|
88
|
+
"area": 5994.45,
|
|
89
|
+
"population": 1622901},
|
|
90
|
+
"Quảng Trị province": {
|
|
91
|
+
"region": "North Central Coast",
|
|
92
|
+
"area": 12700.0,
|
|
93
|
+
"population": 1870845},
|
|
94
|
+
"Quảng Ngãi province": {
|
|
95
|
+
"region": "South Central Coast",
|
|
96
|
+
"area": 14832.55,
|
|
97
|
+
"population": 2161755},
|
|
98
|
+
"Gia Lai province": {
|
|
99
|
+
"region": "South Central Coast",
|
|
100
|
+
"area": 21576.93,
|
|
101
|
+
"population": 3583693},
|
|
102
|
+
"Đắk Lắk province": {
|
|
103
|
+
"region": "South Central Coast",
|
|
104
|
+
"area": 18096.4,
|
|
105
|
+
"population": 3346853},
|
|
106
|
+
"Khánh Hòa province": { # Includes Trường Sa
|
|
107
|
+
"region": "South Central Coast",
|
|
108
|
+
"area": 8555.86,
|
|
109
|
+
"population": 2243554},
|
|
110
|
+
"Lâm Đồng province": {
|
|
111
|
+
"region": "South Central Coast",
|
|
112
|
+
"area": 24233.07,
|
|
113
|
+
"population": 3872999},
|
|
114
|
+
"Tây Ninh province": {
|
|
115
|
+
"region": "Southeast",
|
|
116
|
+
"area": 8536.44,
|
|
117
|
+
"population": 3254170},
|
|
118
|
+
"Đồng Nai province": {
|
|
119
|
+
"region": "Southeast",
|
|
120
|
+
"area": 12737.18,
|
|
121
|
+
"population": 4491408},
|
|
122
|
+
"Đồng Tháp province": {
|
|
123
|
+
"region": "Mekong Delta",
|
|
124
|
+
"area": 5938.64,
|
|
125
|
+
"population": 4370046},
|
|
126
|
+
"An Giang province": {
|
|
127
|
+
"region": "Mekong Delta",
|
|
128
|
+
"area": 9888.91,
|
|
129
|
+
"population": 4952238},
|
|
130
|
+
"Vĩnh Long province": {
|
|
131
|
+
"region": "Mekong Delta",
|
|
132
|
+
"area": 6296.2,
|
|
133
|
+
"population": 4257581},
|
|
134
|
+
"Cà Mau province": {
|
|
135
|
+
"region": "Mekong Delta",
|
|
136
|
+
"area": 7942.39,
|
|
137
|
+
"population": 2606672},
|
|
138
|
+
# Source: https://en.wikipedia.org/wiki/Provinces_of_Vietnam
|
|
139
|
+
}
|
|
140
|
+
"""A dictionary contains all provinces and municipalities of Vietnam and information about them:
|
|
141
|
+
- Region
|
|
142
|
+
- Area
|
|
143
|
+
- Population
|
|
144
|
+
|
|
145
|
+
Note: the dictionary might contain inaccuracies"""
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: countries_dictionary
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Provides a dictionary contains all members and observer states of the United Nations and information about them
|
|
5
|
+
Author-email: Ngô Trần Quang Thiện <quangthienngotran@gmail.com>
|
|
6
|
+
License: GPLv3
|
|
7
|
+
Keywords: countries,dictionary,united nations,states,russia,vietnam
|
|
8
|
+
Requires-Python: >=3.7
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
Countries Dictionary provides:
|
|
14
|
+
- A dictionary contains all members and observer states of the United Nations and information about them:
|
|
15
|
+
- Formal name
|
|
16
|
+
- Continent(s) of the countries' mainland
|
|
17
|
+
- Area in square kilometre
|
|
18
|
+
- Population
|
|
19
|
+
- Official languages
|
|
20
|
+
- Nominal GDP in dollar
|
|
21
|
+
- Human Development Index
|
|
22
|
+
- Another dictionary contains all federal subjects of the Russian Federation (including occupied zones in Ukraine) and information about them:
|
|
23
|
+
- Federal district
|
|
24
|
+
- Economic region
|
|
25
|
+
- Area
|
|
26
|
+
- Population
|
|
27
|
+
- Another one contains all provinces and municipalities of the Socialist Republic of Vietnam and information about them:
|
|
28
|
+
- Region
|
|
29
|
+
- Area
|
|
30
|
+
- Population
|
|
31
|
+
- Some variables you might find helpful
|
|
32
|
+
|
|
33
|
+
After importing them:
|
|
34
|
+
```python
|
|
35
|
+
from countries_dictionary import countries
|
|
36
|
+
from countries_dictionary.russia import russia
|
|
37
|
+
from countries_dictionary.vietnam import vietnam
|
|
38
|
+
import countries_dictionary.quick_variables as qv
|
|
39
|
+
```
|
|
40
|
+
you can do many things with the dictionary, such as calculate GDP per capita of a country:
|
|
41
|
+
```python
|
|
42
|
+
countries["Switzerland"]["nominal GDP"] / countries["Switzerland"]["population"]
|
|
43
|
+
```
|
|
44
|
+
population density:
|
|
45
|
+
```python
|
|
46
|
+
countries["Russia"]["population"] / countries["Russia"]["area"]
|
|
47
|
+
```
|
|
48
|
+
percentage of a Vietnamese province's area compared to Vietnam's total area:
|
|
49
|
+
```python
|
|
50
|
+
vietnam["Ho Chi Minh City"]["area"] / countries["Vietnam"]["area"] * 100
|
|
51
|
+
```
|
|
52
|
+
or just see the dictionary when France is censored (This is only a joke, I don't support hate against France and French)
|
|
53
|
+
```python
|
|
54
|
+
qv.countries_france_censored
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
I created this module as a source of countries' information that is easy to access and use by coders.
|