vysion 2.0.11__py3-none-any.whl → 2.0.12__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.
- vysion/client/client.py +16 -3
- vysion/version.py +1 -1
- {vysion-2.0.11.dist-info → vysion-2.0.12.dist-info}/METADATA +2 -2
- {vysion-2.0.11.dist-info → vysion-2.0.12.dist-info}/RECORD +6 -6
- {vysion-2.0.11.dist-info → vysion-2.0.12.dist-info}/LICENSE +0 -0
- {vysion-2.0.11.dist-info → vysion-2.0.12.dist-info}/WHEEL +0 -0
vysion/client/client.py
CHANGED
|
@@ -38,6 +38,7 @@ from vysion.dto import (
|
|
|
38
38
|
ImChannelHit,
|
|
39
39
|
ImMessageHit,
|
|
40
40
|
ImProfileHit,
|
|
41
|
+
ImServerHit,
|
|
41
42
|
)
|
|
42
43
|
from vysion.version import __version__ as vysion_version
|
|
43
44
|
|
|
@@ -392,8 +393,8 @@ class Client(BaseClient):
|
|
|
392
393
|
@vysion_error_manager
|
|
393
394
|
def search_im(
|
|
394
395
|
self,
|
|
395
|
-
platform: str,
|
|
396
|
-
q: str,
|
|
396
|
+
platform: str = None,
|
|
397
|
+
q: str = None,
|
|
397
398
|
gte: datetime = None,
|
|
398
399
|
lte: datetime = None,
|
|
399
400
|
page: int = 1,
|
|
@@ -401,7 +402,8 @@ class Client(BaseClient):
|
|
|
401
402
|
username: str = None,
|
|
402
403
|
) -> VysionResponse[ImMessageHit]:
|
|
403
404
|
url = self._build_api_url__(
|
|
404
|
-
"im/
|
|
405
|
+
"im/search",
|
|
406
|
+
platform=platform,
|
|
405
407
|
q=q,
|
|
406
408
|
gte=gte,
|
|
407
409
|
lte=lte,
|
|
@@ -410,6 +412,8 @@ class Client(BaseClient):
|
|
|
410
412
|
username=username,
|
|
411
413
|
)
|
|
412
414
|
|
|
415
|
+
print(url)
|
|
416
|
+
|
|
413
417
|
result = VysionResponse[ImMessageHit].model_validate(self._make_request(url))
|
|
414
418
|
return result.data
|
|
415
419
|
|
|
@@ -450,6 +454,15 @@ class Client(BaseClient):
|
|
|
450
454
|
|
|
451
455
|
result = VysionResponse[ImChannelHit].model_validate(self._make_request(url))
|
|
452
456
|
return result.data
|
|
457
|
+
|
|
458
|
+
@vysion_error_manager
|
|
459
|
+
def get_im_server(
|
|
460
|
+
self, platform: str, serverId: str
|
|
461
|
+
) -> VysionResponse[ImServerHit]:
|
|
462
|
+
url = self._build_api_url__("im/" + platform + "/server/", serverId)
|
|
463
|
+
|
|
464
|
+
result = VysionResponse[ImServerHit].model_validate(self._make_request(url))
|
|
465
|
+
return result.data
|
|
453
466
|
|
|
454
467
|
#
|
|
455
468
|
# FEEDS
|
vysion/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vysion
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.12
|
|
4
4
|
Summary: The official Python client library for Vysion
|
|
5
5
|
Home-page: https://vysion.ai
|
|
6
6
|
License: Apache-2.0
|
|
@@ -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.12](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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
vysion/__init__.py,sha256=yxJiM-S29q8GB3PBff9tV70P2nvydd8aKLEprLkXw5o,664
|
|
2
2
|
vysion/client/__init__.py,sha256=aVHmBuetPdybp7TgcNzUx4HkxTjEuXYzSdDYiYfFQd0,630
|
|
3
|
-
vysion/client/client.py,sha256=
|
|
3
|
+
vysion/client/client.py,sha256=x8_ANIMLkrMl5qfbfGoo18fhUdxTwAJAhQi9NG_07_w,13840
|
|
4
4
|
vysion/client/error.py,sha256=-3NGr9ngTGSy-ctqk6S9eMBAvtY3lnjv9i0KiuRjd5g,1158
|
|
5
5
|
vysion/dto/__init__.py,sha256=ct8JxVMfJ0APiOTgr9ju-JIuBlXOrPkx7n2qISSXUts,605
|
|
6
6
|
vysion/dto/dto.py,sha256=6SezVekh2BlYsm0JK5pHSEmYAvwBDBzskCdpFThaDWo,15311
|
|
@@ -15,8 +15,8 @@ vysion/model/enum/services.py,sha256=fUfZEO0RNNctU4Gzae5TV3c7BU5A_cEwaEb1tzqgcr0
|
|
|
15
15
|
vysion/taxonomy/__init__.py,sha256=Bc364AYxRCyjIn26-XBPeEDCPe3Hma4r5RAI8R8eblU,635
|
|
16
16
|
vysion/taxonomy/flavours.py,sha256=ubImHBE8v0zhzFy_2YozAQk2SzN1XDQwHAxb2RebtCo,2347
|
|
17
17
|
vysion/taxonomy/taxonomy.py,sha256=mG6vHX5Eyp38AKyJBgfBDqdpEmDMbkv8TA8YUBzko54,12227
|
|
18
|
-
vysion/version.py,sha256=
|
|
19
|
-
vysion-2.0.
|
|
20
|
-
vysion-2.0.
|
|
21
|
-
vysion-2.0.
|
|
22
|
-
vysion-2.0.
|
|
18
|
+
vysion/version.py,sha256=BTH6kMP8GNOYzYPcOoKoluptOr_GpQKM6mT7zY6XeaQ,611
|
|
19
|
+
vysion-2.0.12.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
20
|
+
vysion-2.0.12.dist-info/METADATA,sha256=YpUxW6zdcC4jpGMF4_YVqj3ObtnPUcoAOvMNbMKgUF4,1960
|
|
21
|
+
vysion-2.0.12.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
22
|
+
vysion-2.0.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|