Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/STIXProject/python-stix
/ from_dict
Method
from_dict
stix/common/profiles.py:43–49 ·
view source on GitHub ↗
(cls, cls_dict=None)
Source
from the content-addressed store, hash-verified
41
42
@classmethod
43
def
from_dict(cls, cls_dict=None):
44
if
not cls_dict:
45
return
None
46
47
obj = cls()
48
obj.profile = [x
for
x in cls_dict]
49
return
obj
Callers
15
from_list
Method · 0.45
object_from_dict
Method · 0.45
test_negate
Method · 0.45
test_observables_property_empty
Method · 0.45
test_observables_property_composition
Method · 0.45
test_observables_property_standard
Method · 0.45
round_trip_dict
Function · 0.45
round_trip
Function · 0.45
test_round_trip_full
Method · 0.45
test_round_trip_rt
Method · 0.45
test_equal
Method · 0.45
test_strip_cdata
Method · 0.45
Calls
no outgoing calls
Tested by
11
test_negate
Method · 0.36
test_observables_property_empty
Method · 0.36
test_observables_property_composition
Method · 0.36
test_observables_property_standard
Method · 0.36
test_round_trip_full
Method · 0.36
test_round_trip_rt
Method · 0.36
test_equal
Method · 0.36
test_strip_cdata
Method · 0.36
test_etree_dict
Method · 0.36
test_etree_dict
Method · 0.36
test_identity_from_xml
Method · 0.36