countries-dictionary 2.3.0__py3-none-any.whl → 3.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.

Potentially problematic release.


This version of countries-dictionary might be problematic. Click here for more details.

@@ -0,0 +1,10 @@
1
+ from countries_dictionary import COUNTRIES
2
+
3
+ def iso_finder(code: str):
4
+ for x in COUNTRIES:
5
+ if code == COUNTRIES[x]["ISO 3166-1"]["alpha-2"]: return f"{x} — {COUNTRIES[x]["formal name"]}"
6
+ else:
7
+ if code == COUNTRIES[x]["ISO 3166-1"]["alpha-3"]: return f"{x} — {COUNTRIES[x]["formal name"]}"
8
+ else:
9
+ if code == COUNTRIES[x]["ISO 3166-1"]["numeric"]: return f"{x} — {COUNTRIES[x]["formal name"]}"
10
+ raise Exception("No United Nations' member or observer state has this code")
@@ -0,0 +1,83 @@
1
+ """Some prepared functions which might or might not be helpful"""
2
+
3
+ from countries_dictionary import COUNTRIES
4
+ from countries_dictionary.russia import RUSSIA
5
+ from countries_dictionary.russia import UNITED_STATES
6
+ from countries_dictionary.vietnam import VIETNAM
7
+ import json
8
+
9
+ def chosen_dictionary(dictionary="countries"):
10
+ """Returns one of the dictionaries depends on the parameter. Used in other functions"""
11
+ if dictionary.casefold() == "countries": return COUNTRIES
12
+ elif dictionary.casefold() == "russia": return RUSSIA
13
+ elif dictionary.casefold() == "united state": return UNITED_STATES
14
+ elif dictionary.casefold() == "vietnam": return VIETNAM
15
+ else: raise Exception("This dictionary does not exist (yet)")
16
+
17
+ def json_dictionary(indent: int | str | None = None, dictionary="countries"):
18
+ """Converts the chosen dictionary into a JSON string"""
19
+ x = chosen_dictionary(dictionary)
20
+ return json.dumps(x, indent=indent)
21
+
22
+ def sorted_dictionary(chosen_key: str, reverse: bool = True, dictionary="countries"):
23
+ """Sorts the chosen dictionary by a sortable key"""
24
+ x = chosen_dictionary(dictionary)
25
+ return dict(sorted(x.items(), key=lambda item: item[1][chosen_key], reverse=reverse))
26
+
27
+ def filtered_dictionary(chosen_key: str, chosen_value: int | str, dictionary="countries"):
28
+ """Filters the chosen dictionary by a key"""
29
+ x = chosen_dictionary(dictionary)
30
+ if chosen_key == "continents" or chosen_key == "official languages":
31
+ return dict(filter(lambda item: chosen_value in item[1][chosen_key], x.items()))
32
+ else: return dict(filter(lambda item: item[1][chosen_key] == chosen_value, x.items()))
33
+ # This is still under development
34
+
35
+ def countries_population_density():
36
+ """Returns the countries dictionary with the `population density` key included in the countries' keys
37
+ - Population density (in people per square kilometre) = Population / Land area"""
38
+ new_countries = COUNTRIES
39
+ for x in COUNTRIES: new_countries[x]["population density"] = COUNTRIES[x]["population"] / COUNTRIES[x]["land area"]
40
+ return new_countries
41
+
42
+ def russia_population_density():
43
+ """Returns the Russia dictionary with the `population density` key included in the countries' keys
44
+ - Population density (in people per square kilometre) = Population / Land area"""
45
+ new_russia = RUSSIA
46
+ for x in RUSSIA: new_russia[x]["population density"] = RUSSIA[x]["population"] / RUSSIA[x]["area"]
47
+ return new_russia
48
+
49
+ def united_states_population_density():
50
+ """Returns the United States dictionary with the `population density` key included in the countries' keys
51
+ - Population density (in people per square kilometre) = Population / Land area"""
52
+ new_united_states = UNITED_STATES
53
+ for x in UNITED_STATES: new_united_states[x]["population density"] = UNITED_STATES[x]["population"] / UNITED_STATES[x]["area"]
54
+ return new_united_states
55
+
56
+ def vietnam_population_density():
57
+ """Returns the Vietnam dictionary with the `population density` key included in the countries' keys
58
+ - Population density (in people per square kilometre) = Population / Area"""
59
+ new_vietnam = VIETNAM
60
+ for x in VIETNAM: new_vietnam[x]["population density"] = VIETNAM[x]["population"] / VIETNAM[x]["area"]
61
+ return new_vietnam
62
+
63
+ def countries_population_density():
64
+ """Returns the countries dictionary with the `GDP per capita` key included in the countries' keys
65
+ - GDP per capita (in dollars per person) = Nominal GDP / Population"""
66
+ new_countries = COUNTRIES
67
+ for x in COUNTRIES: new_countries[x]["GDP per capita"] = COUNTRIES[x]["nominal GDP"] / COUNTRIES[x]["population"]
68
+ return new_countries
69
+
70
+ def countries_iso_3166_2():
71
+ """Returns the countries dictionary with the `ISO 3166-2` key included in the countries' keys
72
+ - ISO 3166-2 entry = "ISO 3166-2:" + ISO 3166-1 alpha-2"""
73
+ new_countries = COUNTRIES
74
+ for x in COUNTRIES: new_countries[x]["ISO 3166-2"] = "ISO 3166-2:" + COUNTRIES[x]["ISO 3166-1"]["alpha-2"]
75
+ return new_countries
76
+
77
+ def countries_france_censored():
78
+ """Returns the countries dictionary with the `France` key gets censored `Fr*nce`
79
+ (This is only a joke, I don't support hate against France and French people)"""
80
+ new_countries = COUNTRIES
81
+ new_countries["Fr*nce"] = new_countries.pop("France")
82
+ new_countries = dict(sorted(new_countries.items()))
83
+ return new_countries
@@ -1,4 +1,4 @@
1
- russia = {
1
+ RUSSIA = {
2
2
  "Adygea": {
3
3
  "federal district": "Southern",
4
4
  "economic region": "North Caucasus",
@@ -540,7 +540,7 @@ russia = {
540
540
  - Federal district
541
541
  - Economic region
542
542
  - Capital or administrative centre
543
- - Area
543
+ - Area (in square kilometre)
544
544
  - Population
545
545
 
546
546
  Note: the dictionary might contain inaccuracies"""
@@ -0,0 +1,481 @@
1
+ UNITED_STATES = {
2
+ # A
3
+ "Alabama": {
4
+ "capital": "Montgomery",
5
+ "date of ratification/establishment/acquiring": "1819.12.14",
6
+ "area": 135767.0,
7
+ "population": 5024279,
8
+ "House Representatives": 7,
9
+ "postal code": "AL",
10
+ },
11
+ "Alaska": {
12
+ "capital": "Juneau",
13
+ "date of ratification/establishment/acquiring": "1959.01.03",
14
+ "area": 1723337.0,
15
+ "population": 733391,
16
+ "House Representatives": 1,
17
+ "postal code": "AK",
18
+ },
19
+ "Arizona": {
20
+ "capital": "Phoenix",
21
+ "date of ratification/establishment/acquiring": "1912.02.14",
22
+ "area": 295234.0,
23
+ "population": 7151502,
24
+ "House Representatives": 9,
25
+ "postal code": "AZ",
26
+ },
27
+ "Arkansas": {
28
+ "capital": "Little Rock",
29
+ "date of ratification/establishment/acquiring": "1836.06.15",
30
+ "area": 137732.0,
31
+ "population": 3011524,
32
+ "House Representatives": 4,
33
+ "postal code": "AR",
34
+ },
35
+ # C
36
+ "California": {
37
+ "capital": "Sacramento",
38
+ "date of ratification/establishment/acquiring": "1850.09.09",
39
+ "area": 423967.0,
40
+ "population": 39538223,
41
+ "House Representatives": 52,
42
+ "postal code": "CA",
43
+ },
44
+ "Colorado": {
45
+ "capital": "Denver",
46
+ "date of ratification/establishment/acquiring": "1876.08.01",
47
+ "area": 269601.0,
48
+ "population": 5773714,
49
+ "House Representatives": 8,
50
+ "postal code": "CO",
51
+ },
52
+ "Connecticut": {
53
+ "capital": "Hartford",
54
+ "date of ratification/establishment/acquiring": "1788.01.09",
55
+ "area": 14357.0,
56
+ "population": 3605944,
57
+ "House Representatives": 5,
58
+ "postal code": "CT",
59
+ },
60
+ # D
61
+ "Delaware": {
62
+ "capital": "Dover",
63
+ "date of ratification/establishment/acquiring": "1787.12.07",
64
+ "area": 6446.0,
65
+ "population": 989948,
66
+ "House Representatives": 1,
67
+ "postal code": "DE",
68
+ },
69
+ # F
70
+ "Florida": {
71
+ "capital": "Tallahassee",
72
+ "date of ratification/establishment/acquiring": "1845.03.03",
73
+ "area": 170312.0,
74
+ "population": 21538187,
75
+ "House Representatives": 28,
76
+ "postal code": "FL",
77
+ },
78
+ # G
79
+ "Georgia": {
80
+ "capital": "Atlanta",
81
+ "date of ratification/establishment/acquiring": "1788.01.02",
82
+ "area": 153910.0,
83
+ "population": 10711908,
84
+ "House Representatives": 14,
85
+ "postal code": "GA",
86
+ },
87
+ # H
88
+ "Hawaii": {
89
+ "capital": "Honolulu",
90
+ "date of ratification/establishment/acquiring": "1959.08.21",
91
+ "area": 28313.0,
92
+ "population": 1455271,
93
+ "House Representatives": 2,
94
+ "postal code": "HI",
95
+ },
96
+ # I
97
+ "Idaho": {
98
+ "capital": "Boise",
99
+ "date of ratification/establishment/acquiring": "1890.07.03",
100
+ "area": 216443.0,
101
+ "population": 1839106,
102
+ "House Representatives": 2,
103
+ "postal code": "ID",
104
+ },
105
+ "Illinois": {
106
+ "capital": "Springfield",
107
+ "date of ratification/establishment/acquiring": "1818.12.03",
108
+ "area": 149995.0,
109
+ "population": 12812508,
110
+ "House Representatives": 17,
111
+ "postal code": "IL",
112
+ },
113
+ "Indiana": {
114
+ "capital": "Indianapolis",
115
+ "date of ratification/establishment/acquiring": "1816.12.11",
116
+ "area": 94326.0,
117
+ "population": 6785528,
118
+ "House Representatives": 9,
119
+ "postal code": "IN",
120
+ },
121
+ "Iowa": {
122
+ "capital": "Des Moines",
123
+ "date of ratification/establishment/acquiring": "1846.12.28",
124
+ "area": 145743.0,
125
+ "population": 3190369,
126
+ "House Representatives": 4,
127
+ "postal code": "IA",
128
+ },
129
+ # K
130
+ "Kansas": {
131
+ "capital": "Topeka",
132
+ "date of ratification/establishment/acquiring": "1861.01.29",
133
+ "area": 213100.0,
134
+ "population": 2937880,
135
+ "House Representatives": 4,
136
+ "postal code": "KS",
137
+ },
138
+ "Kentucky": {
139
+ "capital": "Frankfort",
140
+ "date of ratification/establishment/acquiring": "1792.06.01",
141
+ "area": 104656.0,
142
+ "population": 4505836,
143
+ "House Representatives": 6,
144
+ "postal code": "KY",
145
+ },
146
+ # L
147
+ "Louisiana": {
148
+ "capital": "Baton Rouge",
149
+ "date of ratification/establishment/acquiring": "1812.04.30",
150
+ "area": 135659.0,
151
+ "population": 4657757,
152
+ "House Representatives": 6,
153
+ "postal code": "LA",
154
+ },
155
+ # M
156
+ "Maine": {
157
+ "capital": "Augusta",
158
+ "date of ratification/establishment/acquiring": "1820.03.15",
159
+ "area": 91633.0,
160
+ "population": 1362359,
161
+ "House Representatives": 2,
162
+ "postal code": "ME",
163
+ },
164
+ "Maryland": {
165
+ "capital": "Annapolis",
166
+ "date of ratification/establishment/acquiring": "1788.04.28",
167
+ "area": 32131.0,
168
+ "population": 6177224,
169
+ "House Representatives": 8,
170
+ "postal code": "MD",
171
+ },
172
+ "Massachusetts": {
173
+ "capital": "Boston",
174
+ "date of ratification/establishment/acquiring": "1788.02.06",
175
+ "area": 27336.0,
176
+ "population": 7029917,
177
+ "House Representatives": 9,
178
+ "postal code": "MA",
179
+ },
180
+ "Michigan": {
181
+ "capital": "Lansing",
182
+ "date of ratification/establishment/acquiring": "1837.01.26",
183
+ "area": 250487.0,
184
+ "population": 10077331,
185
+ "House Representatives": 13,
186
+ "postal code": "MI",
187
+ },
188
+ "Minnesota": {
189
+ "capital": "Saint Paul",
190
+ "date of ratification/establishment/acquiring": "1858.05.11",
191
+ "area": 225163.0,
192
+ "population": 5706494,
193
+ "House Representatives": 8,
194
+ "postal code": "MN",
195
+ },
196
+ "Mississippi": {
197
+ "capital": "Jackson",
198
+ "date of ratification/establishment/acquiring": "1817.12.10",
199
+ "area": 125438.0,
200
+ "population": 2961279,
201
+ "House Representatives": 4,
202
+ "postal code": "MS",
203
+ },
204
+ "Missouri": {
205
+ "capital": "Jefferson City",
206
+ "date of ratification/establishment/acquiring": "1821.08.10",
207
+ "area": 180540.0,
208
+ "population": 6154913,
209
+ "House Representatives": 8,
210
+ "postal code": "MO",
211
+ },
212
+ "Montana": {
213
+ "capital": "Helena",
214
+ "date of ratification/establishment/acquiring": "1889.11.08",
215
+ "area": 380831.0,
216
+ "population": 1084225,
217
+ "House Representatives": 2,
218
+ "postal code": "MT",
219
+ },
220
+ # N
221
+ "Nebraska": {
222
+ "capital": "Lincoln",
223
+ "date of ratification/establishment/acquiring": "1867.03.01",
224
+ "area": 200330.0,
225
+ "population": 1961504,
226
+ "House Representatives": 3,
227
+ "postal code": "NE",
228
+ },
229
+ "Nevada": {
230
+ "capital": "Carson City",
231
+ "date of ratification/establishment/acquiring": "1864.10.31",
232
+ "area": 286380.0,
233
+ "population": 3104614,
234
+ "House Representatives": 4,
235
+ "postal code": "NV",
236
+ },
237
+ "New Hampshire": {
238
+ "capital": "Concord",
239
+ "date of ratification/establishment/acquiring": "1788.06.21",
240
+ "area": 24214.0,
241
+ "population": 1377529,
242
+ "House Representatives": 2,
243
+ "postal code": "NH",
244
+ },
245
+ "New Jersey": {
246
+ "capital": "Trenton",
247
+ "date of ratification/establishment/acquiring": "1787.12.18",
248
+ "area": 22591.0,
249
+ "population": 9288000,
250
+ "House Representatives": 12,
251
+ "postal code": "NJ",
252
+ },
253
+ "New Mexico": {
254
+ "capital": "Santa Fe",
255
+ "date of ratification/establishment/acquiring": "1912.01.06",
256
+ "area": 315194.0,
257
+ "population": 2117522,
258
+ "House Representatives": 3,
259
+ "postal code": "NM",
260
+ },
261
+ "New York": {
262
+ "capital": "Albany",
263
+ "date of ratification/establishment/acquiring": "1788.07.26",
264
+ "area": 141297.0,
265
+ "population": 20201249,
266
+ "House Representatives": 26,
267
+ "postal code": "NY",
268
+ },
269
+ "North Carolina": {
270
+ "capital": "Raleigh",
271
+ "date of ratification/establishment/acquiring": "1789.11.21",
272
+ "area": 139391.0,
273
+ "population": 10439388,
274
+ "House Representatives": 14,
275
+ "postal code": "NC",
276
+ },
277
+ "North Dakota": {
278
+ "capital": "Bismarck",
279
+ "date of ratification/establishment/acquiring": "1889.11.02",
280
+ "area": 183108.0,
281
+ "population": 779094,
282
+ "House Representatives": 1,
283
+ "postal code": "ND",
284
+ },
285
+ # O
286
+ "Ohio": {
287
+ "capital": "Columbus",
288
+ "date of ratification/establishment/acquiring": "1803.03.01",
289
+ "area": 116098.0,
290
+ "population": 11799448,
291
+ "House Representatives": 15,
292
+ "postal code": "OH",
293
+ },
294
+ "Oklahoma": {
295
+ "capital": "Oklahoma City",
296
+ "date of ratification/establishment/acquiring": "1907.11.16",
297
+ "area": 181037.0,
298
+ "population": 3959353,
299
+ "House Representatives": 5,
300
+ "postal code": "OK",
301
+ },
302
+ "Oregon": {
303
+ "capital": "Salem",
304
+ "date of ratification/establishment/acquiring": "1859.02.14",
305
+ "area": 254799.0,
306
+ "population": 4237256,
307
+ "House Representatives": 6,
308
+ "postal code": "OR",
309
+ },
310
+ # P
311
+ "Pennsylvania": {
312
+ "capital": "Harrisburg",
313
+ "date of ratification/establishment/acquiring": "1787.12.12",
314
+ "area": 119280.0,
315
+ "population": 13002700,
316
+ "House Representatives": 17,
317
+ "postal code": "PA",
318
+ },
319
+ # R
320
+ "Rhode Island": {
321
+ "capital": "Providence",
322
+ "date of ratification/establishment/acquiring": "1790.05.29",
323
+ "area": 4001.0,
324
+ "population": 1097379,
325
+ "House Representatives": 2,
326
+ "postal code": "RI",
327
+ },
328
+ # S
329
+ "South Carolina": {
330
+ "capital": "Columbia",
331
+ "date of ratification/establishment/acquiring": "1788.05.23",
332
+ "area": 82933.0,
333
+ "population": 5118425,
334
+ "House Representatives": 7,
335
+ "postal code": "SC",
336
+ },
337
+ "South Dakota": {
338
+ "capital": "Pierre",
339
+ "date of ratification/establishment/acquiring": "1889.11.02",
340
+ "area": 199729.0,
341
+ "population": 886667,
342
+ "House Representatives": 1,
343
+ "postal code": "SD",
344
+ },
345
+ # T
346
+ "Tennessee": {
347
+ "capital": "Nashville",
348
+ "date of ratification/establishment/acquiring": "1796.06.01",
349
+ "area": 109153.0,
350
+ "population": 6910840,
351
+ "House Representatives": 9,
352
+ "postal code": "TN",
353
+ },
354
+ "Texas": {
355
+ "capital": "Austin",
356
+ "date of ratification/establishment/acquiring": "1845.12.29",
357
+ "area": 695662.0,
358
+ "population": 29145505,
359
+ "House Representatives": 38,
360
+ "postal code": "TX",
361
+ },
362
+ # U
363
+ "Utah": {
364
+ "capital": "Salt Lake City",
365
+ "date of ratification/establishment/acquiring": "1896.01.04",
366
+ "area": 219882.0,
367
+ "population": 3271616,
368
+ "House Representatives": 4,
369
+ "postal code": "UT",
370
+ },
371
+ # V
372
+ "Vermont": {
373
+ "capital": "Montpelier",
374
+ "date of ratification/establishment/acquiring": "1791.03.04",
375
+ "area": 24906.0,
376
+ "population": 643077,
377
+ "House Representatives": 1,
378
+ "postal code": "VT",
379
+ },
380
+ "Virginia": {
381
+ "capital": "Richmond",
382
+ "date of ratification/establishment/acquiring": "1788.06.25",
383
+ "area": 110787.0,
384
+ "population": 8631393,
385
+ "House Representatives": 11,
386
+ "postal code": "VA",
387
+ },
388
+ # W
389
+ "Washington": {
390
+ "capital": "Olympia",
391
+ "date of ratification/establishment/acquiring": "1889.11.11",
392
+ "area": 184661.0,
393
+ "population": 7705281,
394
+ "House Representatives": 10,
395
+ "postal code": "WA",
396
+ },
397
+ "West Virginia": {
398
+ "capital": "Charleston",
399
+ "date of ratification/establishment/acquiring": "1863.06.20",
400
+ "area": 62756.0,
401
+ "population": 1793716,
402
+ "House Representatives": 2,
403
+ "postal code": "WV",
404
+ },
405
+ "Wisconsin": {
406
+ "capital": "Madison",
407
+ "date of ratification/establishment/acquiring": "1848.05.29",
408
+ "area": 169635.0,
409
+ "population": 5893718,
410
+ "House Representatives": 8,
411
+ "postal code": "WI",
412
+ },
413
+ "Wyoming": {
414
+ "capital": "Cheyenne",
415
+ "date of ratification/establishment/acquiring": "1890.07.10",
416
+ "area": 253335.0,
417
+ "population": 576851,
418
+ "House Representatives": 1,
419
+ "postal code": "WY",
420
+ },
421
+ # Federal district
422
+ "District of Columbia": {
423
+ "capital": "",
424
+ "date of ratification/establishment/acquiring": "1790.07.16",
425
+ "area": 176.0,
426
+ "population": 689545,
427
+ "House Representatives": 1,
428
+ "postal code": "WY",
429
+ },
430
+ # Inhabited territories
431
+ "American Samoa": {
432
+ "capital": "Pago Pago",
433
+ "date of ratification/establishment/acquiring": "1900",
434
+ "area": 1505.0,
435
+ "population": 49710,
436
+ "House Representatives": 1,
437
+ "postal code": "AS",
438
+ },
439
+ "Guam": {
440
+ "capital": "Hagåtña",
441
+ "date of ratification/establishment/acquiring": "1899",
442
+ "area": 1478.0,
443
+ "population": 153836,
444
+ "House Representatives": 1,
445
+ "postal code": "GU",
446
+ },
447
+ "Northern Mariana Islands": {
448
+ "capital": "Saipan",
449
+ "date of ratification/establishment/acquiring": "1986",
450
+ "area": 5117.0,
451
+ "population": 47329,
452
+ "House Representatives": 1,
453
+ "postal code": "MP",
454
+ },
455
+ "Puerto Rico": {
456
+ "capital": "San Juan",
457
+ "date of ratification/establishment/acquiring": "1899",
458
+ "area": 13791.0,
459
+ "population": 3285874,
460
+ "House Representatives": 1,
461
+ "postal code": "MP",
462
+ },
463
+ "U.S. Virgin Islands": {
464
+ "capital": "San Juan",
465
+ "date of ratification/establishment/acquiring": "1917",
466
+ "area": 1898.0,
467
+ "population": 87146,
468
+ "House Representatives": 1,
469
+ "postal code": "VI",
470
+ },
471
+ # Source: https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States
472
+ }
473
+ """A dictionary contains all states, federal district and inhabited territories of the United Nations and information about them:
474
+ - Capital
475
+ - Date of ratification/establishment/acquiring
476
+ - Area (in square kilometre)
477
+ - Population
478
+ - House Representatives
479
+ - Postal code
480
+
481
+ Note: the dictionary might contain inaccuracies"""
@@ -1,4 +1,4 @@
1
- vietnam = {
1
+ VIETNAM = {
2
2
  "Hanoi": {
3
3
  "region": "Red River Delta",
4
4
  "administrative centre": "Hoàn Kiếm ward",
@@ -174,7 +174,7 @@ vietnam = {
174
174
  """A dictionary contains all provinces and municipalities of Vietnam and information about them:
175
175
  - Region
176
176
  - Administrative centre
177
- - Area
177
+ - Area (in square kilometre)
178
178
  - Population
179
179
 
180
180
  Note: the dictionary might contain inaccuracies"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: countries_dictionary
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Provides a dictionary contains all members and observer states of the United Nations and information about them
5
5
  Author-email: Ngô Trần Quang Thiện <quangthienngotran@gmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -677,35 +677,39 @@ License: GNU GENERAL PUBLIC LICENSE
677
677
  the library. If this is what you want to do, use the GNU Lesser General
678
678
  Public License instead of this License. But first, please read
679
679
  <https://www.gnu.org/licenses/why-not-lgpl.html>.
680
- Project-URL: Homepage, https://github.com/ThienFakeVN/countries_dictionary
681
- Project-URL: Repository, https://github.com/ThienFakeVN/countries_dictionary
680
+ Project-URL: Homepage, https://github.com/ThienFakeVN/countries_dictionary/
681
+ Project-URL: Repository, https://github.com/ThienFakeVN/countries_dictionary/
682
682
  Keywords: countries,dictionary,united nations,states,russia,vietnam
683
683
  Requires-Python: >=3.7
684
684
  Description-Content-Type: text/markdown
685
685
  License-File: LICENCE
686
686
  Dynamic: license-file
687
687
 
688
+ # Countries Dictionary
688
689
  Countries Dictionary provides:
689
690
  - A dictionary contains all members and observer states of the United Nations and information about them:
690
691
  - Formal name
691
692
  - Continent(s) of the country's mainland
692
- - Area in square kilometre
693
+ - Area and land area (in square kilometre)
693
694
  - Population
694
695
  - Official language(s)
695
- - Nominal GDP in dollar
696
+ - Nominal GDP (in dollar)
696
697
  - Human Development Index
698
+ - ISO 3166-1 codes
697
699
  - Another dictionary contains all federal subjects of the Russian Federation (including occupied zones in Ukraine) and information about them:
698
700
  - Federal district
699
701
  - Economic region
700
702
  - Capital or administrative centre
701
- - Area
703
+ - Area (in square kilometre)
702
704
  - Population
703
705
  - Another one contains all provinces and municipalities of the Socialist Republic of Vietnam and information about them:
704
706
  - Region
705
707
  - Administrative centre
706
- - Area
708
+ - Area (in square kilometre)
707
709
  - Population
708
- - Some functions you might find helpful
710
+ - Some functions which you might find helpful
711
+
712
+ Before using, it is recommended to see the code on [GitHub](https://github.com/ThienFakeVN/countries_dictionary/) to understand how the code works
709
713
 
710
714
  I created this module as an offline source of countries' information which is easy to access and use by coders.
711
715
 
@@ -0,0 +1,11 @@
1
+ countries_dictionary/__init__.py,sha256=9TqDxIxHiX1mhXSdeltXUMfKVXYA5ee3cuLurl988MY,78042
2
+ countries_dictionary/iso_finder.py,sha256=O7-nrs52F0gc0gzEi_pEp7e01NjYE5Tk5jGsr6ECqgw,546
3
+ countries_dictionary/quick_functions.py,sha256=iAre9vZ6WxmL_63vIbjZbfeezv8bHtsrb6BgbKGDwAE,4470
4
+ countries_dictionary/russia.py,sha256=3tmknQM_51PHmsF6TI6arFdjwPhWBEPHPiKP7PzXBmI,20119
5
+ countries_dictionary/united_states.py,sha256=WJs5OrMMXinLPJWzt42hHPt89OLUC4qgifDUB9OrvoQ,15035
6
+ countries_dictionary/vietnam.py,sha256=zRdwasxzwMJNbkNInljXzEu2gA9TDEI5F8cIM4TmBtg,6446
7
+ countries_dictionary-3.0.0.dist-info/licenses/LICENCE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
8
+ countries_dictionary-3.0.0.dist-info/METADATA,sha256=_QT6EtjycfHQklZJfxwUqPBOHxh8bh5lSg8Fyp4uA6Y,43159
9
+ countries_dictionary-3.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ countries_dictionary-3.0.0.dist-info/top_level.txt,sha256=7tkD6sfiOQ__y-Eb2rnPUU0Lbhr_wtFBNcRus-aU4Zw,21
11
+ countries_dictionary-3.0.0.dist-info/RECORD,,