semantic-link-labs 0.4.1__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 semantic-link-labs might be problematic. Click here for more details.

Files changed (52) hide show
  1. semantic_link_labs-0.4.1.dist-info/LICENSE +21 -0
  2. semantic_link_labs-0.4.1.dist-info/METADATA +22 -0
  3. semantic_link_labs-0.4.1.dist-info/RECORD +52 -0
  4. semantic_link_labs-0.4.1.dist-info/WHEEL +5 -0
  5. semantic_link_labs-0.4.1.dist-info/top_level.txt +1 -0
  6. sempy_labs/__init__.py +154 -0
  7. sempy_labs/_ai.py +496 -0
  8. sempy_labs/_clear_cache.py +39 -0
  9. sempy_labs/_connections.py +234 -0
  10. sempy_labs/_dax.py +70 -0
  11. sempy_labs/_generate_semantic_model.py +280 -0
  12. sempy_labs/_helper_functions.py +506 -0
  13. sempy_labs/_icons.py +4 -0
  14. sempy_labs/_list_functions.py +1372 -0
  15. sempy_labs/_model_auto_build.py +143 -0
  16. sempy_labs/_model_bpa.py +1354 -0
  17. sempy_labs/_model_dependencies.py +341 -0
  18. sempy_labs/_one_lake_integration.py +155 -0
  19. sempy_labs/_query_scale_out.py +447 -0
  20. sempy_labs/_refresh_semantic_model.py +184 -0
  21. sempy_labs/_tom.py +3766 -0
  22. sempy_labs/_translations.py +378 -0
  23. sempy_labs/_vertipaq.py +893 -0
  24. sempy_labs/directlake/__init__.py +45 -0
  25. sempy_labs/directlake/_directlake_schema_compare.py +110 -0
  26. sempy_labs/directlake/_directlake_schema_sync.py +128 -0
  27. sempy_labs/directlake/_fallback.py +62 -0
  28. sempy_labs/directlake/_get_directlake_lakehouse.py +69 -0
  29. sempy_labs/directlake/_get_shared_expression.py +59 -0
  30. sempy_labs/directlake/_guardrails.py +84 -0
  31. sempy_labs/directlake/_list_directlake_model_calc_tables.py +54 -0
  32. sempy_labs/directlake/_show_unsupported_directlake_objects.py +89 -0
  33. sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py +81 -0
  34. sempy_labs/directlake/_update_directlake_partition_entity.py +64 -0
  35. sempy_labs/directlake/_warm_cache.py +210 -0
  36. sempy_labs/lakehouse/__init__.py +24 -0
  37. sempy_labs/lakehouse/_get_lakehouse_columns.py +81 -0
  38. sempy_labs/lakehouse/_get_lakehouse_tables.py +250 -0
  39. sempy_labs/lakehouse/_lakehouse.py +85 -0
  40. sempy_labs/lakehouse/_shortcuts.py +296 -0
  41. sempy_labs/migration/__init__.py +29 -0
  42. sempy_labs/migration/_create_pqt_file.py +239 -0
  43. sempy_labs/migration/_migrate_calctables_to_lakehouse.py +429 -0
  44. sempy_labs/migration/_migrate_calctables_to_semantic_model.py +150 -0
  45. sempy_labs/migration/_migrate_model_objects_to_semantic_model.py +524 -0
  46. sempy_labs/migration/_migrate_tables_columns_to_semantic_model.py +165 -0
  47. sempy_labs/migration/_migration_validation.py +227 -0
  48. sempy_labs/migration/_refresh_calc_tables.py +129 -0
  49. sempy_labs/report/__init__.py +35 -0
  50. sempy_labs/report/_generate_report.py +253 -0
  51. sempy_labs/report/_report_functions.py +855 -0
  52. sempy_labs/report/_report_rebind.py +131 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: semantic-link-labs
3
+ Version: 0.4.1
4
+ Summary: Semantic Link Labs project
5
+ Author: Microsoft Corporation
6
+ License: MIT License
7
+ Project-URL: Repository, https://github.com/microsoft/semantic-link-labs.git
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Education
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Framework :: Jupyter
15
+ Requires-Python: <3.12,>=3.10
16
+ License-File: LICENSE
17
+ Requires-Dist: semantic-link-sempy >=0.7.5
18
+ Requires-Dist: anytree
19
+ Requires-Dist: powerbiclient
20
+ Provides-Extra: test
21
+ Requires-Dist: pytest >=8.2.1 ; extra == 'test'
22
+
@@ -0,0 +1,52 @@
1
+ sempy_labs/__init__.py,sha256=E_ngRG8BiZcYoW31eJrgCQnKxYNgCuB5wFCLQ1RiMcs,4104
2
+ sempy_labs/_ai.py,sha256=k3eim1yefqK1_2ba_PUMK7TkYQDyRZFY7x7sf2GL4gg,17470
3
+ sempy_labs/_clear_cache.py,sha256=io70Rb2zlgoZi4hn_Is_DLGXJ6pU-T9ReITbYnrxdrs,1317
4
+ sempy_labs/_connections.py,sha256=DNgiMbswZM-vv6qnEnZ2RhIuo1HhGobh47X2UYh2br8,7396
5
+ sempy_labs/_dax.py,sha256=Hlt0VqMtP4nc-GT6KHZWLslJOKGLrr3zGaEBIHHF8QQ,2307
6
+ sempy_labs/_generate_semantic_model.py,sha256=J42gvJ-gfWJi4E_rLcFC7F3dEBktJxUG1859XIaZ30A,9283
7
+ sempy_labs/_helper_functions.py,sha256=P5wUuJgzprGbqeDWNG4Isy9Q3Toljg_DQ2R63OQJbzY,14097
8
+ sempy_labs/_icons.py,sha256=4HrnstBzcft5bqJge4HD1H5TDm_fU8XpUxTQy_bVK6E,94
9
+ sempy_labs/_list_functions.py,sha256=LN_vYD5sHNwIhuMLP0MUQUfQaFjlTSOi0BckTEcdEuQ,43527
10
+ sempy_labs/_model_auto_build.py,sha256=qN6pvBVhxxHMerrSbsWh5P_U51ygojiBzNpD-yJacls,5150
11
+ sempy_labs/_model_bpa.py,sha256=JWlG07WpXbFoC3phzzyK2OKsy234RcoGsh_PIqade3I,63209
12
+ sempy_labs/_model_dependencies.py,sha256=pmYOK1GlsSbnGwACvJzZ0dzAbuBnpvi1BuYqW1n14QY,13185
13
+ sempy_labs/_one_lake_integration.py,sha256=jAEbXOy_NNqf4EvvKsNGzFQpfA_vnnnUn7cLCu_E4Vo,6089
14
+ sempy_labs/_query_scale_out.py,sha256=168RGrA0wJu-whOQK1HrV5B5DXTqtdZfhnkq1WtzWkU,15309
15
+ sempy_labs/_refresh_semantic_model.py,sha256=o3formawmQlI-s5c_Zy1CZg2NsMDMQI6njavrBigZ-U,6789
16
+ sempy_labs/_tom.py,sha256=2mnxay2QZyxBIaT-XGrD-Eb17ML_lZaVVbi660gTqjQ,127602
17
+ sempy_labs/_translations.py,sha256=TjuY1fvvyavyoOXngY0jMBEB3KzWYSqmBf7pZUIfQIQ,18045
18
+ sempy_labs/_vertipaq.py,sha256=SP3_K8oG9OFl-cbcfBAC_CpDnQLLP3BKjWUROCPfRaM,33274
19
+ sempy_labs/directlake/__init__.py,sha256=HbfHvDvGE4H-xSbV6JO7TUb4HoLGJf2AeuqeQxIuuJ4,1689
20
+ sempy_labs/directlake/_directlake_schema_compare.py,sha256=QMuX208FAesIQWUGF9aCvn2uK3CKvMDe5XRpWkMEQV0,4570
21
+ sempy_labs/directlake/_directlake_schema_sync.py,sha256=Ot5J74SiFVSVSet8VtdP90ZQOXWDttm2VF-dsaYNN-8,5042
22
+ sempy_labs/directlake/_fallback.py,sha256=vPwRfp2w7Ry0DN2mXN6Qib3qawdkjJND_O1QxFtZQSY,2039
23
+ sempy_labs/directlake/_get_directlake_lakehouse.py,sha256=7MvgJFHGtjc6dHThzQLNNg_LcADmRJimLPudWGBC3KI,2387
24
+ sempy_labs/directlake/_get_shared_expression.py,sha256=_AxszRnim_4JHV4qHqLIceBIdw1hT1pGL4j9hJhQ3E0,1963
25
+ sempy_labs/directlake/_guardrails.py,sha256=kA3h1Cz7woKdmgMr4ThZ9xXqDmePiCg0VC9UuExsVZc,2255
26
+ sempy_labs/directlake/_list_directlake_model_calc_tables.py,sha256=Wghslhz4kxrWa-_7ln2AqQqpekC97nNt3LQQvlkfkyA,1922
27
+ sempy_labs/directlake/_show_unsupported_directlake_objects.py,sha256=QpgCjtDhAKfyErl4o-Uwii-Yb978wPysXEbTTuQZAmM,3409
28
+ sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py,sha256=9onQ-DGy1ep6e8ecOkkfkXrUhA1Hm7pKc7x_m66i-hs,3147
29
+ sempy_labs/directlake/_update_directlake_partition_entity.py,sha256=Ic7toCam0rewnZywUBlHvCud0br-NYDTPVDQlDLRxeA,2289
30
+ sempy_labs/directlake/_warm_cache.py,sha256=Cxx4CzaCbDbTqxJC1hNE4WcSDkVd8B2wc_JUUmXJWRM,8204
31
+ sempy_labs/lakehouse/__init__.py,sha256=7f1dMjKYkP75oimCMGV3VVlrjqUAlJaczjdHEcc6z3E,629
32
+ sempy_labs/lakehouse/_get_lakehouse_columns.py,sha256=ZxUb1Nqg9d7Y5SChGsjY0u_4iJGAyLUt7LvsU4S29yo,2540
33
+ sempy_labs/lakehouse/_get_lakehouse_tables.py,sha256=IUjZhP5aocUvmvEHHkA0LZz2T8b8x6xSMbQ48QRkpG4,8970
34
+ sempy_labs/lakehouse/_lakehouse.py,sha256=-uLIz-uiR1nl7viYmj5jrm7xHDUWNGro7Hw73HWQ_4M,2767
35
+ sempy_labs/lakehouse/_shortcuts.py,sha256=f5uPmygPdUeNRKqf58VqgQoxTSpBghFtwVk8-FCoxRo,10348
36
+ sempy_labs/migration/__init__.py,sha256=Bga_WfaXH8vDHNhvchAicyGemz81xEKvCEo4Vo-M4PA,1001
37
+ sempy_labs/migration/_create_pqt_file.py,sha256=52q6XXyDlTp3PO7TsNIxko8j7BZuPaHipzHsm4Etmuk,9195
38
+ sempy_labs/migration/_migrate_calctables_to_lakehouse.py,sha256=1fvGAazqwLSXoCuSzJ3_32FONUTN5ZTyhgStJcRCIYk,20616
39
+ sempy_labs/migration/_migrate_calctables_to_semantic_model.py,sha256=klwcoYEZ-HQJ-vevPJFpmyn39nuoD3RcIPVNZxC4n30,6344
40
+ sempy_labs/migration/_migrate_model_objects_to_semantic_model.py,sha256=3-uT0ofpNYun7TiLEASg7qJEFjrOjlp5cYBqv-gXKwg,23956
41
+ sempy_labs/migration/_migrate_tables_columns_to_semantic_model.py,sha256=ef6rzduPJEAs0idE-VsJOBQGbjHQEhN35Ls0ghwleIs,7031
42
+ sempy_labs/migration/_migration_validation.py,sha256=HD-ms0ulx6KEWGL4v2zw1g03wT8ty-Rj2bulUN8iy1Q,8897
43
+ sempy_labs/migration/_refresh_calc_tables.py,sha256=ZWDoamtQTkVbdUTheQ56-_tBkDY-2flejjUKmZ27knc,6015
44
+ sempy_labs/report/__init__.py,sha256=bNZ9jsV_sqIOFez0Zqf7V3bL0mQv1ZpZ9qGUp9Krwk0,844
45
+ sempy_labs/report/_generate_report.py,sha256=CGOxPR59mNyC0tglRol_tAnwsOrwee0XkuMewNCpNvo,8414
46
+ sempy_labs/report/_report_functions.py,sha256=ZpJrONX2beRL5OBwXLn2oc7mlGgL_-dim4dnKEELNIs,30021
47
+ sempy_labs/report/_report_rebind.py,sha256=Xx1q63Wbyt-xWPd2eyQdPvPMo4FWGwvE1dKnU7PMN0o,4649
48
+ semantic_link_labs-0.4.1.dist-info/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
49
+ semantic_link_labs-0.4.1.dist-info/METADATA,sha256=wsnrUTrctyd4VWyYAouMk8ZFZ62EdF0WpD8iLKfd0Uk,764
50
+ semantic_link_labs-0.4.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
51
+ semantic_link_labs-0.4.1.dist-info/top_level.txt,sha256=kiQX1y42Dbein1l3Q8jMUYyRulDjdlc2tMepvtrvixQ,11
52
+ semantic_link_labs-0.4.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ sempy_labs
sempy_labs/__init__.py ADDED
@@ -0,0 +1,154 @@
1
+ from sempy_labs._clear_cache import clear_cache
2
+
3
+ # from sempy_labs._connections import (
4
+ # create_connection_cloud,
5
+ # create_connection_vnet,
6
+ # create_connection_on_prem
7
+ # )
8
+ from sempy_labs._dax import run_dax
9
+ from sempy_labs._generate_semantic_model import (
10
+ create_blank_semantic_model,
11
+ create_semantic_model_from_bim,
12
+ # deploy_semantic_model,
13
+ get_semantic_model_bim,
14
+ )
15
+ from sempy_labs._list_functions import (
16
+ get_object_level_security,
17
+ # list_annotations,
18
+ # list_columns,
19
+ list_dashboards,
20
+ list_dataflow_storage_accounts,
21
+ # list_datamarts,
22
+ # list_datapipelines,
23
+ # list_eventstreams,
24
+ # list_kpis,
25
+ # list_kqldatabases,
26
+ # list_kqlquerysets,
27
+ list_lakehouses,
28
+ # list_mirroredwarehouses,
29
+ # list_mlexperiments,
30
+ # list_mlmodels,
31
+ # list_relationships,
32
+ # list_sqlendpoints,
33
+ # list_tables,
34
+ list_warehouses,
35
+ # list_workspace_role_assignments,
36
+ create_warehouse,
37
+ update_item,
38
+ )
39
+
40
+ from sempy_labs._helper_functions import (
41
+ create_abfss_path,
42
+ format_dax_object_name,
43
+ create_relationship_name,
44
+ save_as_delta_table,
45
+ generate_embedded_filter,
46
+ get_direct_lake_sql_endpoint,
47
+ resolve_lakehouse_id,
48
+ resolve_lakehouse_name,
49
+ resolve_dataset_id,
50
+ resolve_dataset_name,
51
+ resolve_report_id,
52
+ resolve_report_name,
53
+ # language_validate
54
+ )
55
+ from sempy_labs._model_auto_build import model_auto_build
56
+ from sempy_labs._model_bpa import model_bpa_rules, run_model_bpa
57
+ from sempy_labs._model_dependencies import (
58
+ measure_dependency_tree,
59
+ get_measure_dependencies,
60
+ get_model_calc_dependencies,
61
+ )
62
+ from sempy_labs._one_lake_integration import (
63
+ export_model_to_onelake,
64
+ )
65
+
66
+ # from sempy_labs._query_scale_out import (
67
+ # qso_sync,
68
+ # qso_sync_status,
69
+ # set_qso,
70
+ # list_qso_settings,
71
+ # disable_qso,
72
+ # set_semantic_model_storage_format,
73
+ # set_workspace_default_storage_format,
74
+ # )
75
+ from sempy_labs._refresh_semantic_model import (
76
+ refresh_semantic_model,
77
+ cancel_dataset_refresh,
78
+ )
79
+ from sempy_labs._translations import translate_semantic_model
80
+ from sempy_labs._vertipaq import (
81
+ vertipaq_analyzer,
82
+ # visualize_vertipaq,
83
+ import_vertipaq_analyzer,
84
+ )
85
+ from sempy_labs._tom import TOMWrapper, connect_semantic_model
86
+
87
+ __all__ = [
88
+ "clear_cache",
89
+ # create_connection_cloud,
90
+ # create_connection_vnet,
91
+ # create_connection_on_prem,
92
+ "run_dax",
93
+ "create_blank_semantic_model",
94
+ "create_semantic_model_from_bim",
95
+ #'deploy_semantic_model',
96
+ "get_semantic_model_bim",
97
+ "get_object_level_security",
98
+ #'list_annotations',
99
+ #'list_columns',
100
+ "list_dashboards",
101
+ "list_dataflow_storage_accounts",
102
+ #'list_datamarts',
103
+ #'list_datapipelines',
104
+ #'list_eventstreams',
105
+ #'list_kpis',
106
+ #'list_kqldatabases',
107
+ #'list_kqlquerysets',
108
+ "list_lakehouses",
109
+ #'list_mirroredwarehouses',
110
+ #'list_mlexperiments',
111
+ #'list_mlmodels',
112
+ #'list_relationships',
113
+ #'list_sqlendpoints',
114
+ #'list_tables',
115
+ "list_warehouses",
116
+ #'list_workspace_role_assignments',
117
+ "create_warehouse",
118
+ "update_item",
119
+ "create_abfss_path",
120
+ "format_dax_object_name",
121
+ "create_relationship_name",
122
+ "save_as_delta_table",
123
+ "generate_embedded_filter",
124
+ "get_direct_lake_sql_endpoint",
125
+ "resolve_lakehouse_id",
126
+ "resolve_lakehouse_name",
127
+ "resolve_dataset_id",
128
+ "resolve_dataset_name",
129
+ "resolve_report_id",
130
+ "resolve_report_name",
131
+ #'language_validate',
132
+ "model_auto_build",
133
+ "model_bpa_rules",
134
+ "run_model_bpa",
135
+ "measure_dependency_tree",
136
+ "get_measure_dependencies",
137
+ "get_model_calc_dependencies",
138
+ "export_model_to_onelake",
139
+ #'qso_sync',
140
+ #'qso_sync_status',
141
+ #'set_qso',
142
+ #'list_qso_settings',
143
+ #'disable_qso',
144
+ #'set_semantic_model_storage_format',
145
+ #'set_workspace_default_storage_format',
146
+ "refresh_semantic_model",
147
+ "cancel_dataset_refresh",
148
+ "translate_semantic_model",
149
+ "vertipaq_analyzer",
150
+ #'visualize_vertipaq',
151
+ "import_vertipaq_analyzer",
152
+ "TOMWrapper",
153
+ "connect_semantic_model",
154
+ ]