hdx-python-country 3.8.9__tar.gz → 3.9.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.
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/PKG-INFO +1 -1
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/_version.py +2 -2
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/wfp_exchangerates.py +4 -3
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.config/coveragerc +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.config/pre-commit-config.yaml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.config/pytest.ini +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.config/ruff.toml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.github/workflows/publish.yaml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.github/workflows/run-python-tests.yaml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.gitignore +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/CONTRIBUTING.md +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/LICENSE +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/README.md +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/documentation/.readthedocs.yaml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/documentation/index.md +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/documentation/mkdocs.yaml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/pyproject.toml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/requirements.txt +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/__init__.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/adminlevel.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/country.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/currency.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/wfp_api.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/adminlevel.yaml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/adminlevelparent.yaml +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/download-global-pcode-lengths.csv +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/download-global-pcodes-adm-1-2.csv +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/secondary_historic_rates.csv +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/secondary_rates.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_List_1.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_List_2.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_1.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_10.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_2.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_3.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_4.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_5.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_6.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_7.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_8.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_9.json +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/Countries_UZB_Deleted.csv +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/__init__.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_adminlevel.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_country.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_currency.py +0 -0
- {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_wfp_exchangerates.py +0 -0
|
@@ -27,9 +27,10 @@ class WFPExchangeRates:
|
|
|
27
27
|
"""
|
|
28
28
|
currencies = []
|
|
29
29
|
for currency in self.wfp_api.get_items("Currency/List"):
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
currency_name = currency["extendedName"]
|
|
31
|
+
if currency_name:
|
|
32
|
+
currency_name = currency_name.strip()
|
|
33
|
+
currencies.append({"code": currency["name"], "name": currency_name})
|
|
33
34
|
return currencies
|
|
34
35
|
|
|
35
36
|
def get_currencies(self) -> List[str]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.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-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/secondary_historic_rates.csv
RENAMED
|
File without changes
|
|
File without changes
|
{hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_List_1.json
RENAMED
|
File without changes
|
{hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/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-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/Countries_UZB_Deleted.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_wfp_exchangerates.py
RENAMED
|
File without changes
|