notoecd 0.1.3__py3-none-any.whl → 0.1.4__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.
- notoecd/__init__.py +1 -1
- {notoecd-0.1.3.dist-info → notoecd-0.1.4.dist-info}/METADATA +17 -17
- notoecd-0.1.4.dist-info/RECORD +9 -0
- notoecd-0.1.3.dist-info/RECORD +0 -9
- {notoecd-0.1.3.dist-info → notoecd-0.1.4.dist-info}/WHEEL +0 -0
- {notoecd-0.1.3.dist-info → notoecd-0.1.4.dist-info}/licenses/LICENSE +0 -0
- {notoecd-0.1.3.dist-info → notoecd-0.1.4.dist-info}/top_level.txt +0 -0
notoecd/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: notoecd
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Unofficial library for interacting with the OECD Data Explorer through Python.
|
|
5
5
|
Author-email: Daniel Vegara Balsa <daniel.vegarabalsa@oecd.org>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -16,16 +16,16 @@ Dynamic: license-file
|
|
|
16
16
|
|
|
17
17
|
⚠️ **Unofficial package, not endorsed by the OECD.**
|
|
18
18
|
|
|
19
|
-
A lightweight Python interface for exploring OECD SDMX structures and downloading OECD datasets.
|
|
19
|
+
A lightweight Python interface for exploring OECD SDMX structures and downloading OECD datasets.
|
|
20
20
|
|
|
21
21
|
The package provides utilities for:
|
|
22
22
|
|
|
23
|
-
- Discovering dataset metadata
|
|
24
|
-
- Searching for relevant datasets using keyword matching
|
|
25
|
-
- Exploring the structure and code lists of a dataset
|
|
26
|
-
- Fetching filtered SDMX data directly into a pandas DataFrame
|
|
23
|
+
- Discovering dataset metadata
|
|
24
|
+
- Searching for relevant datasets using keyword matching
|
|
25
|
+
- Exploring the structure and code lists of a dataset
|
|
26
|
+
- Fetching filtered SDMX data directly into a pandas DataFrame
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
---
|
|
29
29
|
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
@@ -33,7 +33,7 @@ You can install the package by running:
|
|
|
33
33
|
|
|
34
34
|
pip install notoecd
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
---
|
|
37
37
|
|
|
38
38
|
## Quick Start
|
|
39
39
|
|
|
@@ -45,24 +45,24 @@ The main functions in this module are:
|
|
|
45
45
|
get_structure(agencyID, dataflowID) -> Structure
|
|
46
46
|
get_df(agencyID, dataflowID, filters) -> pd.DataFrame
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
---
|
|
49
49
|
|
|
50
50
|
## Searching for datasets
|
|
51
51
|
|
|
52
52
|
`search_keywords` performs:
|
|
53
53
|
|
|
54
|
-
- Normalized text matching
|
|
55
|
-
- Accent-insensitive search
|
|
56
|
-
- Multi-keyword OR matching
|
|
57
|
-
- Ranking by number of matched keywords
|
|
54
|
+
- Normalized text matching
|
|
55
|
+
- Accent-insensitive search
|
|
56
|
+
- Multi-keyword OR matching
|
|
57
|
+
- Ranking by number of matched keywords
|
|
58
58
|
|
|
59
59
|
Example:
|
|
60
60
|
|
|
61
|
-
hits = notoecd.search_keywords(
|
|
61
|
+
hits = notoecd.search_keywords('gross domestic product', 'tl2', 'tl3')
|
|
62
62
|
|
|
63
63
|
This returns datasets that mention GDP and regional levels (TL2/TL3). It gives their name, description, and identifiers (agencyID and dataflowID), which we will need for the next step.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
---
|
|
66
66
|
|
|
67
67
|
## Inspecting dataset structure
|
|
68
68
|
|
|
@@ -87,7 +87,7 @@ This shows all filters and their available values.
|
|
|
87
87
|
|
|
88
88
|
This shows the available measures and units used in the dataset.
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
---
|
|
91
91
|
|
|
92
92
|
## Filtering and downloading data
|
|
93
93
|
|
|
@@ -108,7 +108,7 @@ Fetch the filtered dataset:
|
|
|
108
108
|
|
|
109
109
|
The returned object is a pandas DataFrame containing the requested subset of OECD SDMX data.
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
---
|
|
112
112
|
|
|
113
113
|
## Examples
|
|
114
114
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
notoecd/__init__.py,sha256=8_cXiMZN0gino3W2Wat06ncVcAR8XpCBgC3Q7vEbHjQ,189
|
|
2
|
+
notoecd/calls.py,sha256=SFM4kerc-K43Yo6oDBCsnvCIpN2Bg0-sHKpRfAujS-o,1496
|
|
3
|
+
notoecd/datasets.py,sha256=c8iz2HzWyCGGQINNnzlHG-kJMqsDKFbDObvK11QZU0Y,3751
|
|
4
|
+
notoecd/structure.py,sha256=sq6HrjNLfK-UWr9Cuqxun_DhHLPdegX7j7pKYcEYcJM,7169
|
|
5
|
+
notoecd-0.1.4.dist-info/licenses/LICENSE,sha256=jb9xgeCKfW-VCXFQtYmiM_SZ9tC2zPGtOIVsE5G17W8,1076
|
|
6
|
+
notoecd-0.1.4.dist-info/METADATA,sha256=hDuKZgO-urzF1ZHaqFIco36OFN435-b8zFf3lkwhs9c,2761
|
|
7
|
+
notoecd-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
notoecd-0.1.4.dist-info/top_level.txt,sha256=GrcbH10OAguGh5dkpzst216N_C-NtZ-QF1nlXiUpeLs,8
|
|
9
|
+
notoecd-0.1.4.dist-info/RECORD,,
|
notoecd-0.1.3.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
notoecd/__init__.py,sha256=gW8v_eB09ROOISMPTDD8pwSg0xtvNRZ-06lD2Q76Xb8,189
|
|
2
|
-
notoecd/calls.py,sha256=SFM4kerc-K43Yo6oDBCsnvCIpN2Bg0-sHKpRfAujS-o,1496
|
|
3
|
-
notoecd/datasets.py,sha256=c8iz2HzWyCGGQINNnzlHG-kJMqsDKFbDObvK11QZU0Y,3751
|
|
4
|
-
notoecd/structure.py,sha256=sq6HrjNLfK-UWr9Cuqxun_DhHLPdegX7j7pKYcEYcJM,7169
|
|
5
|
-
notoecd-0.1.3.dist-info/licenses/LICENSE,sha256=jb9xgeCKfW-VCXFQtYmiM_SZ9tC2zPGtOIVsE5G17W8,1076
|
|
6
|
-
notoecd-0.1.3.dist-info/METADATA,sha256=oHUyrIqCgzELJHZPrJ3cQKvpwWbR25d9YItSy5X8k6c,3123
|
|
7
|
-
notoecd-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
notoecd-0.1.3.dist-info/top_level.txt,sha256=GrcbH10OAguGh5dkpzst216N_C-NtZ-QF1nlXiUpeLs,8
|
|
9
|
-
notoecd-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|