castor-extractor 0.21.1__py3-none-any.whl → 0.21.3__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 +8 -0
- castor_extractor/knowledge/confluence/client/client.py +15 -1
- castor_extractor/visualization/tableau_revamp/client/client_rest_api.py +2 -2
- {castor_extractor-0.21.1.dist-info → castor_extractor-0.21.3.dist-info}/METADATA +9 -1
- {castor_extractor-0.21.1.dist-info → castor_extractor-0.21.3.dist-info}/RECORD +8 -8
- {castor_extractor-0.21.1.dist-info → castor_extractor-0.21.3.dist-info}/LICENCE +0 -0
- {castor_extractor-0.21.1.dist-info → castor_extractor-0.21.3.dist-info}/WHEEL +0 -0
- {castor_extractor-0.21.1.dist-info → castor_extractor-0.21.3.dist-info}/entry_points.txt +0 -0
CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from functools import partial
|
|
2
2
|
from http import HTTPStatus
|
|
3
|
-
from typing import Optional
|
|
3
|
+
from typing import Iterator, Optional
|
|
4
4
|
|
|
5
5
|
from ....utils import (
|
|
6
6
|
APIClient,
|
|
@@ -8,6 +8,9 @@ from ....utils import (
|
|
|
8
8
|
RequestSafeMode,
|
|
9
9
|
fetch_all_pages,
|
|
10
10
|
)
|
|
11
|
+
from ..assets import (
|
|
12
|
+
ConfluenceAsset,
|
|
13
|
+
)
|
|
11
14
|
from .credentials import ConfluenceCredentials
|
|
12
15
|
from .endpoints import ConfluenceEndpointFactory
|
|
13
16
|
from .pagination import ConfluencePagination
|
|
@@ -58,3 +61,14 @@ class ConfluenceClient(APIClient):
|
|
|
58
61
|
data=request_body,
|
|
59
62
|
)
|
|
60
63
|
yield from fetch_all_pages(request, ConfluencePagination)
|
|
64
|
+
|
|
65
|
+
def fetch(self, asset: ConfluenceAsset) -> Iterator[dict]:
|
|
66
|
+
"""Returns the needed metadata for the queried asset"""
|
|
67
|
+
if asset == ConfluenceAsset.PAGES:
|
|
68
|
+
yield from self.pages()
|
|
69
|
+
|
|
70
|
+
elif asset == ConfluenceAsset.USERS:
|
|
71
|
+
yield from self.users()
|
|
72
|
+
|
|
73
|
+
else:
|
|
74
|
+
raise ValueError(f"This asset {asset} is unknown")
|
|
@@ -12,7 +12,7 @@ logger = logging.getLogger(__name__)
|
|
|
12
12
|
|
|
13
13
|
_PULSE_API = "api/-/pulse"
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
_METRICS_DEFINITION_URL = "{base}/pulse/site/{site}/{definition_id}"
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def _pick(
|
|
@@ -89,7 +89,7 @@ class TableauClientRestApi:
|
|
|
89
89
|
site = self._get_site_name()
|
|
90
90
|
base_url = self._server.server_address.strip("/")
|
|
91
91
|
for row in data:
|
|
92
|
-
row["metadata"]["url"] =
|
|
92
|
+
row["metadata"]["url"] = _METRICS_DEFINITION_URL.format(
|
|
93
93
|
base=base_url,
|
|
94
94
|
site=site,
|
|
95
95
|
definition_id=row["metadata"]["id"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: castor-extractor
|
|
3
|
-
Version: 0.21.
|
|
3
|
+
Version: 0.21.3
|
|
4
4
|
Summary: Extract your metadata assets.
|
|
5
5
|
Home-page: https://www.castordoc.com/
|
|
6
6
|
License: EULA
|
|
@@ -208,6 +208,14 @@ For any questions or bug report, contact us at [support@castordoc.com](mailto:su
|
|
|
208
208
|
|
|
209
209
|
# Changelog
|
|
210
210
|
|
|
211
|
+
## 0.21.3 - 2024-11-07
|
|
212
|
+
|
|
213
|
+
* Tableau: Fix metrics definition url
|
|
214
|
+
|
|
215
|
+
## 0.21.2 - 2024-11-06
|
|
216
|
+
|
|
217
|
+
* Adding fetch method for confluence client
|
|
218
|
+
|
|
211
219
|
## 0.21.1 - 2024-10-23
|
|
212
220
|
|
|
213
221
|
* Warning message to deprecate python < 3.9
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
CHANGELOG.md,sha256=
|
|
1
|
+
CHANGELOG.md,sha256=BtUYfthvsdEMiRDdId1T0Z0UYp_JshR9jaXq0OQ0SgE,14487
|
|
2
2
|
Dockerfile,sha256=xQ05-CFfGShT3oUqaiumaldwA288dj9Yb_pxofQpufg,301
|
|
3
3
|
DockerfileUsage.md,sha256=2hkJQF-5JuuzfPZ7IOxgM6QgIQW7l-9oRMFVwyXC4gE,998
|
|
4
4
|
LICENCE,sha256=sL-IGa4hweyya1HgzMskrRdybbIa2cktzxb5qmUgDg8,8254
|
|
@@ -43,7 +43,7 @@ castor_extractor/knowledge/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
43
43
|
castor_extractor/knowledge/confluence/__init__.py,sha256=pRT615pMDlB7Ifs09erVn2EdpZHgkvX5selemWU3VPE,129
|
|
44
44
|
castor_extractor/knowledge/confluence/assets.py,sha256=zv2G2LB8H0fKDbVJ4kHrAjbqehXI_K-wgd_ghSXGFvs,144
|
|
45
45
|
castor_extractor/knowledge/confluence/client/__init__.py,sha256=ALAzo0JEhxFzH2FnIO6HmtkAGS2_bGY8KXXMcTGV3aE,84
|
|
46
|
-
castor_extractor/knowledge/confluence/client/client.py,sha256=
|
|
46
|
+
castor_extractor/knowledge/confluence/client/client.py,sha256=ZBabhxlaatbfT19ijGTmF0UJdWSANz7_q5IU7AmB4PM,2090
|
|
47
47
|
castor_extractor/knowledge/confluence/client/credentials.py,sha256=2LUjnCOMwq2NBrkHty99TpWlgyOOsYjwC9NeekZMH84,422
|
|
48
48
|
castor_extractor/knowledge/confluence/client/endpoints.py,sha256=b7PIvw9_W942L4zsEZa__KhZDTo4yt-CdIO0eas69TE,736
|
|
49
49
|
castor_extractor/knowledge/confluence/client/pagination.py,sha256=ty4meiMEujDVSiQyOJTibd-ReYyDyGezdFuk7EAGtMA,862
|
|
@@ -285,7 +285,7 @@ castor_extractor/visualization/tableau_revamp/assets.py,sha256=8sJsK6Qixao6xVmVa
|
|
|
285
285
|
castor_extractor/visualization/tableau_revamp/client/__init__.py,sha256=wmS9uLtUiqNYVloi0-DgD8d2qzu3RVZEAtWiaDp6G_M,90
|
|
286
286
|
castor_extractor/visualization/tableau_revamp/client/client.py,sha256=oaxvPsCccAcTWooXmDQNcJ6RFUVsCUzl6HxaHIwh5kU,7564
|
|
287
287
|
castor_extractor/visualization/tableau_revamp/client/client_metadata_api.py,sha256=yNnGR3Tk32TUmaDejaz5fkw2p9DtmMeCv5rsZNOHUfY,3047
|
|
288
|
-
castor_extractor/visualization/tableau_revamp/client/client_rest_api.py,sha256=
|
|
288
|
+
castor_extractor/visualization/tableau_revamp/client/client_rest_api.py,sha256=HZ6KdNJ6sqhWElfpYlUwbZDJXxoKkNc3p-YAKExzDxM,4030
|
|
289
289
|
castor_extractor/visualization/tableau_revamp/client/client_tsc.py,sha256=BBwIOqK2zU66udFRmLGmB_3J1ILGhVOY5Hq4nmsonF0,1853
|
|
290
290
|
castor_extractor/visualization/tableau_revamp/client/credentials.py,sha256=qA-EaX-4rbQRsn8v4zWh5Kh784ndHLjJaoZwnkQgCyo,1905
|
|
291
291
|
castor_extractor/visualization/tableau_revamp/client/errors.py,sha256=dTe1shqmWmAXpDpCz-E24m8dGYjt6rvIGV9qQb4jnvI,150
|
|
@@ -424,8 +424,8 @@ castor_extractor/warehouse/sqlserver/queries/table.sql,sha256=kbBQP-TdG5px1IVgyx
|
|
|
424
424
|
castor_extractor/warehouse/sqlserver/queries/user.sql,sha256=gOrZsMVypusR2dc4vwVs4E1a-CliRsr_UjnD2EbXs-A,94
|
|
425
425
|
castor_extractor/warehouse/sqlserver/query.py,sha256=j_d5-HMnzBouwGfywVZMRSSwbXzPvzDWlFCZmvxcoGQ,539
|
|
426
426
|
castor_extractor/warehouse/synapse/queries/column.sql,sha256=lNcFoIW3Y0PFOqoOzJEXmPvZvfAsY0AP63Mu2LuPzPo,1351
|
|
427
|
-
castor_extractor-0.21.
|
|
428
|
-
castor_extractor-0.21.
|
|
429
|
-
castor_extractor-0.21.
|
|
430
|
-
castor_extractor-0.21.
|
|
431
|
-
castor_extractor-0.21.
|
|
427
|
+
castor_extractor-0.21.3.dist-info/LICENCE,sha256=sL-IGa4hweyya1HgzMskrRdybbIa2cktzxb5qmUgDg8,8254
|
|
428
|
+
castor_extractor-0.21.3.dist-info/METADATA,sha256=InLxkmUU0Esx_QcW1lM9_XmiwHjtfAnCiolwoTosseE,21707
|
|
429
|
+
castor_extractor-0.21.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
430
|
+
castor_extractor-0.21.3.dist-info/entry_points.txt,sha256=7aVSxc-_2dicp28Ow-S4y0p4wGoTm9zGmVptMvfLdw8,1649
|
|
431
|
+
castor_extractor-0.21.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|