stix2arango 1.1.0__py3-none-any.whl → 1.1.2__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 stix2arango might be problematic. Click here for more details.

@@ -469,7 +469,6 @@ class Stix2Arango:
469
469
 
470
470
  def map_embedded_relationships(self, bundle_objects, inserted_object_ids):
471
471
  objects = []
472
- inserted_data = []
473
472
  for obj in tqdm(bundle_objects, desc="upload_embedded_edges"):
474
473
  if obj["id"] not in inserted_object_ids:
475
474
  continue
stix2arango/utils.py CHANGED
@@ -37,7 +37,6 @@ def create_relationship_obj(
37
37
  arango_obj=None,
38
38
  extra_data=None,
39
39
  ):
40
- insert_data = []
41
40
  if not isinstance(targets, list):
42
41
  return []
43
42
  for target in targets:
@@ -75,19 +74,15 @@ def create_relationship_obj(
75
74
  relationship_object["_is_ref"] = True
76
75
  relationship_object["type"] = "relationship"
77
76
  relationship_object["spec_version"] = "2.1"
78
- # relationship_object['_record_md5_hash'] = generate_md5(relationship_object)
77
+ relationship_object["external_references"] = {
78
+ "source_name": "stix2arango",
79
+ "description": "embedded-relationship",
80
+ }
79
81
  if extra_data:
80
82
  relationship_object.update(extra_data)
81
83
 
82
84
  insert_statement.append(relationship_object)
83
- insert_data.append(
84
- [
85
- "relationship",
86
- relationship_object["id"],
87
- True if "modified" in obj else False,
88
- ]
89
- )
90
- return insert_data
85
+ return
91
86
 
92
87
 
93
88
  def generate_md5(obj: dict):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stix2arango
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: stix2arango is a command line tool that takes a group of STIX 2.1 objects in a bundle and inserts them into ArangoDB. It can also handle updates to existing objects in ArangoDB imported in a bundle.
5
5
  Project-URL: Homepage, https://github.com/muchdogesec/stix2arango
6
6
  Project-URL: Issues, https://github.com/muchdogesec/stix2arango/issues
@@ -1,16 +1,16 @@
1
1
  stix2arango/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  stix2arango/__main__.py,sha256=wbR_iO70Vld2NYiml6Kz4rH396uOiNwTtjNBl4AHZEg,1987
3
3
  stix2arango/config.py,sha256=NZFrcnEfz-0QBrut2Rh7xMF78v0bk6U6y2TY_7mHxSs,1407
4
- stix2arango/utils.py,sha256=heln_kXBSTLo0R4n1IrfCHbRnCHTQf9Y2URhvwQ0Smc,4845
4
+ stix2arango/utils.py,sha256=CmyRH1gmymu1vA3KI4vijek0oS4ODoMBIXmMuoIcFM4,4690
5
5
  stix2arango/services/__init__.py,sha256=E87fB-dxI4mPxMVs00jdLhjp9jFhkVfjhMKIqGLRJlY,45
6
6
  stix2arango/services/arangodb_service.py,sha256=qgE7yb-ysqyJ1oUjqAV6eGa53WvWHAFAd6I7aKZ6KyU,11960
7
7
  stix2arango/services/version_annotator.py,sha256=Sd1MIaXzK0fpNopNxRoB_3etodzAjX5D_p3uGQSWzOI,2946
8
8
  stix2arango/stix2arango/__init__.py,sha256=OqxWEEsHqR1QQpznM5DbFJ5bO5numKYtoYhjXYJMEyg,36
9
9
  stix2arango/stix2arango/bundle_loader.py,sha256=qi-0E_bMIMPZXzISvjhrWX8K-f7iFv9vOekldOGVczU,4603
10
- stix2arango/stix2arango/stix2arango.py,sha256=PyrDzW8YuKzibpMA0UImwpDBf1BeiP5pUz5tE_nVwG4,22073
10
+ stix2arango/stix2arango/stix2arango.py,sha256=t5uW6-Zshk0GvEDxwZBn7mzg0goaBCIm_7hhruCimKc,22046
11
11
  stix2arango/templates/marking-definition.json,sha256=0q9y35mUmiF6xIWSLpkATL4JTHGSCNyLbejqZiQ0AuE,3113
12
- stix2arango-1.1.0.dist-info/METADATA,sha256=DHq9KWi0BV3juGOP-JLh5y9rxB-htxKu_l4vrw19fjg,6873
13
- stix2arango-1.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- stix2arango-1.1.0.dist-info/entry_points.txt,sha256=k2WnxMsHFLoyC6rqfvjhIMS1zwtWin51-MbNCGmSMYE,58
15
- stix2arango-1.1.0.dist-info/licenses/LICENSE,sha256=BK8Ppqlc4pdgnNzIxnxde0taoQ1BgicdyqmBvMiNYgY,11364
16
- stix2arango-1.1.0.dist-info/RECORD,,
12
+ stix2arango-1.1.2.dist-info/METADATA,sha256=p1UJ9P5Lq4CKUiFhMiHrq8FFvuwCA79lJHpv9j50TSU,6873
13
+ stix2arango-1.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ stix2arango-1.1.2.dist-info/entry_points.txt,sha256=k2WnxMsHFLoyC6rqfvjhIMS1zwtWin51-MbNCGmSMYE,58
15
+ stix2arango-1.1.2.dist-info/licenses/LICENSE,sha256=BK8Ppqlc4pdgnNzIxnxde0taoQ1BgicdyqmBvMiNYgY,11364
16
+ stix2arango-1.1.2.dist-info/RECORD,,