hdx-python-country 4.2.0__tar.gz → 4.2.1__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-4.2.0 → hdx_python_country-4.2.1}/PKG-INFO +1 -1
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/_version.py +2 -2
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/country.py +3 -2
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/.github/workflows/publish.yaml +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/.github/workflows/run-python-tests.yaml +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/.gitignore +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/.pre-commit-config.yaml +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/LICENSE +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/README.md +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/documentation/.readthedocs.yaml +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/documentation/index.md +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/documentation/mkdocs.yaml +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/pyproject.toml +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/Countries & Territories Taxonomy MVP - C&T Taxonomy.csv +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/__init__.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/adminlevel.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/currency.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/int_timestamp.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/wfp_api.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/src/hdx/location/wfp_exchangerates.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/adminlevel.yaml +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/adminlevelparent.yaml +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/fixtures-download-global-pcode-lengths.csv +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/fixtures-download-global-pcodes-adm-1-2.csv +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/secondary_historic_rates.csv +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/secondary_rates.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_List_1.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_List_2.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_1.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_10.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_2.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_3.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_4.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_5.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_6.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_7.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_8.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_9.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Markets_List_AFG_1.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Markets_List_AFG_2.json +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/Countries_UZB_Deleted.csv +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/__init__.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/conftest.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/test_adminlevel.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/test_country.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/test_currency.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/test_wfp_exchangerates.py +0 -0
- {hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: hdx-python-country
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.1
|
|
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
|
Project-URL: Repository, https://github.com/OCHA-DAP/hdx-python-country
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '4.2.
|
|
22
|
-
__version_tuple__ = version_tuple = (4, 2,
|
|
21
|
+
__version__ = version = '4.2.1'
|
|
22
|
+
__version_tuple__ = version_tuple = (4, 2, 1)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -5,6 +5,7 @@ import os.path
|
|
|
5
5
|
import re
|
|
6
6
|
from collections.abc import Iterator
|
|
7
7
|
from pathlib import Path
|
|
8
|
+
from typing import Any
|
|
8
9
|
|
|
9
10
|
from hdx.utilities.base_downloader import BaseDownload, DownloadError
|
|
10
11
|
from hdx.utilities.downloader import Download
|
|
@@ -235,7 +236,7 @@ class Country:
|
|
|
235
236
|
country_name_overrides: dict | None = None,
|
|
236
237
|
country_name_mappings: dict | None = None,
|
|
237
238
|
downloader: BaseDownload | None = None,
|
|
238
|
-
) ->
|
|
239
|
+
) -> dict[str, dict[str, Any]]:
|
|
239
240
|
"""
|
|
240
241
|
Read countries data from OCHA countries feed (falling back to file).
|
|
241
242
|
include_unofficial, use_live, country_name_overrides and country_name_mappings
|
|
@@ -250,7 +251,7 @@ class Country:
|
|
|
250
251
|
downloader: Download or Retrieve object. Defaults to None.
|
|
251
252
|
|
|
252
253
|
Returns:
|
|
253
|
-
|
|
254
|
+
Dictionary of countries data lookups (countries, iso2iso3, m49iso3 etc.)
|
|
254
255
|
"""
|
|
255
256
|
if include_unofficial is not None:
|
|
256
257
|
cls._include_unofficial = include_unofficial
|
|
File without changes
|
{hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/.github/workflows/run-python-tests.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/secondary_historic_rates.csv
RENAMED
|
File without changes
|
|
File without changes
|
{hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_List_1.json
RENAMED
|
File without changes
|
{hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Currency_List_2.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Markets_List_AFG_1.json
RENAMED
|
File without changes
|
{hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/fixtures/wfp/Markets_List_AFG_2.json
RENAMED
|
File without changes
|
{hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/Countries_UZB_Deleted.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hdx_python_country-4.2.0 → hdx_python_country-4.2.1}/tests/hdx/location/test_wfp_exchangerates.py
RENAMED
|
File without changes
|
|
File without changes
|