pydeflate 1.3.11__py3-none-any.whl → 1.3.13__py3-none-any.whl
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/__init__.py +1 -1
- pydeflate/get_data/oecd_data.py +11 -1
- {pydeflate-1.3.11.dist-info → pydeflate-1.3.13.dist-info}/METADATA +4 -4
- {pydeflate-1.3.11.dist-info → pydeflate-1.3.13.dist-info}/RECORD +6 -6
- {pydeflate-1.3.11.dist-info → pydeflate-1.3.13.dist-info}/LICENSE +0 -0
- {pydeflate-1.3.11.dist-info → pydeflate-1.3.13.dist-info}/WHEEL +0 -0
pydeflate/__init__.py
CHANGED
pydeflate/get_data/oecd_data.py
CHANGED
|
@@ -103,7 +103,17 @@ def _download_bulk_file(url: str) -> bytes:
|
|
|
103
103
|
|
|
104
104
|
# parse html
|
|
105
105
|
page = Bs(response.text, "html.parser")
|
|
106
|
-
|
|
106
|
+
|
|
107
|
+
# ---
|
|
108
|
+
links = list(page.find_all("a"))
|
|
109
|
+
|
|
110
|
+
# Get the right link for the right file
|
|
111
|
+
links = [link for link in links if "xml" not in link.text.lower()]
|
|
112
|
+
|
|
113
|
+
# Get the link ending
|
|
114
|
+
link = links[0].attrs["onclick"][15:-3].replace("_", "-")
|
|
115
|
+
|
|
116
|
+
# Build the link
|
|
107
117
|
link = f"https://stats.oecd.org/FileView2.aspx?IDFile={link}"
|
|
108
118
|
|
|
109
119
|
return requests.get(link).content
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pydeflate
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.13
|
|
4
4
|
Summary: Package to convert current prices figures to constant prices and vice versa
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Jorge Rivera
|
|
@@ -15,14 +15,14 @@ Classifier: Programming Language :: Python :: 3
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Requires-Dist: bblocks (>=1
|
|
18
|
+
Requires-Dist: bblocks (>=1,<2)
|
|
19
19
|
Requires-Dist: beautifulsoup4 (>=4.12,<5.0)
|
|
20
20
|
Requires-Dist: country-converter (>=1,<2)
|
|
21
21
|
Requires-Dist: numpy (>=1.26,<2.0)
|
|
22
22
|
Requires-Dist: pandas (>=2,<3)
|
|
23
|
-
Requires-Dist: pyarrow (>=15,<
|
|
23
|
+
Requires-Dist: pyarrow (>=15.0,<17.0)
|
|
24
24
|
Requires-Dist: requests (>=2.28.2,<3.0.0)
|
|
25
|
-
Requires-Dist: weo (>=0.
|
|
25
|
+
Requires-Dist: weo (>=0.8,<0.9)
|
|
26
26
|
Requires-Dist: xlrd (>=2.0.1,<3.0.0)
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
pydeflate/.pydeflate_data/README.md,sha256=atNtUL9dD8G184YSd6juFib8TgEQBcSLogiz99APPVs,25
|
|
2
|
-
pydeflate/__init__.py,sha256=
|
|
2
|
+
pydeflate/__init__.py,sha256=LftD-evODVYMCKvQ545blYWpRyDT7sHneO8mZbyDonM,818
|
|
3
3
|
pydeflate/deflate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
pydeflate/deflate/deflate.py,sha256=hSlhuJi1YsemvvRBFgJog1oQI8lqkJ8nBn6PoufR7uk,11850
|
|
5
5
|
pydeflate/deflate/deflator.py,sha256=8nX_E1WPfY1ej8lfoLyOxnWNX0kW9khQIxa_QlrRm4A,2684
|
|
@@ -7,7 +7,7 @@ pydeflate/get_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
7
7
|
pydeflate/get_data/deflate_data.py,sha256=tZuxT38xRBXXaPSpLFtrEL5iz2TO7LFs8lNG2E64Ew0,2285
|
|
8
8
|
pydeflate/get_data/exchange_data.py,sha256=VqsSOirzoQEV5tUuRE999Sv2-fagPFpWcnvaVdssn9I,12091
|
|
9
9
|
pydeflate/get_data/imf_data.py,sha256=mEeqC1DfZ8kPn6fUjaFVNX8VfuSHtARcrqBVLnxwrRs,2693
|
|
10
|
-
pydeflate/get_data/oecd_data.py,sha256=
|
|
10
|
+
pydeflate/get_data/oecd_data.py,sha256=p297U-5BTVAiW_XsYGftywGp9S4aYStUjSNR6UAo92c,7729
|
|
11
11
|
pydeflate/get_data/wb_data.py,sha256=21L1ALmxL0Y-KjoDLJI7EUsDt8igBRnDjCro4lKi0l0,2103
|
|
12
12
|
pydeflate/pydeflate_config.py,sha256=wY9RQ2UVmCekusHeKUFmryA1DzWanP9BuOPDFPyva-4,894
|
|
13
13
|
pydeflate/settings/emu.json,sha256=BIvbiMUeHUtCESR3sMcBNrS028yp2YraCJdhDJGvAAo,133
|
|
@@ -16,7 +16,7 @@ pydeflate/tools/__init__.py,sha256=gbUXYeGrcrqcOc70BjFtxHtBnwSqor-SlWYgZjypEOA,4
|
|
|
16
16
|
pydeflate/tools/exchange.py,sha256=q8E4IsZcI015UjIwLXWl7d9PiqgHTFyalRm2fURfc3Y,5465
|
|
17
17
|
pydeflate/tools/update_data.py,sha256=nB05Y0ZEZ2WcYPjOR_O9QHdvvNy0JkWc1z_sH71U2lY,2109
|
|
18
18
|
pydeflate/utils.py,sha256=p0k3RzJBlqHQGIYWH3woAINRAPpfyM0mRu_cB29QS54,1573
|
|
19
|
-
pydeflate-1.3.
|
|
20
|
-
pydeflate-1.3.
|
|
21
|
-
pydeflate-1.3.
|
|
22
|
-
pydeflate-1.3.
|
|
19
|
+
pydeflate-1.3.13.dist-info/LICENSE,sha256=HwwzYp5BG8nNjP8ZgcxnE-fva8_Yx1ss7PZne73J9IE,1070
|
|
20
|
+
pydeflate-1.3.13.dist-info/METADATA,sha256=ebnIBX324_eGQsM3UIuMwB5GL48MuigQHWruCMyxh5o,10060
|
|
21
|
+
pydeflate-1.3.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
22
|
+
pydeflate-1.3.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|