vysion 2.0.4__tar.gz → 2.0.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.
- {vysion-2.0.4 → vysion-2.0.6}/PKG-INFO +3 -3
- {vysion-2.0.4 → vysion-2.0.6}/README.md +1 -1
- {vysion-2.0.4 → vysion-2.0.6}/pyproject.toml +2 -2
- {vysion-2.0.4 → vysion-2.0.6}/vysion/client/client.py +9 -6
- {vysion-2.0.4 → vysion-2.0.6}/vysion/version.py +1 -1
- {vysion-2.0.4 → vysion-2.0.6}/LICENSE +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/__init__.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/client/__init__.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/client/error.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/dto/__init__.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/dto/dto.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/dto/tag.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/dto/util.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/model/__init__.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/model/enum/__init__.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/model/enum/languages.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/model/enum/networks.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/model/enum/ransom_groups.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/model/enum/services.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/taxonomy/__init__.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/taxonomy/flavours.py +0 -0
- {vysion-2.0.4 → vysion-2.0.6}/vysion/taxonomy/taxonomy.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vysion
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
4
4
|
Summary: The official Python client library for Vysion
|
|
5
5
|
Home-page: https://vysion.ai
|
|
6
6
|
License: Apache-2.0
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
18
|
Requires-Dist: pydantic (>=2.0.1,<3.0.0)
|
|
19
|
-
Requires-Dist: pymisp (
|
|
19
|
+
Requires-Dist: pymisp (>=2.4.194,<3.0.0)
|
|
20
20
|
Requires-Dist: requests (>=2.28.1,<3.0.0)
|
|
21
21
|
Requires-Dist: softenum (==1.0.1)
|
|
22
22
|
Project-URL: Documentation, https://developers.vysion.ai
|
|
@@ -29,7 +29,7 @@ Welcome to the PyPi webpage for Vysion, our implementation as a Python library t
|
|
|
29
29
|
|
|
30
30
|
You can request a demo for the web app or an API-key to use in this library at [vysion.ai](https://vysion.ai).
|
|
31
31
|
|
|
32
|
-
Latest version: [2.0.
|
|
32
|
+
Latest version: [2.0.6](https://pypi.org/project/vysion/)
|
|
33
33
|
|
|
34
34
|
You can visit [the documentation](https://developers.vysion.ai/?python) for more information on the searches and requests performed with the library or directly on the API.
|
|
35
35
|
|
|
@@ -4,7 +4,7 @@ Welcome to the PyPi webpage for Vysion, our implementation as a Python library t
|
|
|
4
4
|
|
|
5
5
|
You can request a demo for the web app or an API-key to use in this library at [vysion.ai](https://vysion.ai).
|
|
6
6
|
|
|
7
|
-
Latest version: [2.0.
|
|
7
|
+
Latest version: [2.0.6](https://pypi.org/project/vysion/)
|
|
8
8
|
|
|
9
9
|
You can visit [the documentation](https://developers.vysion.ai/?python) for more information on the searches and requests performed with the library or directly on the API.
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "vysion"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.6"
|
|
4
4
|
description = "The official Python client library for Vysion"
|
|
5
5
|
homepage = "https://vysion.ai"
|
|
6
6
|
repository = "https://gitlab.com/byronlabs/vysion/vysion-py"
|
|
@@ -23,7 +23,7 @@ python = "^3.8.0"
|
|
|
23
23
|
pydantic = "^2.0.1"
|
|
24
24
|
softenum = "1.0.1"
|
|
25
25
|
requests = "^2.28.1"
|
|
26
|
-
pymisp = "2.4.194"
|
|
26
|
+
pymisp = "^2.4.194"
|
|
27
27
|
|
|
28
28
|
[tool.poetry.dev-dependencies]
|
|
29
29
|
pytest = "7.1.2"
|
|
@@ -116,7 +116,7 @@ class BaseClient:
|
|
|
116
116
|
query = "?" + urlencode(query_params_initialzed)
|
|
117
117
|
return urljoin(base, query)
|
|
118
118
|
|
|
119
|
-
def _make_request(self, url: str) -> VysionResponse:
|
|
119
|
+
def _make_request(self, url: str, expect_json: bool = True) -> VysionResponse:
|
|
120
120
|
session = self.__get_session__()
|
|
121
121
|
r = session.get(url)
|
|
122
122
|
|
|
@@ -132,7 +132,10 @@ class BaseClient:
|
|
|
132
132
|
|
|
133
133
|
raise APIError(code, message)
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
if expect_json:
|
|
136
|
+
result = r.json()
|
|
137
|
+
else:
|
|
138
|
+
result = r
|
|
136
139
|
|
|
137
140
|
return result
|
|
138
141
|
|
|
@@ -238,8 +241,8 @@ class Client(BaseClient):
|
|
|
238
241
|
gte: datetime = None,
|
|
239
242
|
) -> VysionResponse[DocumentHit]:
|
|
240
243
|
url = self._build_api_url__(
|
|
241
|
-
"document/phone",
|
|
242
|
-
|
|
244
|
+
"document/phone/" + country_code,
|
|
245
|
+
phone_number,
|
|
243
246
|
page=page,
|
|
244
247
|
lte=lte,
|
|
245
248
|
gte=gte,
|
|
@@ -258,7 +261,7 @@ class Client(BaseClient):
|
|
|
258
261
|
gte: datetime = None,
|
|
259
262
|
) -> VysionResponse[DocumentHit]:
|
|
260
263
|
url = self._build_api_url__(
|
|
261
|
-
"document/wallet"
|
|
264
|
+
"document/wallet/" + chain, address, page=page, lte=lte, gte=gte
|
|
262
265
|
)
|
|
263
266
|
|
|
264
267
|
result = VysionResponse[DocumentHit].model_validate(self._make_request(url))
|
|
@@ -268,7 +271,7 @@ class Client(BaseClient):
|
|
|
268
271
|
def get_document_html(self, document_id: str) -> str:
|
|
269
272
|
url = self._build_api_url__("html", document_id)
|
|
270
273
|
|
|
271
|
-
result =
|
|
274
|
+
result = self._make_request(url, expect_json=False)
|
|
272
275
|
|
|
273
276
|
return result.text
|
|
274
277
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|