vysion 2.1.4__py3-none-any.whl → 2.1.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.
vysion/client/client.py CHANGED
@@ -414,9 +414,58 @@ class Client(BaseClient):
414
414
  page_size=page_size,
415
415
  username=username,
416
416
  )
417
+ print(url)
417
418
 
418
419
  result = VysionResponse[ImMessageHit].model_validate(self._make_request(url))
419
420
  return result.data
421
+
422
+ @vysion_error_manager
423
+ def search_im_profiles(
424
+ self,
425
+ platform: str = None,
426
+ q: str = None,
427
+ gte: datetime = None,
428
+ lte: datetime = None,
429
+ page: int = 1,
430
+ page_size: int = 10,
431
+ ) -> VysionResponse[ImProfileHit]:
432
+ url = self._build_api_url__(
433
+ "im/search/profiles",
434
+ platform=platform,
435
+ q=q,
436
+ gte=gte,
437
+ lte=lte,
438
+ page=page,
439
+ page_size=page_size,
440
+ )
441
+ print(url)
442
+
443
+ result = VysionResponse[ImProfileHit].model_validate(self._make_request(url))
444
+ return result.data
445
+
446
+ @vysion_error_manager
447
+ def search_im_channels(
448
+ self,
449
+ platform: str = None,
450
+ q: str = None,
451
+ gte: datetime = None,
452
+ lte: datetime = None,
453
+ page: int = 1,
454
+ page_size: int = 10,
455
+ ) -> VysionResponse[ImChannelHit]:
456
+ url = self._build_api_url__(
457
+ "im/search/channels",
458
+ platform=platform,
459
+ q=q,
460
+ gte=gte,
461
+ lte=lte,
462
+ page=page,
463
+ page_size=page_size,
464
+ )
465
+ print(url)
466
+
467
+ result = VysionResponse[ImChannelHit].model_validate(self._make_request(url))
468
+ return result.data
420
469
 
421
470
  @vysion_error_manager
422
471
  def im_find_email(
vysion/dto/dto.py CHANGED
@@ -393,7 +393,7 @@ class ImProfileHit(BaseModel):
393
393
  # For Telegram platform, remove Discord-specific fields
394
394
  if platform is None or (isinstance(platform, str) and platform.lower() == "telegram"):
395
395
  # Delete attributes instead of setting to None
396
- for attr in ["discordLink", "bot", "discriminator"]:
396
+ for attr in ["discordLink", "discriminator"]:
397
397
  if hasattr(values, attr):
398
398
  delattr(values, attr)
399
399
 
@@ -493,7 +493,6 @@ class OnionFeedHit(BaseModel):
493
493
  path: str
494
494
  detectionDate: datetime
495
495
  tag: List[Tag] = Field(default_factory=lambda: [])
496
- network: Network = Field(default_factory=lambda: Network.tor)
497
496
 
498
497
 
499
498
  class CryptoFeedHit(BaseModel):
vysion/version.py CHANGED
@@ -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.1.4"
18
+ __version__ = "2.1.6"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vysion
3
- Version: 2.1.4
3
+ Version: 2.1.6
4
4
  Summary: The official Python client library for Vysion
5
5
  Home-page: https://vysion.ai
6
6
  License: Apache-2.0
@@ -25,11 +25,11 @@ Description-Content-Type: text/markdown
25
25
 
26
26
  # Vysion-PY
27
27
 
28
- Welcome to the open source repository for vysion-py, our implementation as a Python library to use the Vysion tool. Vysion is a dark web intelligence tool that provides information collected from web pages from Tor, I2P, cybercrime forums on the clearnet, etc. Vysion API also provides a feed of information on ransomware attacks published by the various ransomware groups currently active.
28
+ Welcome to the PyPi webpage for Vysion, our implementation as a Python library to use the Vysion tool. Vysion is a dark web intelligence tool that provides information collected from web pages from Tor, I2P, cybercrime forums on the clearnet, etc. Vysion API also provides a feed of information on ransomware attacks published by the various ransomware groups currently active.
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.1.4](https://pypi.org/project/vysion/)
32
+ Latest version: [2.1.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
 
@@ -1,9 +1,9 @@
1
1
  vysion/__init__.py,sha256=yxJiM-S29q8GB3PBff9tV70P2nvydd8aKLEprLkXw5o,664
2
2
  vysion/client/__init__.py,sha256=aVHmBuetPdybp7TgcNzUx4HkxTjEuXYzSdDYiYfFQd0,630
3
- vysion/client/client.py,sha256=LShr3t81ACAduxXgdx3_E-qUQTgRcPw7nkGkfulGq00,15112
3
+ vysion/client/client.py,sha256=m2c8RzdQRyQMAPJPFNoqQYzbKpX1IHlGi-UR31BLtqc,16401
4
4
  vysion/client/error.py,sha256=JK0dsZkyMjmxPtEgO5IStG_N_q8y_-VGbppwWrUtSgM,1166
5
5
  vysion/dto/__init__.py,sha256=ct8JxVMfJ0APiOTgr9ju-JIuBlXOrPkx7n2qISSXUts,605
6
- vysion/dto/dto.py,sha256=1i37NfwB4B4G6SNuFE44WPgbeNxUi1XM0lewQxGR-qE,24537
6
+ vysion/dto/dto.py,sha256=DjHwD2D4NWwdrWDpr_QrUJTLlYFw8BO2KvqjXOzRENM,24464
7
7
  vysion/dto/tag.py,sha256=whGPsdasgYm8oijrL7MRSMmapzaoCmKNeaJ5ih0aBIk,1503
8
8
  vysion/dto/util.py,sha256=AxdMWPdf7xrFtWva5epKxgjI0Bah1GiIw-sEWvIUYb4,4491
9
9
  vysion/model/__init__.py,sha256=rJX9eNW9-jQGTgwm97W04jhZa-dV_dSTTTFcbWg73w0,606
@@ -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=k7TmsLCFoI8-Q45YNr5E1zOq7JE1GptrbhmNS6_yz0Y,610
19
- vysion-2.1.4.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
20
- vysion-2.1.4.dist-info/METADATA,sha256=zxON-y4Pd7xR1UuyMEOd-FnbVC_anxbrTSa5vna48zU,1971
21
- vysion-2.1.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
22
- vysion-2.1.4.dist-info/RECORD,,
18
+ vysion/version.py,sha256=gVJy-XODDhVoLvSuulwhpwX4iK3m0atDorJtcaI6ST8,610
19
+ vysion-2.1.6.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
20
+ vysion-2.1.6.dist-info/METADATA,sha256=5Bf_5SX194Mf5hUVc1SLxZnaOsiGYei45DITyDGVWKA,1958
21
+ vysion-2.1.6.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
22
+ vysion-2.1.6.dist-info/RECORD,,
File without changes