gooddata-pandas 1.34.0__tar.gz → 1.35.0__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.
Potentially problematic release.
This version of gooddata-pandas might be problematic. Click here for more details.
- {gooddata_pandas-1.34.0/gooddata_pandas.egg-info → gooddata_pandas-1.35.0}/PKG-INFO +3 -3
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/data_access.py +2 -1
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/utils.py +21 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0/gooddata_pandas.egg-info}/PKG-INFO +3 -3
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas.egg-info/requires.txt +1 -1
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/setup.py +3 -3
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/LICENSE.txt +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/MANIFEST.in +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/README.md +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/__init__.py +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/_version.py +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/dataframe.py +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/good_pandas.py +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/py.typed +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/result_convertor.py +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas/series.py +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas.egg-info/SOURCES.txt +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas.egg-info/dependency_links.txt +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas.egg-info/top_level.txt +0 -0
- {gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/setup.cfg +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: gooddata-pandas
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.35.0
|
|
4
4
|
Summary: GoodData Cloud to pandas
|
|
5
5
|
Author: GoodData
|
|
6
6
|
Author-email: support@gooddata.com
|
|
7
7
|
License: MIT
|
|
8
|
-
Project-URL: Documentation, https://gooddata-pandas.readthedocs.io/en/v1.
|
|
8
|
+
Project-URL: Documentation, https://gooddata-pandas.readthedocs.io/en/v1.35.0
|
|
9
9
|
Project-URL: Source, https://github.com/gooddata/gooddata-python-sdk
|
|
10
10
|
Keywords: gooddata,pandas,series,data,frame,data_frame,analytics,headless,business,intelligence,headless-bi,cloud,native,semantic,layer,sql,metrics
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -23,7 +23,7 @@ Classifier: Typing :: Typed
|
|
|
23
23
|
Requires-Python: >=3.9.0
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
License-File: LICENSE.txt
|
|
26
|
-
Requires-Dist: gooddata-sdk~=1.
|
|
26
|
+
Requires-Dist: gooddata-sdk~=1.35.0
|
|
27
27
|
Requires-Dist: pandas<3.0.0,>=2.0.0
|
|
28
28
|
Dynamic: author
|
|
29
29
|
Dynamic: author-email
|
|
@@ -26,6 +26,7 @@ from gooddata_pandas.utils import (
|
|
|
26
26
|
_to_attribute,
|
|
27
27
|
_to_item,
|
|
28
28
|
_typed_attribute_value,
|
|
29
|
+
get_catalog_attributes_for_extract,
|
|
29
30
|
)
|
|
30
31
|
|
|
31
32
|
|
|
@@ -446,7 +447,7 @@ def compute_and_extract(
|
|
|
446
447
|
if not exec_def.has_attributes():
|
|
447
448
|
return _extract_for_metrics_only(response, cols, col_to_metric_idx), dict()
|
|
448
449
|
else:
|
|
449
|
-
attributes = sdk
|
|
450
|
+
attributes = get_catalog_attributes_for_extract(sdk, workspace_id, exec_def.attributes)
|
|
450
451
|
return _extract_from_attributes_and_maybe_metrics(
|
|
451
452
|
response,
|
|
452
453
|
attributes,
|
|
@@ -9,6 +9,7 @@ import pandas
|
|
|
9
9
|
from gooddata_sdk import (
|
|
10
10
|
Attribute,
|
|
11
11
|
CatalogAttribute,
|
|
12
|
+
GoodDataSdk,
|
|
12
13
|
Metric,
|
|
13
14
|
ObjId,
|
|
14
15
|
SimpleMetric,
|
|
@@ -16,6 +17,7 @@ from gooddata_sdk import (
|
|
|
16
17
|
VisualizationMetric,
|
|
17
18
|
)
|
|
18
19
|
from gooddata_sdk.type_converter import AttributeConverterStore, DateConverter, DatetimeConverter, IntegerConverter
|
|
20
|
+
from gooddata_sdk.utils import filter_for_attributes_labels
|
|
19
21
|
from pandas import Index, MultiIndex
|
|
20
22
|
|
|
21
23
|
LabelItemDef = Union[Attribute, ObjId, str]
|
|
@@ -29,6 +31,25 @@ DateConverter.set_external_fnc(lambda self, value: pandas.to_datetime(value))
|
|
|
29
31
|
DatetimeConverter.set_external_fnc(lambda self, value: pandas.to_datetime(value))
|
|
30
32
|
|
|
31
33
|
|
|
34
|
+
def get_catalog_attributes_for_extract(
|
|
35
|
+
sdk: GoodDataSdk, workspace_id: str, attributes: list[Attribute], character_limit: int = 1500
|
|
36
|
+
) -> list[CatalogAttribute]:
|
|
37
|
+
"""
|
|
38
|
+
Get catalog attributes for the given attributes.
|
|
39
|
+
It uses the filter_for_attributes_labels function to get the
|
|
40
|
+
RSQL queries for the attributes and then fetches the catalog attributes for the given workspace.
|
|
41
|
+
This approach prevents loading all catalog attributes providing significant speed-up.
|
|
42
|
+
"""
|
|
43
|
+
rsql_queries = filter_for_attributes_labels(attributes, character_limit)
|
|
44
|
+
return [
|
|
45
|
+
attr
|
|
46
|
+
for query in rsql_queries
|
|
47
|
+
for attr in sdk.catalog_workspace_content.get_attributes_catalog(
|
|
48
|
+
workspace_id, include=["labels", "datasets"], rsql_filter=query
|
|
49
|
+
)
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
|
|
32
53
|
def _unique_local_id() -> str:
|
|
33
54
|
"""
|
|
34
55
|
Generate unique local ID of a DataItem without dashes.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: gooddata-pandas
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.35.0
|
|
4
4
|
Summary: GoodData Cloud to pandas
|
|
5
5
|
Author: GoodData
|
|
6
6
|
Author-email: support@gooddata.com
|
|
7
7
|
License: MIT
|
|
8
|
-
Project-URL: Documentation, https://gooddata-pandas.readthedocs.io/en/v1.
|
|
8
|
+
Project-URL: Documentation, https://gooddata-pandas.readthedocs.io/en/v1.35.0
|
|
9
9
|
Project-URL: Source, https://github.com/gooddata/gooddata-python-sdk
|
|
10
10
|
Keywords: gooddata,pandas,series,data,frame,data_frame,analytics,headless,business,intelligence,headless-bi,cloud,native,semantic,layer,sql,metrics
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -23,7 +23,7 @@ Classifier: Typing :: Typed
|
|
|
23
23
|
Requires-Python: >=3.9.0
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
License-File: LICENSE.txt
|
|
26
|
-
Requires-Dist: gooddata-sdk~=1.
|
|
26
|
+
Requires-Dist: gooddata-sdk~=1.35.0
|
|
27
27
|
Requires-Dist: pandas<3.0.0,>=2.0.0
|
|
28
28
|
Dynamic: author
|
|
29
29
|
Dynamic: author-email
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
gooddata-sdk~=1.
|
|
1
|
+
gooddata-sdk~=1.35.0
|
|
2
2
|
pandas<3.0.0,>=2.0.0
|
|
@@ -7,7 +7,7 @@ this_directory = Path(__file__).parent
|
|
|
7
7
|
long_description = (this_directory / "README.md").read_text(encoding="utf-8")
|
|
8
8
|
|
|
9
9
|
REQUIRES = [
|
|
10
|
-
"gooddata-sdk~=1.
|
|
10
|
+
"gooddata-sdk~=1.35.0",
|
|
11
11
|
"pandas>=2.0.0,<3.0.0",
|
|
12
12
|
]
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ setup(
|
|
|
16
16
|
description="GoodData Cloud to pandas",
|
|
17
17
|
long_description=long_description,
|
|
18
18
|
long_description_content_type="text/markdown",
|
|
19
|
-
version="1.
|
|
19
|
+
version="1.35.0",
|
|
20
20
|
author="GoodData",
|
|
21
21
|
author_email="support@gooddata.com",
|
|
22
22
|
license="MIT",
|
|
@@ -26,7 +26,7 @@ setup(
|
|
|
26
26
|
packages=find_packages(exclude=["tests*"]),
|
|
27
27
|
python_requires=">=3.9.0",
|
|
28
28
|
project_urls={
|
|
29
|
-
"Documentation": "https://gooddata-pandas.readthedocs.io/en/v1.
|
|
29
|
+
"Documentation": "https://gooddata-pandas.readthedocs.io/en/v1.35.0",
|
|
30
30
|
"Source": "https://github.com/gooddata/gooddata-python-sdk",
|
|
31
31
|
},
|
|
32
32
|
classifiers=[
|
|
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
|
{gooddata_pandas-1.34.0 → gooddata_pandas-1.35.0}/gooddata_pandas.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|