Version: 1.1.1.19
stix
Module¶
Classes¶
-
stix.
supported_stix_version
()¶ Returns a tuple of STIX version strings that this version of python-stix supports (i.e., can parse).
-
stix.
register_extension
(cls)¶ Class decorator for registering a stix.Entity class as an implementation of an xml type.
Classes must have an
_XSI_TYPE
class attributes to be registered.Note
This was designed for internal use.
-
stix.
lookup_extension
(typeinfo, default=None)¶ Returns a stix.Entity class for that has been registered for the typeinfo value.
Note
This is for internal use only.
Parameters: - typeinfo – An object or string containing type information. This can be either an xsi:type attribute value or a stix.bindings object.
- default – Return class if typeinfo is None or contains no xml type information.
Returns: A stix.Entity implementation class for the xsi_type.
Raises: ValueError
– If no class has been registered for the xsi_type.
-
stix.
add_extension
(cls)¶ Registers a stix.Entity class as an implementation of an xml type.
Classes must have an
_XSI_TYPE
class attributes to be registered. The value of this attribute must be a valid xsi:type.Note
This was designed for internal use.