hdx-python-country 3.6.5__tar.gz → 3.6.6__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.6.5 → hdx_python_country-3.6.6}/PKG-INFO +1 -1
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/requirements.txt +1 -1
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/_version.py +2 -2
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/wfp_exchangerates.py +4 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.config/coveragerc +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.config/pre-commit-config.yaml +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.config/pytest.ini +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.config/ruff.toml +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.github/workflows/publish.yaml +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.github/workflows/run-python-tests.yaml +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.gitignore +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/CONTRIBUTING.md +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/LICENSE +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/README.md +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/documentation/.readthedocs.yaml +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/documentation/main.md +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/documentation/pydoc-markdown.yaml +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/pyproject.toml +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/__init__.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/adminlevel.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/country.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/currency.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/names.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/phonetics.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/adminlevel.yaml +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/global_pcode_lengths.csv +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/global_pcodes_adm_1_2.csv +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/secondary_historic_rates.csv +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/secondary_rates.json +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/Countries_UZB_Deleted.csv +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/__init__.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/test_adminlevel.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/test_country.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/test_currency.py +0 -0
- {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/test_wfp_exchangerates.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hdx-python-country
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.6
|
|
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-email: Michael Rans <rans@email.com>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
from datetime import timezone
|
|
2
3
|
from typing import Dict, List
|
|
3
4
|
|
|
@@ -11,6 +12,8 @@ try:
|
|
|
11
12
|
except ImportError:
|
|
12
13
|
WfpApiToken = None
|
|
13
14
|
|
|
15
|
+
logger = logging.getLogger(__name__)
|
|
16
|
+
|
|
14
17
|
|
|
15
18
|
class WFPExchangeRates:
|
|
16
19
|
"""Obtain WFP official exchange rates. Requires WFP credentials amd
|
|
@@ -91,6 +94,7 @@ class WFPExchangeRates:
|
|
|
91
94
|
"""
|
|
92
95
|
historic_rates = {}
|
|
93
96
|
for currency in currencies:
|
|
97
|
+
logger.info(f"Getting WFP historic rates for {currency}")
|
|
94
98
|
currency_historic_rates = self.get_currency_historic_rates(
|
|
95
99
|
currency
|
|
96
100
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.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
|
{hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/global_pcode_lengths.csv
RENAMED
|
File without changes
|
{hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/global_pcodes_adm_1_2.csv
RENAMED
|
File without changes
|
{hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/secondary_historic_rates.csv
RENAMED
|
File without changes
|
|
File without changes
|
{hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/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.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/test_wfp_exchangerates.py
RENAMED
|
File without changes
|