castor-extractor 0.23.1__py3-none-any.whl → 0.23.2__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.
Potentially problematic release.
This version of castor-extractor might be problematic. Click here for more details.
- CHANGELOG.md +4 -0
- castor_extractor/commands/extract_tableau.py +6 -0
- castor_extractor/visualization/tableau_revamp/client/client_metadata_api.py +2 -2
- castor_extractor/visualization/tableau_revamp/extract.py +6 -1
- castor_extractor/warehouse/salesforce/extract.py +3 -1
- {castor_extractor-0.23.1.dist-info → castor_extractor-0.23.2.dist-info}/METADATA +5 -1
- {castor_extractor-0.23.1.dist-info → castor_extractor-0.23.2.dist-info}/RECORD +10 -10
- {castor_extractor-0.23.1.dist-info → castor_extractor-0.23.2.dist-info}/LICENCE +0 -0
- {castor_extractor-0.23.1.dist-info → castor_extractor-0.23.2.dist-info}/WHEEL +0 -0
- {castor_extractor-0.23.1.dist-info → castor_extractor-0.23.2.dist-info}/entry_points.txt +0 -0
CHANGELOG.md
CHANGED
|
@@ -28,6 +28,12 @@ def main():
|
|
|
28
28
|
help="Extract Tableau Pulse assets: Metrics and Subscriptions",
|
|
29
29
|
)
|
|
30
30
|
|
|
31
|
+
parser.add_argument(
|
|
32
|
+
"--page-size",
|
|
33
|
+
help="Lower the pagination when request exceeds the nodes size limit",
|
|
34
|
+
required=False,
|
|
35
|
+
)
|
|
36
|
+
|
|
31
37
|
parser.add_argument("-o", "--output", help="Directory to write to")
|
|
32
38
|
|
|
33
39
|
tableau_revamp.extract_all(**parse_filled_arguments(parser))
|
|
@@ -99,7 +99,7 @@ class TableauClientMetadataApi:
|
|
|
99
99
|
override_page_size: Optional[int] = None,
|
|
100
100
|
):
|
|
101
101
|
self._server = server
|
|
102
|
-
self.
|
|
102
|
+
self._override_page_size = override_page_size
|
|
103
103
|
|
|
104
104
|
def _call(
|
|
105
105
|
self,
|
|
@@ -117,7 +117,7 @@ class TableauClientMetadataApi:
|
|
|
117
117
|
|
|
118
118
|
def _page_size(self, asset: TableauRevampAsset) -> int:
|
|
119
119
|
return (
|
|
120
|
-
self.
|
|
120
|
+
self._override_page_size
|
|
121
121
|
or _CUSTOM_PAGE_SIZE.get(asset)
|
|
122
122
|
or DEFAULT_PAGE_SIZE
|
|
123
123
|
)
|
|
@@ -33,10 +33,15 @@ def extract_all(**kwargs) -> None:
|
|
|
33
33
|
"""
|
|
34
34
|
output_directory = kwargs.get("output") or from_env(OUTPUT_DIR)
|
|
35
35
|
with_pulse = kwargs.get("with_pulse") or False
|
|
36
|
+
page_size = kwargs.get("page_size")
|
|
36
37
|
timestamp = current_timestamp()
|
|
37
38
|
|
|
38
39
|
credentials = TableauRevampCredentials(**kwargs)
|
|
39
|
-
client = TableauRevampClient(
|
|
40
|
+
client = TableauRevampClient(
|
|
41
|
+
credentials,
|
|
42
|
+
with_pulse=with_pulse,
|
|
43
|
+
override_page_size=page_size,
|
|
44
|
+
)
|
|
40
45
|
client.login()
|
|
41
46
|
|
|
42
47
|
for key, data in iterate_all_data(client):
|
|
@@ -3,6 +3,7 @@ import logging
|
|
|
3
3
|
from ...utils import AbstractStorage, LocalStorage, write_summary
|
|
4
4
|
from ...utils.salesforce import SalesforceCredentials
|
|
5
5
|
from ..abstract import (
|
|
6
|
+
EXTERNAL_LINEAGE_ASSETS,
|
|
6
7
|
SupportedAssets,
|
|
7
8
|
WarehouseAsset,
|
|
8
9
|
WarehouseAssetGroup,
|
|
@@ -21,7 +22,8 @@ SALESFORCE_CATALOG_ASSETS: tuple[WarehouseAsset, ...] = (
|
|
|
21
22
|
)
|
|
22
23
|
|
|
23
24
|
SALESFORCE_ASSETS: SupportedAssets = {
|
|
24
|
-
WarehouseAssetGroup.CATALOG: SALESFORCE_CATALOG_ASSETS
|
|
25
|
+
WarehouseAssetGroup.CATALOG: SALESFORCE_CATALOG_ASSETS,
|
|
26
|
+
WarehouseAssetGroup.EXTERNAL_LINEAGE: EXTERNAL_LINEAGE_ASSETS,
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: castor-extractor
|
|
3
|
-
Version: 0.23.
|
|
3
|
+
Version: 0.23.2
|
|
4
4
|
Summary: Extract your metadata assets.
|
|
5
5
|
Home-page: https://www.castordoc.com/
|
|
6
6
|
License: EULA
|
|
@@ -206,6 +206,10 @@ For any questions or bug report, contact us at [support@castordoc.com](mailto:su
|
|
|
206
206
|
|
|
207
207
|
# Changelog
|
|
208
208
|
|
|
209
|
+
## 0.23.2 - 2025-02-17
|
|
210
|
+
|
|
211
|
+
* support page_size in Tableau extraction command
|
|
212
|
+
|
|
209
213
|
## 0.23.1 - 2025-02-10
|
|
210
214
|
|
|
211
215
|
* change command for Confluence from password to token to reflect better their documentation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
CHANGELOG.md,sha256=
|
|
1
|
+
CHANGELOG.md,sha256=s6P_wRcecQhMAvMkLLh7ZI79FCVyK3hs4Hoc_lE_Ers,15605
|
|
2
2
|
Dockerfile,sha256=xQ05-CFfGShT3oUqaiumaldwA288dj9Yb_pxofQpufg,301
|
|
3
3
|
DockerfileUsage.md,sha256=2hkJQF-5JuuzfPZ7IOxgM6QgIQW7l-9oRMFVwyXC4gE,998
|
|
4
4
|
LICENCE,sha256=sL-IGa4hweyya1HgzMskrRdybbIa2cktzxb5qmUgDg8,8254
|
|
@@ -24,7 +24,7 @@ castor_extractor/commands/extract_salesforce_reporting.py,sha256=FdANTNiLkIPdm80
|
|
|
24
24
|
castor_extractor/commands/extract_sigma.py,sha256=sxewHcZ1Doq35V2qnpX_zCKKXkrb1_9bYjUMg7BOW-k,643
|
|
25
25
|
castor_extractor/commands/extract_snowflake.py,sha256=vYiruxRoo--GeMemOGsSE1w9kcKTh_y4E165HtMVzkM,1982
|
|
26
26
|
castor_extractor/commands/extract_sqlserver.py,sha256=lwhbcNChaXHZgMgSOch3faVr7WJw-sDU6GHl3lzBt_0,1141
|
|
27
|
-
castor_extractor/commands/extract_tableau.py,sha256=
|
|
27
|
+
castor_extractor/commands/extract_tableau.py,sha256=DGQaXS-61rV-uzBtqfvqtyQzjLtrLTzE1ViTXPG1eck,1379
|
|
28
28
|
castor_extractor/commands/extract_thoughtspot.py,sha256=caAYJlH-vK7u5IUB6OKXxcaWfLgc7d_XqnFDWK6YNS4,639
|
|
29
29
|
castor_extractor/commands/file_check.py,sha256=TJx76Ymd0QCECmq35zRJMkPE8DJtSInB28MuSXWk8Ao,2644
|
|
30
30
|
castor_extractor/commands/upload.py,sha256=rLXp7gQ8zb1kLbho4FT87q8eJd8Gvo_TkyIynAaQ-4s,1342
|
|
@@ -296,7 +296,7 @@ castor_extractor/visualization/tableau_revamp/__init__.py,sha256=a3DGjQhaz17gBqW
|
|
|
296
296
|
castor_extractor/visualization/tableau_revamp/assets.py,sha256=8sJsK6Qixao6xVmVaO1usvs16SjNub9sIx7o-adYV14,659
|
|
297
297
|
castor_extractor/visualization/tableau_revamp/client/__init__.py,sha256=wmS9uLtUiqNYVloi0-DgD8d2qzu3RVZEAtWiaDp6G_M,90
|
|
298
298
|
castor_extractor/visualization/tableau_revamp/client/client.py,sha256=Ju89lMDiLOZ2LjxylcFm5429WElxGxjc52bMIWoKCDA,7716
|
|
299
|
-
castor_extractor/visualization/tableau_revamp/client/client_metadata_api.py,sha256=
|
|
299
|
+
castor_extractor/visualization/tableau_revamp/client/client_metadata_api.py,sha256=WdALsMGTji2C5oSDyRwFzq-f5HZDwX-m3W8Byx87Qh4,4357
|
|
300
300
|
castor_extractor/visualization/tableau_revamp/client/client_rest_api.py,sha256=O2F4qfrElTHHuD5WRPfLufazSmZ65jmlzye1t5rVOaQ,4024
|
|
301
301
|
castor_extractor/visualization/tableau_revamp/client/client_tsc.py,sha256=AzN8ytKmq6HUeApTJ118JQ7EBEPESqrg7u8n3GZXqZI,1874
|
|
302
302
|
castor_extractor/visualization/tableau_revamp/client/credentials.py,sha256=qA-EaX-4rbQRsn8v4zWh5Kh784ndHLjJaoZwnkQgCyo,1905
|
|
@@ -304,7 +304,7 @@ castor_extractor/visualization/tableau_revamp/client/errors.py,sha256=ecT8Tit5Vt
|
|
|
304
304
|
castor_extractor/visualization/tableau_revamp/client/gql_queries.py,sha256=uKNGRhYeoiKfJ8vxO50L0a2fHDpYQgEdG_eZfYSdHqM,2238
|
|
305
305
|
castor_extractor/visualization/tableau_revamp/client/rest_fields.py,sha256=3kvaq48BCBLfm7GL-i5W53MpbmSSi-e0yt31dNOk8ac,948
|
|
306
306
|
castor_extractor/visualization/tableau_revamp/constants.py,sha256=lHGB50FgVNO2nXeIhkvQKivD8ZFBIjDrflgD5cTXKJw,104
|
|
307
|
-
castor_extractor/visualization/tableau_revamp/extract.py,sha256=
|
|
307
|
+
castor_extractor/visualization/tableau_revamp/extract.py,sha256=Ud_lt1YDSyCBjR38sjtvINy_Ez_TnA_jtM2D-8LcxPA,1471
|
|
308
308
|
castor_extractor/visualization/thoughtspot/__init__.py,sha256=NhTGUk5Kdt54oCjHYoAt0cLBmVLys5lFYiRANL6wCmI,150
|
|
309
309
|
castor_extractor/visualization/thoughtspot/assets.py,sha256=SAQWPKaD2NTSDg7-GSkcRSSEkKSws0MJfOVcHkdeTSg,276
|
|
310
310
|
castor_extractor/visualization/thoughtspot/client/__init__.py,sha256=svrE2rMxR-OXctjPeAHMEPePlfcra-9KDevTMcHunAA,86
|
|
@@ -400,7 +400,7 @@ castor_extractor/warehouse/redshift/query.py,sha256=hQaBHj0OvoEQ_HehU-vPyd5JH7Yg
|
|
|
400
400
|
castor_extractor/warehouse/salesforce/__init__.py,sha256=NR4aNea5jeE1xYqeZ_29deeN84CkN0_D_Z7CLQdJvFY,137
|
|
401
401
|
castor_extractor/warehouse/salesforce/client.py,sha256=067ZyccmIYoY6VwLTSneefOJqUpobtnoEzxJMY2oSPs,3268
|
|
402
402
|
castor_extractor/warehouse/salesforce/constants.py,sha256=GusduVBCPvwpk_Im6F3bDvXeNQ7hRnCMdIAjIg65RnE,52
|
|
403
|
-
castor_extractor/warehouse/salesforce/extract.py,sha256=
|
|
403
|
+
castor_extractor/warehouse/salesforce/extract.py,sha256=hqZ71HPJuu--mYuYgg0kRBCR_qqLdXOmB1fw5i5DbHE,3514
|
|
404
404
|
castor_extractor/warehouse/salesforce/format.py,sha256=M5uGA8aURL_Nt27T8R2tDfbU5ZUM3ECG4fGalEkWkYA,3688
|
|
405
405
|
castor_extractor/warehouse/salesforce/format_test.py,sha256=puTL-Co84jE2SQzKFKGLYU9rey4Ja_Ox8xiKy4iOjeo,3780
|
|
406
406
|
castor_extractor/warehouse/salesforce/pagination.py,sha256=m1S9JRNf6Oe-6dDghYUY5wwTzGzKW5H9pE60PCXMha0,920
|
|
@@ -436,8 +436,8 @@ castor_extractor/warehouse/sqlserver/queries/table.sql,sha256=kbBQP-TdG5px1IVgyx
|
|
|
436
436
|
castor_extractor/warehouse/sqlserver/queries/user.sql,sha256=gOrZsMVypusR2dc4vwVs4E1a-CliRsr_UjnD2EbXs-A,94
|
|
437
437
|
castor_extractor/warehouse/sqlserver/query.py,sha256=g0hPT-RmeGi2DyenAi3o72cTlQsLToXIFYojqc8E5fQ,533
|
|
438
438
|
castor_extractor/warehouse/synapse/queries/column.sql,sha256=lNcFoIW3Y0PFOqoOzJEXmPvZvfAsY0AP63Mu2LuPzPo,1351
|
|
439
|
-
castor_extractor-0.23.
|
|
440
|
-
castor_extractor-0.23.
|
|
441
|
-
castor_extractor-0.23.
|
|
442
|
-
castor_extractor-0.23.
|
|
443
|
-
castor_extractor-0.23.
|
|
439
|
+
castor_extractor-0.23.2.dist-info/LICENCE,sha256=sL-IGa4hweyya1HgzMskrRdybbIa2cktzxb5qmUgDg8,8254
|
|
440
|
+
castor_extractor-0.23.2.dist-info/METADATA,sha256=XaEyHkKuPo14vRz6eAIjuvl3lzn6496vYtkefRZMuOA,22621
|
|
441
|
+
castor_extractor-0.23.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
442
|
+
castor_extractor-0.23.2.dist-info/entry_points.txt,sha256=7aVSxc-_2dicp28Ow-S4y0p4wGoTm9zGmVptMvfLdw8,1649
|
|
443
|
+
castor_extractor-0.23.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|