pycti 6.2.3__py3-none-any.whl → 6.2.5__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.

Potentially problematic release.


This version of pycti might be problematic. Click here for more details.

pycti/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = "6.2.3"
2
+ __version__ = "6.2.5"
3
3
 
4
4
  from .api.opencti_api_client import OpenCTIApiClient
5
5
  from .api.opencti_api_connector import OpenCTIApiConnector
@@ -1,5 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
+ import datetime
3
4
  import json
4
5
  import uuid
5
6
 
@@ -395,10 +396,12 @@ class Grouping:
395
396
  """
396
397
 
397
398
  @staticmethod
398
- def generate_id(name, context):
399
+ def generate_id(name, context, created):
399
400
  name = name.lower().strip()
400
401
  context = context.lower().strip()
401
- data = {"name": name, "context": context}
402
+ if isinstance(created, datetime.datetime):
403
+ created = created.isoformat()
404
+ data = {"name": name, "context": context, "created": created}
402
405
  data = canonicalize(data, utf8=False)
403
406
  id = str(uuid.uuid5(uuid.UUID("00abedb4-aa42-466c-9c01-fed23315a9b7"), data))
404
407
  return "grouping--" + id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycti
3
- Version: 6.2.3
3
+ Version: 6.2.5
4
4
  Summary: Python API client for OpenCTI.
5
5
  Home-page: https://github.com/OpenCTI-Platform/client-python
6
6
  Author: Filigran
@@ -1,4 +1,4 @@
1
- pycti/__init__.py,sha256=ZQfD8cQ7_WKt-3NPl76YW6mF3eysVtZ63CXmcGADTW4,5157
1
+ pycti/__init__.py,sha256=ERk0MWzNt8ekJPSwJQcYDb6Wis4VHiGjdiGU5dxzd9o,5157
2
2
  pycti/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  pycti/api/opencti_api_client.py,sha256=c-xyfmas2LkYNIY8j4-dHBJepHNL6uNhageyJOvYdQc,29834
4
4
  pycti/api/opencti_api_connector.py,sha256=fYF0Jy9KIMFNt1RC_A1rpWomVJ-oj5HiSsBem4W0J5U,3549
@@ -21,7 +21,7 @@ pycti/entities/opencti_data_source.py,sha256=QeBDLuH5BZs0_rnQmXZGs0wWfxfC6qPcRFE
21
21
  pycti/entities/opencti_event.py,sha256=Pam3eeR_Ytl_the-kV9IxXcfJKs2vRqN61igyDAlVE4,16706
22
22
  pycti/entities/opencti_external_reference.py,sha256=9Vz6ZIaE6im1f5hoEqizq5E31DQ7oFuqlXb-9JGy3Ao,13216
23
23
  pycti/entities/opencti_feedback.py,sha256=tK_Y3ZK2h33xQTzsjxu3x8Za3cBsgkBth_xNzEj2Hms,32314
24
- pycti/entities/opencti_grouping.py,sha256=dNl2kjv4ZB5V0vOlReeCqizF2Nxu3j9gaUrQyxES-nA,29896
24
+ pycti/entities/opencti_grouping.py,sha256=Er4931oZy4rQzH4HOOOPOQotqH9HsDFoVKFXRNF-5J4,30034
25
25
  pycti/entities/opencti_identity.py,sha256=w9gIySPWgbFYTucYMnzyAxcuYx3v-Of9kvMlUGajiJE,22823
26
26
  pycti/entities/opencti_incident.py,sha256=KAaqn0mnlyIKJ2whtbK0Eg8AbfQfxKvppS9hyfn_04s,18553
27
27
  pycti/entities/opencti_indicator.py,sha256=gh69C4Wu2Z08PcI2LC9p_FtKC1Qq8I1DjVsukz17kGI,20842
@@ -66,8 +66,8 @@ pycti/utils/opencti_stix2.py,sha256=WAVgvTcj8P0QfN_K2-avCeFwSkxVtBz1nh0dA63Nlr4,
66
66
  pycti/utils/opencti_stix2_splitter.py,sha256=A2GqoiFzEga8hslgA3mm4FDoObFsWgx4zK4DdcWTguc,4907
67
67
  pycti/utils/opencti_stix2_update.py,sha256=CnMyqkeVA0jgyxEcgqna8sABU4YPMjkEJ228GVurIn4,14658
68
68
  pycti/utils/opencti_stix2_utils.py,sha256=4r9qglN3AIN8JH1B9Ts2o20Qn3K203M4c5-lIPzRpZ4,4138
69
- pycti-6.2.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
70
- pycti-6.2.3.dist-info/METADATA,sha256=JpmQM6f7ZYJjjqQ8UCgOKjjIWLVWvHstcmH-DLlRHi4,5432
71
- pycti-6.2.3.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
72
- pycti-6.2.3.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
73
- pycti-6.2.3.dist-info/RECORD,,
69
+ pycti-6.2.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
70
+ pycti-6.2.5.dist-info/METADATA,sha256=IeOMjENE7Lbgdo7NWEI8UatDzGT-kWPfzKkEhI3tZac,5432
71
+ pycti-6.2.5.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
72
+ pycti-6.2.5.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
73
+ pycti-6.2.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.2.0)
2
+ Generator: setuptools (70.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
File without changes