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,9 @@
|
|
|
1
|
+
countries_dictionary/__init__.py,sha256=PJ3S5nFB7SGCwp_b3mCXKdKxDgMHCaGkdMWI2CTy2Gc,62849
|
|
2
|
+
countries_dictionary/quick_variables.py,sha256=sVqbR-YLlWYBkwt8V0s3QbQmPyJvE0bWspDxpZ7m0gE,1226
|
|
3
|
+
countries_dictionary/russia.py,sha256=Nfy5rpxg6CJlydrgHBRojG-usBBRs7Wq8MAkj1rJVZQ,15244
|
|
4
|
+
countries_dictionary/vietnam.py,sha256=ARG8b5j_NItp5spsMR-a1w-ylvjmuKUxFF_EhnBsoFQ,4534
|
|
5
|
+
countries_dictionary-2.0.0.dist-info/licenses/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
6
|
+
countries_dictionary-2.0.0.dist-info/METADATA,sha256=r2uyzzB1Q_VvsY_6z005fECtBWyn6gzFYy_o1F_Na1o,2168
|
|
7
|
+
countries_dictionary-2.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
countries_dictionary-2.0.0.dist-info/top_level.txt,sha256=7tkD6sfiOQ__y-Eb2rnPUU0Lbhr_wtFBNcRus-aU4Zw,21
|
|
9
|
+
countries_dictionary-2.0.0.dist-info/RECORD,,
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: countries_dictionary
|
|
3
|
-
Version: 1.0.2
|
|
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
|
|
8
|
-
Requires-Python: >=3.7
|
|
9
|
-
Description-Content-Type: text/markdown
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Dynamic: license-file
|
|
12
|
-
|
|
13
|
-
Countries Dictionary provides a dictionary contains all members and observer states of the United Nations and information about them:
|
|
14
|
-
- Continent(s) of the countries' mainland
|
|
15
|
-
- Area in square kilometre
|
|
16
|
-
- Population
|
|
17
|
-
- Nominal GDP in dollar
|
|
18
|
-
|
|
19
|
-
I created this module as a source of countries' information that is easy to access and use by coders using any programming language (as it can be converted into JSON).
|
|
20
|
-
|
|
21
|
-
After importing it:
|
|
22
|
-
```
|
|
23
|
-
from countries_dictionary import countries
|
|
24
|
-
```
|
|
25
|
-
you can do many things with the dictionary, such as convert it into a JSON string:
|
|
26
|
-
```
|
|
27
|
-
json.dumps(countries, indent=4)
|
|
28
|
-
```
|
|
29
|
-
calculate GDP per capita of a country:
|
|
30
|
-
```
|
|
31
|
-
countries["Vietnam"]["nominal GDP"] / countries["Vietnam"]["population"]
|
|
32
|
-
```
|
|
33
|
-
population density:
|
|
34
|
-
```
|
|
35
|
-
countries["Russia"]["population"] / countries["Russia"]["area"]
|
|
36
|
-
```
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
countries_dictionary/__init__.py,sha256=8LY7mwSRuE5EW3LtGXSCrB_lKSFqz6aV2uCpIHZ2PPM,22948
|
|
2
|
-
countries_dictionary-1.0.2.dist-info/licenses/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
3
|
-
countries_dictionary-1.0.2.dist-info/METADATA,sha256=ApvdC68eeS1e7Bfoxcpn-o_khSCyYlj0uxyoLSidlrY,1287
|
|
4
|
-
countries_dictionary-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
-
countries_dictionary-1.0.2.dist-info/top_level.txt,sha256=7tkD6sfiOQ__y-Eb2rnPUU0Lbhr_wtFBNcRus-aU4Zw,21
|
|
6
|
-
countries_dictionary-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
{countries_dictionary-1.0.2.dist-info → countries_dictionary-2.0.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|