vysion 2.0.11__tar.gz → 2.0.12__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vysion
3
- Version: 2.0.11
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.11](https://pypi.org/project/vysion/)
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
 
@@ -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.11](https://pypi.org/project/vysion/)
7
+ Latest version: [2.0.12](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.11"
3
+ version = "2.0.12"
4
4
  description = "The official Python client library for Vysion"
5
5
  homepage = "https://vysion.ai"
6
6
  repository = "https://github.com/ByronLabs/vysion-py"
@@ -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/" + platform + "/search",
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
@@ -15,4 +15,4 @@ See the License for the specific language governing permissions and
15
15
  limitations under the License.
16
16
  """
17
17
 
18
- __version__ = "2.0.11"
18
+ __version__ = "2.0.12"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes