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.
Files changed (36) hide show
  1. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/PKG-INFO +1 -1
  2. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/requirements.txt +1 -1
  3. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/_version.py +2 -2
  4. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/wfp_exchangerates.py +4 -0
  5. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.config/coveragerc +0 -0
  6. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.config/pre-commit-config.yaml +0 -0
  7. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.config/pytest.ini +0 -0
  8. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.config/ruff.toml +0 -0
  9. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.github/workflows/publish.yaml +0 -0
  10. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.github/workflows/run-python-tests.yaml +0 -0
  11. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/.gitignore +0 -0
  12. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/CONTRIBUTING.md +0 -0
  13. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/LICENSE +0 -0
  14. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/README.md +0 -0
  15. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/documentation/.readthedocs.yaml +0 -0
  16. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/documentation/main.md +0 -0
  17. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/documentation/pydoc-markdown.yaml +0 -0
  18. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/pyproject.toml +0 -0
  19. {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
  20. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/__init__.py +0 -0
  21. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/adminlevel.py +0 -0
  22. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/country.py +0 -0
  23. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/currency.py +0 -0
  24. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/names.py +0 -0
  25. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/src/hdx/location/phonetics.py +0 -0
  26. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/adminlevel.yaml +0 -0
  27. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/global_pcode_lengths.csv +0 -0
  28. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/global_pcodes_adm_1_2.csv +0 -0
  29. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/secondary_historic_rates.csv +0 -0
  30. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/fixtures/secondary_rates.json +0 -0
  31. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/Countries_UZB_Deleted.csv +0 -0
  32. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/__init__.py +0 -0
  33. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/test_adminlevel.py +0 -0
  34. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/test_country.py +0 -0
  35. {hdx_python_country-3.6.5 → hdx_python_country-3.6.6}/tests/hdx/location/test_currency.py +0 -0
  36. {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.5
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>
@@ -97,7 +97,7 @@ pyphonetics==0.5.3
97
97
  # via hdx-python-country (pyproject.toml)
98
98
  pyrsistent==0.20.0
99
99
  # via jsonschema
100
- pytest==8.0.2
100
+ pytest==8.1.0
101
101
  # via
102
102
  # hdx-python-country (pyproject.toml)
103
103
  # pytest-cov
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '3.6.5'
16
- __version_tuple__ = version_tuple = (3, 6, 5)
15
+ __version__ = version = '3.6.6'
16
+ __version_tuple__ = version_tuple = (3, 6, 6)
@@ -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
  )