reait 1.2.5__py3-none-any.whl → 1.2.6__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.
reait/api.py CHANGED
@@ -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.5"
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reait
3
- Version: 1.2.5
3
+ Version: 1.2.6
4
4
  Summary: RevEng.AI Toolkit and Python API
5
5
  Home-page: https://github.com/RevEng-AI/reait
6
6
  Author: James Patrick-Evans
@@ -0,0 +1,9 @@
1
+ reait/__init__.py,sha256=EoVCKwQwWxEBfwe-iEE5rFKvhi1gPEA8NPhnzXJTb2Y,42
2
+ reait/api.py,sha256=A8-kBfntWWFUQAl2k5F_4aDZXBGkddkZrh9n6Ur-_Es,39376
3
+ reait/main.py,sha256=rSzEowDrK2KFmmLdbRNVsfVpvMLZNXA3fQOrBw03T4Y,20396
4
+ reait-1.2.6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
5
+ reait-1.2.6.dist-info/METADATA,sha256=jzjFT9f03I-waAVmlleiOAPbxb2YShqFSeZodopmcjw,47663
6
+ reait-1.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ reait-1.2.6.dist-info/entry_points.txt,sha256=8Ek11o7a6O8hjBFw6-1vmkBfbv_45O2vOKj5CDUB1e4,42
8
+ reait-1.2.6.dist-info/top_level.txt,sha256=EnJssmctKe3Ugjcmu66L9_Q4elLdAwaXK6M8E6E8f_M,6
9
+ reait-1.2.6.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- reait/__init__.py,sha256=EoVCKwQwWxEBfwe-iEE5rFKvhi1gPEA8NPhnzXJTb2Y,42
2
- reait/api.py,sha256=9q0kwR6S72El7M6gxUZnNh7laoprqoixAW6Vq1_d36g,39035
3
- reait/main.py,sha256=rSzEowDrK2KFmmLdbRNVsfVpvMLZNXA3fQOrBw03T4Y,20396
4
- reait-1.2.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
5
- reait-1.2.5.dist-info/METADATA,sha256=ZCFG-8okxHlrktKhtaV02ZEbEzc87rRSmv7138p7zBs,47663
6
- reait-1.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- reait-1.2.5.dist-info/entry_points.txt,sha256=8Ek11o7a6O8hjBFw6-1vmkBfbv_45O2vOKj5CDUB1e4,42
8
- reait-1.2.5.dist-info/top_level.txt,sha256=EnJssmctKe3Ugjcmu66L9_Q4elLdAwaXK6M8E6E8f_M,6
9
- reait-1.2.5.dist-info/RECORD,,
File without changes