pydeflate 2.3.0.post0__tar.gz → 2.3.2__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.
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/PKG-INFO +2 -2
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/pyproject.toml +2 -2
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/deflate/get_deflators.py +3 -1
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/exchange/get_rates.py +3 -1
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/sources/common.py +3 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/LICENSE +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/README.md +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/.pydeflate_data/README.md +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/__init__.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/cache.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/constants.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/context.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/core/__init__.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/core/api.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/core/deflator.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/core/exchange.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/core/source.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/deflate/__init__.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/deflate/deflators.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/deflate/legacy_deflate.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/exceptions.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/exchange/__init__.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/exchange/exchangers.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/plugins.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/protocols.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/pydeflate_config.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/schemas.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/settings/emu.json +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/settings/oecd_codes.json +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/sources/__init__.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/sources/dac.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/sources/imf.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/sources/world_bank.py +0 -0
- {pydeflate-2.3.0.post0 → pydeflate-2.3.2}/src/pydeflate/utils.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pydeflate
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
4
4
|
Summary: Package to convert current prices figures to constant prices and vice versa
|
|
5
5
|
Author: Jorge Rivera
|
|
6
6
|
Author-email: Jorge Rivera <Jorge.Rivera@one.org>
|
|
7
7
|
License-Expression: MIT
|
|
8
8
|
License-File: LICENSE
|
|
9
9
|
Requires-Dist: hdx-python-country>=3.9.8
|
|
10
|
-
Requires-Dist: imf-reader>=1.
|
|
10
|
+
Requires-Dist: imf-reader>=1.4.1
|
|
11
11
|
Requires-Dist: oda-reader>=1.3.0
|
|
12
12
|
Requires-Dist: pandas>=2.0
|
|
13
13
|
Requires-Dist: pandera>=0.20.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pydeflate"
|
|
3
|
-
version = "2.3.
|
|
3
|
+
version = "2.3.2"
|
|
4
4
|
description = "Package to convert current prices figures to constant prices and vice versa"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
@@ -11,7 +11,7 @@ license-files = ["LICENSE*"]
|
|
|
11
11
|
|
|
12
12
|
dependencies = [
|
|
13
13
|
"hdx-python-country>=3.9.8",
|
|
14
|
-
"imf-reader>=1.
|
|
14
|
+
"imf-reader>=1.4.1",
|
|
15
15
|
"oda-reader>=1.3.0",
|
|
16
16
|
"pandas>=2.0",
|
|
17
17
|
"pandera>=0.20.0",
|
|
@@ -72,7 +72,9 @@ def _get_deflator(deflator_source_cls, price_kind):
|
|
|
72
72
|
data = deflator.pydeflate_data.copy()
|
|
73
73
|
|
|
74
74
|
# Determine the entity column based on use_source_codes
|
|
75
|
-
entity_col =
|
|
75
|
+
entity_col = (
|
|
76
|
+
"pydeflate_entity_code" if use_source_codes else "pydeflate_iso3"
|
|
77
|
+
)
|
|
76
78
|
|
|
77
79
|
# Filter by countries if specified
|
|
78
80
|
if countries is not None:
|
|
@@ -66,7 +66,9 @@ def _get_exchange_rates(exchange_source_cls, **fixed_params):
|
|
|
66
66
|
data = exchange.pydeflate_data.copy()
|
|
67
67
|
|
|
68
68
|
# Determine the entity column based on use_source_codes
|
|
69
|
-
entity_col =
|
|
69
|
+
entity_col = (
|
|
70
|
+
"pydeflate_entity_code" if use_source_codes else "pydeflate_iso3"
|
|
71
|
+
)
|
|
70
72
|
|
|
71
73
|
# Filter by countries if specified
|
|
72
74
|
if countries is not None:
|
|
@@ -107,8 +107,11 @@ def add_pydeflate_iso3(
|
|
|
107
107
|
additional_mapping={
|
|
108
108
|
"World": "WLD",
|
|
109
109
|
"European Union": "EUR",
|
|
110
|
+
"Euro area": "EUR",
|
|
110
111
|
"EU Institutions": "EUI",
|
|
111
112
|
"DAC countries": "DAC",
|
|
113
|
+
"DAC Countries, Total": "DAC",
|
|
114
|
+
"Total DAC": "DAC",
|
|
112
115
|
"Kosovo": "XXK",
|
|
113
116
|
"G7": "G7C",
|
|
114
117
|
"Sub-Sahara Africa": "SSA",
|
|
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
|
|
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
|