countries-dictionary 3.0.0__tar.gz → 3.0.2__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: countries_dictionary
3
- Version: 3.0.0
3
+ Version: 3.0.2
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
@@ -707,9 +707,16 @@ Countries Dictionary provides:
707
707
  - Administrative centre
708
708
  - Area (in square kilometre)
709
709
  - Population
710
- - Some functions which you might find helpful
710
+ - Another one contains all states, federal district and inhabited territories of the United Nations and information about them:
711
+ - Capital
712
+ - Date of ratification/establishment/acquiring
713
+ - Area (in square kilometre)
714
+ - Population
715
+ - House Representatives
716
+ - Postal code
717
+ - Some functions which you might find helpful
711
718
 
712
- Before using, it is recommended to see the code on [GitHub](https://github.com/ThienFakeVN/countries_dictionary/) to understand how the code works
719
+ Before using, it is recommended to see the code on [GitHub](https://github.com/ThienFakeVN/countries_dictionary/) to understand how it works
713
720
 
714
721
  I created this module as an offline source of countries' information which is easy to access and use by coders.
715
722
 
@@ -20,9 +20,16 @@ Countries Dictionary provides:
20
20
  - Administrative centre
21
21
  - Area (in square kilometre)
22
22
  - Population
23
- - Some functions which you might find helpful
23
+ - Another one contains all states, federal district and inhabited territories of the United Nations and information about them:
24
+ - Capital
25
+ - Date of ratification/establishment/acquiring
26
+ - Area (in square kilometre)
27
+ - Population
28
+ - House Representatives
29
+ - Postal code
30
+ - Some functions which you might find helpful
24
31
 
25
- Before using, it is recommended to see the code on [GitHub](https://github.com/ThienFakeVN/countries_dictionary/) to understand how the code works
32
+ Before using, it is recommended to see the code on [GitHub](https://github.com/ThienFakeVN/countries_dictionary/) to understand how it works
26
33
 
27
34
  I created this module as an offline source of countries' information which is easy to access and use by coders.
28
35
 
@@ -1,6 +1,7 @@
1
1
  from countries_dictionary import COUNTRIES
2
2
 
3
3
  def iso_finder(code: str):
4
+ """Returns a string which consists of the name of the country and its formal name, based on the provided ISO code"""
4
5
  for x in COUNTRIES:
5
6
  if code == COUNTRIES[x]["ISO 3166-1"]["alpha-2"]: return f"{x} — {COUNTRIES[x]["formal name"]}"
6
7
  else:
@@ -2,7 +2,7 @@
2
2
 
3
3
  from countries_dictionary import COUNTRIES
4
4
  from countries_dictionary.russia import RUSSIA
5
- from countries_dictionary.russia import UNITED_STATES
5
+ from countries_dictionary.united_states import UNITED_STATES
6
6
  from countries_dictionary.vietnam import VIETNAM
7
7
  import json
8
8
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: countries_dictionary
3
- Version: 3.0.0
3
+ Version: 3.0.2
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
@@ -707,9 +707,16 @@ Countries Dictionary provides:
707
707
  - Administrative centre
708
708
  - Area (in square kilometre)
709
709
  - Population
710
- - Some functions which you might find helpful
710
+ - Another one contains all states, federal district and inhabited territories of the United Nations and information about them:
711
+ - Capital
712
+ - Date of ratification/establishment/acquiring
713
+ - Area (in square kilometre)
714
+ - Population
715
+ - House Representatives
716
+ - Postal code
717
+ - Some functions which you might find helpful
711
718
 
712
- Before using, it is recommended to see the code on [GitHub](https://github.com/ThienFakeVN/countries_dictionary/) to understand how the code works
719
+ Before using, it is recommended to see the code on [GitHub](https://github.com/ThienFakeVN/countries_dictionary/) to understand how it works
713
720
 
714
721
  I created this module as an offline source of countries' information which is easy to access and use by coders.
715
722
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "countries_dictionary"
7
- version = "3.0.0"
7
+ version = "3.0.2"
8
8
  description = "Provides a dictionary contains all members and observer states of the United Nations and information about them"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"