countries-dictionary 1.0.2__tar.gz → 2.0.0__tar.gz
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.
- countries_dictionary-2.0.0/PKG-INFO +57 -0
- countries_dictionary-2.0.0/README.md +45 -0
- countries_dictionary-2.0.0/countries_dictionary/__init__.py +1982 -0
- countries_dictionary-2.0.0/countries_dictionary/quick_variables.py +27 -0
- countries_dictionary-2.0.0/countries_dictionary/russia.py +456 -0
- countries_dictionary-2.0.0/countries_dictionary/vietnam.py +145 -0
- countries_dictionary-2.0.0/countries_dictionary.egg-info/PKG-INFO +57 -0
- {countries_dictionary-1.0.2 → countries_dictionary-2.0.0}/countries_dictionary.egg-info/SOURCES.txt +3 -0
- {countries_dictionary-1.0.2 → countries_dictionary-2.0.0}/pyproject.toml +2 -2
- countries_dictionary-1.0.2/PKG-INFO +0 -36
- countries_dictionary-1.0.2/README.md +0 -24
- countries_dictionary-1.0.2/countries_dictionary/__init__.py +0 -226
- countries_dictionary-1.0.2/countries_dictionary.egg-info/PKG-INFO +0 -36
- {countries_dictionary-1.0.2 → countries_dictionary-2.0.0}/LICENSE +0 -0
- {countries_dictionary-1.0.2 → countries_dictionary-2.0.0}/countries_dictionary.egg-info/dependency_links.txt +0 -0
- {countries_dictionary-1.0.2 → countries_dictionary-2.0.0}/countries_dictionary.egg-info/top_level.txt +0 -0
- {countries_dictionary-1.0.2 → countries_dictionary-2.0.0}/setup.cfg +0 -0
|
@@ -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.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Countries Dictionary provides:
|
|
2
|
+
- A dictionary contains all members and observer states of the United Nations and information about them:
|
|
3
|
+
- Formal name
|
|
4
|
+
- Continent(s) of the countries' mainland
|
|
5
|
+
- Area in square kilometre
|
|
6
|
+
- Population
|
|
7
|
+
- Official languages
|
|
8
|
+
- Nominal GDP in dollar
|
|
9
|
+
- Human Development Index
|
|
10
|
+
- Another dictionary contains all federal subjects of the Russian Federation (including occupied zones in Ukraine) and information about them:
|
|
11
|
+
- Federal district
|
|
12
|
+
- Economic region
|
|
13
|
+
- Area
|
|
14
|
+
- Population
|
|
15
|
+
- Another one contains all provinces and municipalities of the Socialist Republic of Vietnam and information about them:
|
|
16
|
+
- Region
|
|
17
|
+
- Area
|
|
18
|
+
- Population
|
|
19
|
+
- Some variables you might find helpful
|
|
20
|
+
|
|
21
|
+
After importing them:
|
|
22
|
+
```python
|
|
23
|
+
from countries_dictionary import countries
|
|
24
|
+
from countries_dictionary.russia import russia
|
|
25
|
+
from countries_dictionary.vietnam import vietnam
|
|
26
|
+
import countries_dictionary.quick_variables as qv
|
|
27
|
+
```
|
|
28
|
+
you can do many things with the dictionary, such as calculate GDP per capita of a country:
|
|
29
|
+
```python
|
|
30
|
+
countries["Switzerland"]["nominal GDP"] / countries["Switzerland"]["population"]
|
|
31
|
+
```
|
|
32
|
+
population density:
|
|
33
|
+
```python
|
|
34
|
+
countries["Russia"]["population"] / countries["Russia"]["area"]
|
|
35
|
+
```
|
|
36
|
+
percentage of a Vietnamese province's area compared to Vietnam's total area:
|
|
37
|
+
```python
|
|
38
|
+
vietnam["Ho Chi Minh City"]["area"] / countries["Vietnam"]["area"] * 100
|
|
39
|
+
```
|
|
40
|
+
or just see the dictionary when France is censored (This is only a joke, I don't support hate against France and French)
|
|
41
|
+
```python
|
|
42
|
+
qv.countries_france_censored
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
I created this module as a source of countries' information that is easy to access and use by coders.
|