sapiopycommons 2025.5.30a548__py3-none-any.whl → 2025.6.3a554__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 sapiopycommons might be problematic. Click here for more details.
- sapiopycommons/general/sapio_links.py +4 -12
- {sapiopycommons-2025.5.30a548.dist-info → sapiopycommons-2025.6.3a554.dist-info}/METADATA +1 -1
- {sapiopycommons-2025.5.30a548.dist-info → sapiopycommons-2025.6.3a554.dist-info}/RECORD +5 -8
- sapiopycommons/ai/__init__.py +0 -0
- sapiopycommons/ai/tool_of_tools.py +0 -917
- sapiopycommons/general/html_formatter.py +0 -456
- {sapiopycommons-2025.5.30a548.dist-info → sapiopycommons-2025.6.3a554.dist-info}/WHEEL +0 -0
- {sapiopycommons-2025.5.30a548.dist-info → sapiopycommons-2025.6.3a554.dist-info}/licenses/LICENSE +0 -0
|
@@ -10,8 +10,7 @@ class SapioNavigationLinker:
|
|
|
10
10
|
Given a URL to a system's webservice API (example: https://company.exemplareln.com/webservice/api), construct
|
|
11
11
|
URLs for navigation links to various locations in the system.
|
|
12
12
|
"""
|
|
13
|
-
|
|
14
|
-
webservice_url: str
|
|
13
|
+
base_url: str
|
|
15
14
|
|
|
16
15
|
def __init__(self, url: str | SapioUser | SapioWebhookContext):
|
|
17
16
|
"""
|
|
@@ -22,14 +21,7 @@ class SapioNavigationLinker:
|
|
|
22
21
|
url = url.user.url
|
|
23
22
|
elif isinstance(url, SapioUser):
|
|
24
23
|
url = url.url
|
|
25
|
-
self.
|
|
26
|
-
self.client_url = url.rstrip("/").replace('webservice/api', 'veloxClient')
|
|
27
|
-
|
|
28
|
-
def homepage(self) -> str:
|
|
29
|
-
"""
|
|
30
|
-
:return: A URL for navigating to the system's homepage.
|
|
31
|
-
"""
|
|
32
|
-
return self.client_url + "/#view=homepage"
|
|
24
|
+
self.base_url = url.rstrip("/").replace('webservice/api', 'veloxClient')
|
|
33
25
|
|
|
34
26
|
def data_record(self, record_identifier: RecordIdentifier, data_type_name: DataTypeIdentifier | None = None) -> str:
|
|
35
27
|
"""
|
|
@@ -47,7 +39,7 @@ class SapioNavigationLinker:
|
|
|
47
39
|
if not data_type_name:
|
|
48
40
|
raise SapioException("Unable to create a data record link without a data type name. "
|
|
49
41
|
"Only a record ID was provided.")
|
|
50
|
-
return self.
|
|
42
|
+
return self.base_url + f"/#dataType={data_type_name};recordId={record_id};view=dataRecord"
|
|
51
43
|
|
|
52
44
|
def experiment(self, experiment: ExperimentIdentifier) -> str:
|
|
53
45
|
"""
|
|
@@ -55,4 +47,4 @@ class SapioNavigationLinker:
|
|
|
55
47
|
object, experiment protocol, or a notebook ID.
|
|
56
48
|
:return: A URL for navigating to the input experiment.
|
|
57
49
|
"""
|
|
58
|
-
return self.
|
|
50
|
+
return self.base_url + f"/#notebookExperimentId={AliasUtil.to_notebook_id(experiment)};view=eln"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: sapiopycommons
|
|
3
|
-
Version: 2025.
|
|
3
|
+
Version: 2025.6.3a554
|
|
4
4
|
Summary: Official Sapio Python API Utilities Package
|
|
5
5
|
Project-URL: Homepage, https://github.com/sapiosciences
|
|
6
6
|
Author-email: Jonathan Steck <jsteck@sapiosciences.com>, Yechen Qiao <yqiao@sapiosciences.com>
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
sapiopycommons/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
sapiopycommons/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
sapiopycommons/ai/tool_of_tools.py,sha256=zYmQ4rNX-qYQnc-vNDnYZjtv9JgmQAmVVuHfVOdBF3w,46984
|
|
4
2
|
sapiopycommons/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
3
|
sapiopycommons/callbacks/callback_util.py,sha256=lnrwG9hCVmA2GuzxlRrGKw7Eq5hzz7GBZvizgcKkSX0,134996
|
|
6
4
|
sapiopycommons/callbacks/field_builder.py,sha256=rnIP-RJafk3mZlAx1eJ8a0eSW9Ps_L6_WadCmusnENw,38772
|
|
@@ -42,9 +40,8 @@ sapiopycommons/general/custom_report_util.py,sha256=NwwmejSQLwSbrndEk1gPyFNYk9GZ
|
|
|
42
40
|
sapiopycommons/general/data_structure_util.py,sha256=fbQR_Fh4Scg67IpFPbQW9wVLw1oxlYxqp4LjBRTpjgU,4702
|
|
43
41
|
sapiopycommons/general/directive_util.py,sha256=7SeQrd2Ye5JHlXZtJZaVGgtaSLdq_Vm9EObuxf44Pz8,3905
|
|
44
42
|
sapiopycommons/general/exceptions.py,sha256=aPlzK1cvxeMU5UsokYlLrIBGltUfJZ7LH8zvLh9DxpI,3233
|
|
45
|
-
sapiopycommons/general/html_formatter.py,sha256=HE3OeGgwOw6x53zGSc4-UzP4-JoOmQIz3pX-DzNVg94,17138
|
|
46
43
|
sapiopycommons/general/popup_util.py,sha256=HKILegU1uCL_6abNlNL0Wn3xgX2JNa_kJeq7e5CZu6Q,31923
|
|
47
|
-
sapiopycommons/general/sapio_links.py,sha256=
|
|
44
|
+
sapiopycommons/general/sapio_links.py,sha256=o9Z-8y2rz6AI0Cy6tq58ElPge9RBnisGc9NyccbaJxs,2610
|
|
48
45
|
sapiopycommons/general/storage_util.py,sha256=ovmK_jN7v09BoX07XxwShpBUC5WYQOM7dbKV_VeLXJU,8892
|
|
49
46
|
sapiopycommons/general/time_util.py,sha256=jU1urPoZRv6evNucR0-288EyT4PrsDpCr-H1-7BKq9A,12363
|
|
50
47
|
sapiopycommons/multimodal/multimodal.py,sha256=PFaGJPbKvW__tnxb8KkgkJZOKjQdgxF_kGfD5chet1s,6779
|
|
@@ -64,7 +61,7 @@ sapiopycommons/webhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
64
61
|
sapiopycommons/webhook/webhook_context.py,sha256=D793uLsb1691SalaPnBUk3rOSxn_hYLhdvkaIxjNXss,1909
|
|
65
62
|
sapiopycommons/webhook/webhook_handlers.py,sha256=tUVNCw05CDGu1gFDm2g558hX_O203WVm_n__ojjoRRM,39841
|
|
66
63
|
sapiopycommons/webhook/webservice_handlers.py,sha256=tyaYGG1-v_JJrJHZ6cy5mGCxX9z1foLw7pM4MDJlFxs,14297
|
|
67
|
-
sapiopycommons-2025.
|
|
68
|
-
sapiopycommons-2025.
|
|
69
|
-
sapiopycommons-2025.
|
|
70
|
-
sapiopycommons-2025.
|
|
64
|
+
sapiopycommons-2025.6.3a554.dist-info/METADATA,sha256=G4UAzgxHDlsUMkvu9hrcE0ACXUal20lu5SBTjBf6lJ4,3142
|
|
65
|
+
sapiopycommons-2025.6.3a554.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
66
|
+
sapiopycommons-2025.6.3a554.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
|
|
67
|
+
sapiopycommons-2025.6.3a554.dist-info/RECORD,,
|
sapiopycommons/ai/__init__.py
DELETED
|
File without changes
|