sapiopycommons 2024.6.11a252__tar.gz → 2024.6.18a254__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 sapiopycommons might be problematic. Click here for more details.
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/PKG-INFO +1 -1
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/pyproject.toml +1 -1
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/multimodal/multimodal.py +0 -13
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/multimodal/multimodal_data.py +9 -31
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/.gitignore +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/LICENSE +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/README.md +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/callbacks/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/callbacks/callback_util.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/chem/IndigoMolecules.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/chem/Molecules.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/chem/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/datatype/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/datatype/attachment_util.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/eln/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/eln/experiment_handler.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/eln/plate_designer.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/complex_data_loader.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/file_bridge.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/file_bridge_handler.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/file_data_handler.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/file_util.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/file_validator.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/file_writer.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/aliases.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/custom_report_util.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/exceptions.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/popup_util.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/storage_util.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/time_util.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/processtracking/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/processtracking/endpoints.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/recordmodel/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/recordmodel/record_handler.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/rules/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/rules/eln_rule_handler.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/rules/on_save_rule_handler.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/webhook/__init__.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/webhook/webhook_handlers.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/tests/_do_not_add_init_py_here +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/tests/bio_reg_test.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/tests/chem_test.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/tests/data_type_models.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/tests/kappa.chains.fasta +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/tests/mafft_test.py +0 -0
- {sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/tests/test.gb +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: sapiopycommons
|
|
3
|
-
Version: 2024.6.
|
|
3
|
+
Version: 2024.6.18a254
|
|
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>
|
|
@@ -46,19 +46,6 @@ class MultiModalManager:
|
|
|
46
46
|
self._user.raise_for_status(response)
|
|
47
47
|
return response.json()
|
|
48
48
|
|
|
49
|
-
def register_interactively(self, request: ChemInteractiveRegisterRequestPojo):
|
|
50
|
-
"""
|
|
51
|
-
Prompt user interactively to load the provided file data.
|
|
52
|
-
User will be able to select or define a field map for the assay data included.
|
|
53
|
-
User will also be able to define which one is the SMILES column if csv.
|
|
54
|
-
"""
|
|
55
|
-
# TODO pending client_callback enablement on the webhook => webservice endpoint route.
|
|
56
|
-
payload = dumps(request, ChemInteractiveRegisterRequestPojo)
|
|
57
|
-
response = self._user.plugin_post("chemistry/register_interactively",
|
|
58
|
-
payload=payload, is_payload_plain_text=True)
|
|
59
|
-
self._user.raise_for_status(response)
|
|
60
|
-
return loads(response.text, ChemCompleteImportPojo)
|
|
61
|
-
|
|
62
49
|
def load_compounds(self, request: CompoundLoadRequestPojo):
|
|
63
50
|
"""
|
|
64
51
|
Load compounds from the provided data here.
|
|
@@ -56,18 +56,6 @@ class PyCompound:
|
|
|
56
56
|
props: dict[str, object] | None
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
class ChemDataType(Enum):
|
|
60
|
-
CompoundPart = 'CompoundPart'
|
|
61
|
-
ChemicalReagentPart = 'ChemicalReagentPart'
|
|
62
|
-
|
|
63
|
-
def __init__(self, data_type_name: str):
|
|
64
|
-
self._data_type_name = data_type_name
|
|
65
|
-
|
|
66
|
-
@property
|
|
67
|
-
def data_type_name(self):
|
|
68
|
-
return self._data_type_name
|
|
69
|
-
|
|
70
|
-
|
|
71
59
|
class ChemFileType(Enum):
|
|
72
60
|
CSV = 0
|
|
73
61
|
SDF = 1
|
|
@@ -133,12 +121,12 @@ class ChemCompleteImportPojo:
|
|
|
133
121
|
|
|
134
122
|
@dataclass
|
|
135
123
|
class ChemInteractiveRegisterRequestPojo:
|
|
136
|
-
dataType:
|
|
124
|
+
dataType: str
|
|
137
125
|
fileType: ChemFileType
|
|
138
126
|
fileDataEncodedBase64: str | None
|
|
139
127
|
addingItems: bool
|
|
140
128
|
|
|
141
|
-
def __init__(self, data_type:
|
|
129
|
+
def __init__(self, data_type: str, file_type: ChemFileType, is_adding_items: bool, file_data: bytes):
|
|
142
130
|
self.dataType = data_type
|
|
143
131
|
self.fileType = file_type
|
|
144
132
|
self.addingItems = is_adding_items
|
|
@@ -156,12 +144,12 @@ class CompoundLoadRequestPojo:
|
|
|
156
144
|
dataList: If the source data is not a file, here you specify a list of string describing molecule for that src.
|
|
157
145
|
fileDataBase64: If the source data is a file, the file's base64 data content.
|
|
158
146
|
"""
|
|
159
|
-
dataType:
|
|
147
|
+
dataType: str
|
|
160
148
|
loadType: ChemLoadType
|
|
161
149
|
dataList: list[str] | None
|
|
162
150
|
fileDataBase64: str | None
|
|
163
151
|
|
|
164
|
-
def __init__(self, data_type:
|
|
152
|
+
def __init__(self, data_type: str, load_type: ChemLoadType, data_list: list[str] | None = None,
|
|
165
153
|
file_data: bytes | None = None):
|
|
166
154
|
self.dataType = data_type
|
|
167
155
|
self.loadType = load_type
|
|
@@ -184,10 +172,10 @@ class ChemRegisterRequestPojo:
|
|
|
184
172
|
dataType: The data type of records to be registered in Sapio.
|
|
185
173
|
registrationList: This list must be of correct data structure suitable for the type. For example, for CompoundPart data type the canonical form must be resolved by earlier call.
|
|
186
174
|
"""
|
|
187
|
-
dataType:
|
|
175
|
+
dataType: str
|
|
188
176
|
registrationList: list[PyCompound]
|
|
189
177
|
|
|
190
|
-
def __init__(self, data_type:
|
|
178
|
+
def __init__(self, data_type: str, registration_list: list[PyCompound]):
|
|
191
179
|
self.dataType = data_type
|
|
192
180
|
self.registrationList = registration_list
|
|
193
181
|
|
|
@@ -228,16 +216,6 @@ class PyIndigoReactionPojo:
|
|
|
228
216
|
reactionRenderRxn: str
|
|
229
217
|
|
|
230
218
|
|
|
231
|
-
class CartridgeMolJoinMethod(Enum):
|
|
232
|
-
"""
|
|
233
|
-
The structure search join method to filter results against Sapio registry.
|
|
234
|
-
Since we have multiple registries in Sapio, you will need to specify which one to join against.
|
|
235
|
-
"""
|
|
236
|
-
COMPOUND_REGISTRY = 0
|
|
237
|
-
REAGENT_REGISTRY = 1
|
|
238
|
-
HELM_STRUCTURE = 2
|
|
239
|
-
|
|
240
|
-
|
|
241
219
|
@dataclass
|
|
242
220
|
class ChemQuickSearchContextData:
|
|
243
221
|
"""
|
|
@@ -250,7 +228,7 @@ class ChemQuickSearchContextData:
|
|
|
250
228
|
nextPageSearchAfter: str | None
|
|
251
229
|
pitId: str | None
|
|
252
230
|
query: str | None
|
|
253
|
-
|
|
231
|
+
joinSapioPartType: str | None
|
|
254
232
|
simUpperLimit: float | None
|
|
255
233
|
|
|
256
234
|
|
|
@@ -269,11 +247,11 @@ class ChemSearchRequestPojo:
|
|
|
269
247
|
"""
|
|
270
248
|
searchStr: str
|
|
271
249
|
searchType: ChemSearchType
|
|
272
|
-
|
|
250
|
+
joinSapioType: str | None
|
|
273
251
|
contextData: ChemQuickSearchContextData | None
|
|
274
252
|
simSearchUpperLimit: float | None
|
|
275
253
|
|
|
276
|
-
def __init__(self, search_str: str, search_type: ChemSearchType, join_method:
|
|
254
|
+
def __init__(self, search_str: str, search_type: ChemSearchType, join_method: str | None = None,
|
|
277
255
|
context_data: ChemQuickSearchContextData | None = None, sim_search_upper: float | None = None):
|
|
278
256
|
self.searchStr = search_str
|
|
279
257
|
self.searchType = search_type
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/chem/Molecules.py
RENAMED
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/chem/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/eln/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/files/file_util.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/__init__.py
RENAMED
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/general/aliases.py
RENAMED
|
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
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/rules/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/src/sapiopycommons/webhook/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{sapiopycommons-2024.6.11a252 → sapiopycommons-2024.6.18a254}/tests/_do_not_add_init_py_here
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|