hdx-python-country 3.8.5__tar.gz → 3.8.7__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.
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/.config/pre-commit-config.yaml +2 -2
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/PKG-INFO +4 -4
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/documentation/main.md +17 -14
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/pyproject.toml +5 -3
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/requirements.txt +21 -21
- hdx_python_country-3.8.7/src/hdx/location/Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv +258 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/src/hdx/location/_version.py +2 -2
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/src/hdx/location/adminlevel.py +2 -2
- hdx_python_country-3.8.7/tests/hdx/location/Countries_UZB_Deleted.csv +257 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/hdx/location/test_adminlevel.py +1 -1
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/hdx/location/test_country.py +60 -36
- hdx_python_country-3.8.5/src/hdx/location/Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv +0 -258
- hdx_python_country-3.8.5/src/hdx/location/phonetics.py +0 -56
- hdx_python_country-3.8.5/tests/hdx/location/Countries_UZB_Deleted.csv +0 -257
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/.config/coveragerc +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/.config/pytest.ini +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/.config/ruff.toml +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/.github/workflows/publish.yaml +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/.github/workflows/run-python-tests.yaml +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/.gitignore +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/CONTRIBUTING.md +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/LICENSE +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/README.md +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/documentation/.readthedocs.yaml +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/documentation/pydoc-markdown.yaml +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/src/hdx/location/__init__.py +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/src/hdx/location/country.py +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/src/hdx/location/currency.py +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/src/hdx/location/wfp_api.py +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/src/hdx/location/wfp_exchangerates.py +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/adminlevel.yaml +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/adminlevelparent.yaml +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/download-global-pcode-lengths.csv +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/download-global-pcodes-adm-1-2.csv +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/secondary_historic_rates.csv +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/secondary_rates.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_List_1.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_List_2.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_1.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_10.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_2.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_3.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_4.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_5.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_6.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_7.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_8.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_9.json +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/hdx/location/__init__.py +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/hdx/location/test_currency.py +0 -0
- {hdx_python_country-3.8.5 → hdx_python_country-3.8.7}/tests/hdx/location/test_wfp_exchangerates.py +0 -0
|
@@ -8,7 +8,7 @@ repos:
|
|
|
8
8
|
- id: end-of-file-fixer
|
|
9
9
|
- id: check-ast
|
|
10
10
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
11
|
-
rev: v0.
|
|
11
|
+
rev: v0.8.6
|
|
12
12
|
hooks:
|
|
13
13
|
# Run the linter.
|
|
14
14
|
- id: ruff
|
|
@@ -17,7 +17,7 @@ repos:
|
|
|
17
17
|
- id: ruff-format
|
|
18
18
|
args: [--config, .config/ruff.toml]
|
|
19
19
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
20
|
-
rev: 0.
|
|
20
|
+
rev: 0.5.15
|
|
21
21
|
hooks:
|
|
22
22
|
# Run the pip compile
|
|
23
23
|
- id: pip-compile
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: hdx-python-country
|
|
3
|
-
Version: 3.8.
|
|
3
|
+
Version: 3.8.7
|
|
4
4
|
Summary: HDX Python country code and exchange rate (fx) utilities
|
|
5
5
|
Project-URL: Homepage, https://github.com/OCHA-DAP/hdx-python-country
|
|
6
6
|
Author: Michael Rans
|
|
7
7
|
License: MIT
|
|
8
|
+
License-File: LICENSE
|
|
8
9
|
Keywords: HDX,country,country code,currencies,currency,exchange rate,foreign exchange,fx,iso 3166,iso2,iso3,location,region
|
|
9
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
10
11
|
Classifier: Intended Audience :: Developers
|
|
@@ -24,9 +25,8 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
24
25
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
26
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
26
27
|
Requires-Python: >=3.8
|
|
27
|
-
Requires-Dist: hdx-python-utilities>=3.
|
|
28
|
+
Requires-Dist: hdx-python-utilities>=3.8.0
|
|
28
29
|
Requires-Dist: libhxl>=5.2.2
|
|
29
|
-
Requires-Dist: pyphonetics
|
|
30
30
|
Requires-Dist: tenacity
|
|
31
31
|
Provides-Extra: dev
|
|
32
32
|
Requires-Dist: pre-commit; extra == 'dev'
|
|
@@ -87,21 +87,24 @@ The usage of the country mappings functionality is best illustrated by some exam
|
|
|
87
87
|
|
|
88
88
|
Country.get_country_info_from_iso2("jp")
|
|
89
89
|
# Returns dictionary with HXL hashtags as keys. For more on HXL, see http://hxlstandard.org/
|
|
90
|
-
# {"#country+alt+i_ar+name+
|
|
91
|
-
# "#country+alt+
|
|
92
|
-
# "#country+alt+
|
|
93
|
-
# "#country+alt+name+
|
|
94
|
-
# "#country+alt+name+
|
|
95
|
-
# "#country+alt+name+v_m49": "", "#country+alt+name+
|
|
90
|
+
# {"#country+alt+i_ar+name+v_m49": "اليابان", "#country+alt+i_ar+name+v_unterm": "اليابان",
|
|
91
|
+
# "#country+alt+i_en+name+v_m49": "Japan", "#country+alt+i_en+name+v_unterm": "Japan",
|
|
92
|
+
# "#country+alt+i_es+name+v_m49": "Japón", "#country+alt+i_es+name+v_unterm": "Japón",
|
|
93
|
+
# "#country+alt+i_fr+name+v_m49": "Japon", "#country+alt+i_fr+name+v_unterm": "Japon",
|
|
94
|
+
# "#country+alt+i_ru+name+v_m49": "Япония", "#country+alt+i_ru+name+v_unterm": "Япония",
|
|
95
|
+
# "#country+alt+i_zh+name+v_m49": "日本", "#country+alt+i_zh+name+v_unterm": "日本",
|
|
96
|
+
# "#country+alt+name+v_dgacm": "", "#country+alt+name+v_fts": "",
|
|
97
|
+
# "#country+alt+name+v_iso": "", "#country+alt+name+v_reliefweb": "",
|
|
96
98
|
# "#country+code+num+v_m49": "392", "#country+code+v_fts": "112",
|
|
97
|
-
# "#country+code+
|
|
98
|
-
# "#country+code+
|
|
99
|
-
# "#country+
|
|
100
|
-
# "#country+
|
|
101
|
-
# "#geo+admin_level": "0", "#geo+lat": "37.63209801", "#geo+lon": "138.0812256",
|
|
102
|
-
# "#
|
|
103
|
-
# "#region+intermediate
|
|
104
|
-
# "#region+
|
|
99
|
+
# "#country+code+v_iso2": "JP", "#country+code+v_iso3": "JPN",
|
|
100
|
+
# "#country+code+v_reliefweb": "128", "#country+formal+i_en+name+v_unterm": "Japan",
|
|
101
|
+
# "#country+name+preferred": "Japan", "#country+name+short+v_reliefweb": "",
|
|
102
|
+
# "#country+regex": "japan", "#currency+code": "JPY", "#date+start": "1974-01-01",
|
|
103
|
+
# "#geo+admin_level": "0", "#geo+lat": "37.63209801", "#geo+lon": "138.0812256",
|
|
104
|
+
# "#indicator+incomelevel": "High", "#meta+bool+deprecated": "N", "#meta+bool+independent": "Y",
|
|
105
|
+
# "#meta+id": "112", "#region+code+intermediate": "", "#region+code+main": "142",
|
|
106
|
+
# "#region+code+sub": "30", "#region+intermediate+name+preferred": "",
|
|
107
|
+
# "#region+main+name+preferred": "Asia", "#region+name+preferred+sub": "Eastern Asia"}
|
|
105
108
|
Country.get_countries_in_region("Channel Islands")
|
|
106
109
|
# ["GGY", "JEY"]
|
|
107
110
|
len(Country.get_countries_in_region("Africa"))
|
|
@@ -34,9 +34,8 @@ classifiers = [
|
|
|
34
34
|
requires-python = ">=3.8"
|
|
35
35
|
|
|
36
36
|
dependencies = [
|
|
37
|
-
"hdx-python-utilities>=3.
|
|
37
|
+
"hdx-python-utilities>=3.8.0",
|
|
38
38
|
"libhxl>=5.2.2",
|
|
39
|
-
"pyphonetics",
|
|
40
39
|
"tenacity",
|
|
41
40
|
]
|
|
42
41
|
dynamic = ["version"]
|
|
@@ -65,6 +64,9 @@ packages = ["src/hdx"]
|
|
|
65
64
|
[tool.hatch.build.hooks.vcs]
|
|
66
65
|
version-file = "src/hdx/location/_version.py"
|
|
67
66
|
|
|
67
|
+
[tool.hatch.metadata]
|
|
68
|
+
allow-direct-references = true
|
|
69
|
+
|
|
68
70
|
# Versioning
|
|
69
71
|
|
|
70
72
|
[tool.hatch.version]
|
|
@@ -90,7 +92,7 @@ run = """
|
|
|
90
92
|
"""
|
|
91
93
|
|
|
92
94
|
[tool.hatch.envs.hatch-static-analysis]
|
|
93
|
-
dependencies = ["ruff==0.
|
|
95
|
+
dependencies = ["ruff==0.8.6"]
|
|
94
96
|
|
|
95
97
|
[tool.hatch.envs.hatch-static-analysis.scripts]
|
|
96
98
|
format-check = ["ruff format --config .config/ruff.toml --check --diff {args:.}",]
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
# uv pip compile pyproject.toml --resolver=backtracking --all-extras -o requirements.txt
|
|
3
3
|
annotated-types==0.7.0
|
|
4
4
|
# via pydantic
|
|
5
|
-
attrs==24.
|
|
5
|
+
attrs==24.3.0
|
|
6
6
|
# via
|
|
7
7
|
# frictionless
|
|
8
8
|
# jsonlines
|
|
9
9
|
# jsonschema
|
|
10
10
|
# referencing
|
|
11
|
-
certifi==2024.
|
|
11
|
+
certifi==2024.12.14
|
|
12
12
|
# via requests
|
|
13
13
|
cfgv==3.4.0
|
|
14
14
|
# via pre-commit
|
|
15
15
|
chardet==5.2.0
|
|
16
16
|
# via frictionless
|
|
17
|
-
charset-normalizer==3.4.
|
|
17
|
+
charset-normalizer==3.4.1
|
|
18
18
|
# via requests
|
|
19
|
-
click==8.1.
|
|
19
|
+
click==8.1.8
|
|
20
20
|
# via typer
|
|
21
|
-
coverage==7.6.
|
|
21
|
+
coverage==7.6.10
|
|
22
22
|
# via pytest-cov
|
|
23
23
|
distlib==0.3.9
|
|
24
24
|
# via virtualenv
|
|
@@ -28,11 +28,11 @@ filelock==3.16.1
|
|
|
28
28
|
# via virtualenv
|
|
29
29
|
frictionless==5.18.0
|
|
30
30
|
# via hdx-python-utilities
|
|
31
|
-
hdx-python-utilities==3.
|
|
31
|
+
hdx-python-utilities==3.8.0
|
|
32
32
|
# via hdx-python-country (pyproject.toml)
|
|
33
33
|
humanize==4.11.0
|
|
34
34
|
# via frictionless
|
|
35
|
-
identify==2.6.
|
|
35
|
+
identify==2.6.5
|
|
36
36
|
# via pre-commit
|
|
37
37
|
idna==3.10
|
|
38
38
|
# via requests
|
|
@@ -42,7 +42,7 @@ iniconfig==2.0.0
|
|
|
42
42
|
# via pytest
|
|
43
43
|
isodate==0.7.2
|
|
44
44
|
# via frictionless
|
|
45
|
-
jinja2==3.1.
|
|
45
|
+
jinja2==3.1.5
|
|
46
46
|
# via frictionless
|
|
47
47
|
jsonlines==4.0.0
|
|
48
48
|
# via hdx-python-utilities
|
|
@@ -56,7 +56,7 @@ jsonschema-specifications==2024.10.1
|
|
|
56
56
|
# via jsonschema
|
|
57
57
|
libhxl==5.2.2
|
|
58
58
|
# via hdx-python-country (pyproject.toml)
|
|
59
|
-
loguru==0.7.
|
|
59
|
+
loguru==0.7.3
|
|
60
60
|
# via hdx-python-utilities
|
|
61
61
|
markdown-it-py==3.0.0
|
|
62
62
|
# via rich
|
|
@@ -84,15 +84,15 @@ ply==3.11
|
|
|
84
84
|
# libhxl
|
|
85
85
|
pre-commit==4.0.1
|
|
86
86
|
# via hdx-python-country (pyproject.toml)
|
|
87
|
-
pydantic==2.
|
|
87
|
+
pydantic==2.10.5
|
|
88
88
|
# via frictionless
|
|
89
|
-
pydantic-core==2.
|
|
89
|
+
pydantic-core==2.27.2
|
|
90
90
|
# via pydantic
|
|
91
|
-
pygments==2.
|
|
91
|
+
pygments==2.19.1
|
|
92
92
|
# via rich
|
|
93
93
|
pyphonetics==0.5.3
|
|
94
|
-
# via hdx-python-
|
|
95
|
-
pytest==8.3.
|
|
94
|
+
# via hdx-python-utilities
|
|
95
|
+
pytest==8.3.4
|
|
96
96
|
# via
|
|
97
97
|
# hdx-python-country (pyproject.toml)
|
|
98
98
|
# pytest-cov
|
|
@@ -129,11 +129,11 @@ rfc3986==2.0.0
|
|
|
129
129
|
# via frictionless
|
|
130
130
|
rich==13.9.4
|
|
131
131
|
# via typer
|
|
132
|
-
rpds-py==0.
|
|
132
|
+
rpds-py==0.22.3
|
|
133
133
|
# via
|
|
134
134
|
# jsonschema
|
|
135
135
|
# referencing
|
|
136
|
-
ruamel-yaml==0.18.
|
|
136
|
+
ruamel-yaml==0.18.10
|
|
137
137
|
# via hdx-python-utilities
|
|
138
138
|
ruamel-yaml-clib==0.2.12
|
|
139
139
|
# via ruamel-yaml
|
|
@@ -141,7 +141,7 @@ shellingham==1.5.4
|
|
|
141
141
|
# via typer
|
|
142
142
|
simpleeval==1.0.3
|
|
143
143
|
# via frictionless
|
|
144
|
-
six==1.
|
|
144
|
+
six==1.17.0
|
|
145
145
|
# via python-dateutil
|
|
146
146
|
stringcase==1.2.0
|
|
147
147
|
# via frictionless
|
|
@@ -155,7 +155,7 @@ tenacity==9.0.0
|
|
|
155
155
|
# via hdx-python-country (pyproject.toml)
|
|
156
156
|
text-unidecode==1.3
|
|
157
157
|
# via python-slugify
|
|
158
|
-
typer==0.
|
|
158
|
+
typer==0.15.1
|
|
159
159
|
# via frictionless
|
|
160
160
|
typing-extensions==4.12.2
|
|
161
161
|
# via
|
|
@@ -167,15 +167,15 @@ unidecode==1.3.8
|
|
|
167
167
|
# via
|
|
168
168
|
# libhxl
|
|
169
169
|
# pyphonetics
|
|
170
|
-
urllib3==2.
|
|
170
|
+
urllib3==2.3.0
|
|
171
171
|
# via
|
|
172
172
|
# libhxl
|
|
173
173
|
# requests
|
|
174
174
|
validators==0.34.0
|
|
175
175
|
# via frictionless
|
|
176
|
-
virtualenv==20.
|
|
176
|
+
virtualenv==20.28.1
|
|
177
177
|
# via pre-commit
|
|
178
|
-
wheel==0.45.
|
|
178
|
+
wheel==0.45.1
|
|
179
179
|
# via libhxl
|
|
180
180
|
xlrd==2.0.1
|
|
181
181
|
# via hdx-python-utilities
|