vysion 1.0.15__tar.gz → 1.0.16__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-1.0.15 → vysion-1.0.16}/PKG-INFO +3 -3
- {vysion-1.0.15 → vysion-1.0.16}/README.md +2 -2
- {vysion-1.0.15 → vysion-1.0.16}/pyproject.toml +1 -1
- {vysion-1.0.15 → vysion-1.0.16}/vysion/client/client.py +9 -7
- {vysion-1.0.15 → vysion-1.0.16}/LICENSE +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/__init__.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/client/__init__.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/client/error.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/dto/__init__.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/dto/dto.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/dto/tag.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/dto/util.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/model/__init__.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/model/enum/__init__.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/model/enum/languages.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/model/enum/networks.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/model/enum/ransom_groups.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/model/enum/services.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/model/model.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/taxonomy/__init__.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/taxonomy/flavours.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/taxonomy/taxonomy.py +0 -0
- {vysion-1.0.15 → vysion-1.0.16}/vysion/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vysion
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.16
|
|
4
4
|
Summary: The official Python client library for Vysion
|
|
5
5
|
Home-page: https://vysion.ai
|
|
6
6
|
License: Apache-2.0
|
|
@@ -29,9 +29,9 @@ 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: [1.0.
|
|
32
|
+
Latest version: [1.0.16](https://pypi.org/project/vysion/)
|
|
33
33
|
|
|
34
|
-
You can visit [the documentation](https://developers.vysion.ai/?python)
|
|
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
|
|
|
36
36
|
### Taxonomy
|
|
37
37
|
|
|
@@ -4,9 +4,9 @@ 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: [1.0.
|
|
7
|
+
Latest version: [1.0.16](https://pypi.org/project/vysion/)
|
|
8
8
|
|
|
9
|
-
You can visit [the documentation](https://developers.vysion.ai/?python)
|
|
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
|
|
|
11
11
|
### Taxonomy
|
|
12
12
|
|
|
@@ -90,12 +90,15 @@ class BaseClient:
|
|
|
90
90
|
return api_host
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
def _build_api_url__(self, endpoint, param, **query_params):
|
|
93
|
+
def _build_api_url__(self, endpoint, param=None, **query_params):
|
|
94
94
|
|
|
95
|
-
param = quote(param, safe='')
|
|
96
95
|
_API_HOST = self._get_api_host()
|
|
97
96
|
_BASE_API = urljoin(_API_HOST, _ENDPOINT_PREFIX)
|
|
98
|
-
base
|
|
97
|
+
base= urljoin(_BASE_API, endpoint)
|
|
98
|
+
|
|
99
|
+
if param is not None:
|
|
100
|
+
param = quote(param, safe='')
|
|
101
|
+
base = urljoin(_BASE_API, f"{endpoint}/{param}")
|
|
99
102
|
|
|
100
103
|
query_params_initialzed = query_params.copy()
|
|
101
104
|
|
|
@@ -110,7 +113,6 @@ class BaseClient:
|
|
|
110
113
|
del query_params_initialzed[i]
|
|
111
114
|
|
|
112
115
|
query = "?" + urlencode(query_params_initialzed)
|
|
113
|
-
|
|
114
116
|
return urljoin(base, query)
|
|
115
117
|
|
|
116
118
|
def _make_request(self, url: str) -> dto.VysionResponse:
|
|
@@ -192,7 +194,7 @@ class Client(BaseClient):
|
|
|
192
194
|
|
|
193
195
|
url = self._build_api_url__(
|
|
194
196
|
"search",
|
|
195
|
-
query,
|
|
197
|
+
query=query,
|
|
196
198
|
tag=tag,
|
|
197
199
|
notTag=notTag,
|
|
198
200
|
exact=exact,
|
|
@@ -218,7 +220,7 @@ class Client(BaseClient):
|
|
|
218
220
|
|
|
219
221
|
url = self._build_api_url__(
|
|
220
222
|
"search-telegram",
|
|
221
|
-
query,
|
|
223
|
+
query=query,
|
|
222
224
|
username=username,
|
|
223
225
|
page=page,
|
|
224
226
|
lte=lte,
|
|
@@ -410,4 +412,4 @@ class RansomwareFeed(DaylyFeed):
|
|
|
410
412
|
yield self._make_request(url)
|
|
411
413
|
|
|
412
414
|
|
|
413
|
-
# TODO /api/v1/feeds
|
|
415
|
+
# TODO /api/v1/feeds
|
|
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
|
|
File without changes
|
|
File without changes
|