reait 1.2.4__tar.gz → 1.2.6__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.
- {reait-1.2.4 → reait-1.2.6}/PKG-INFO +1 -1
- {reait-1.2.4 → reait-1.2.6}/pyproject.toml +1 -1
- {reait-1.2.4 → reait-1.2.6}/src/reait/api.py +17 -1
- {reait-1.2.4 → reait-1.2.6}/src/reait.egg-info/PKG-INFO +1 -1
- {reait-1.2.4 → reait-1.2.6}/LICENSE +0 -0
- {reait-1.2.4 → reait-1.2.6}/README.md +0 -0
- {reait-1.2.4 → reait-1.2.6}/requirements.txt +0 -0
- {reait-1.2.4 → reait-1.2.6}/setup.cfg +0 -0
- {reait-1.2.4 → reait-1.2.6}/setup.py +0 -0
- {reait-1.2.4 → reait-1.2.6}/src/reait/__init__.py +0 -0
- {reait-1.2.4 → reait-1.2.6}/src/reait/main.py +0 -0
- {reait-1.2.4 → reait-1.2.6}/src/reait.egg-info/SOURCES.txt +0 -0
- {reait-1.2.4 → reait-1.2.6}/src/reait.egg-info/dependency_links.txt +0 -0
- {reait-1.2.4 → reait-1.2.6}/src/reait.egg-info/entry_points.txt +0 -0
- {reait-1.2.4 → reait-1.2.6}/src/reait.egg-info/requires.txt +0 -0
- {reait-1.2.4 → reait-1.2.6}/src/reait.egg-info/top_level.txt +0 -0
- {reait-1.2.4 → reait-1.2.6}/tests/test_apis.py +0 -0
- {reait-1.2.4 → reait-1.2.6}/tests/test_reait.py +0 -0
@@ -15,7 +15,7 @@ from pandas import DataFrame
|
|
15
15
|
from requests import request, Response, HTTPError
|
16
16
|
from sklearn.metrics.pairwise import cosine_similarity
|
17
17
|
|
18
|
-
__version__ = "1.2.
|
18
|
+
__version__ = "1.2.6"
|
19
19
|
|
20
20
|
re_conf = {
|
21
21
|
"apikey": environ.get("REAI_API_KEY", ""),
|
@@ -230,6 +230,16 @@ def RE_delete(fpath: str, binary_id: int = 0) -> Response:
|
|
230
230
|
res.raise_for_status()
|
231
231
|
return res
|
232
232
|
|
233
|
+
def RE_auto_unstrip(analysis_id, min_similarity: float = 0.9, apply: bool = False) -> Response:
|
234
|
+
data = {
|
235
|
+
"min_similarity": min_similarity,
|
236
|
+
"apply": apply
|
237
|
+
}
|
238
|
+
res: Response = reveng_req(requests.post, f"/v2/analyses/{analysis_id}/functions/auto-unstrip", json_data=data)
|
239
|
+
|
240
|
+
res.raise_for_status()
|
241
|
+
return res
|
242
|
+
|
233
243
|
|
234
244
|
def RE_analyse(
|
235
245
|
fpath: str,
|
@@ -1202,6 +1212,12 @@ def RE_models() -> Response:
|
|
1202
1212
|
res.raise_for_status()
|
1203
1213
|
return res
|
1204
1214
|
|
1215
|
+
def RE_models_v2() -> Response:
|
1216
|
+
res: Response = reveng_req(requests.get, "v2/models")
|
1217
|
+
|
1218
|
+
res.raise_for_status()
|
1219
|
+
return res
|
1220
|
+
|
1205
1221
|
|
1206
1222
|
# NOTE: newest API as per documentation still using /v1/ prefix
|
1207
1223
|
def RE_functions_dump(function_ids: list[int]) -> Response:
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|