Version: 1.1.1.6
stix.core.stix_package Module¶
Classes¶
- class stix.core.stix_package.STIXPackage(id_=None, idref=None, timestamp=None, stix_header=None, courses_of_action=None, exploit_targets=None, indicators=None, observables=None, incidents=None, threat_actors=None, ttps=None, campaigns=None)¶
Bases: stix.base.Entity
- add(entity)¶
Adds entity to a top-level collection. For example, if entity is an Indicator object, the entity will be added to the indicators top-level collection.
- classmethod from_xml(xml_file, encoding=None)¶
Parses the xml_file file-like object and returns a STIXPackage instance.
Parameters: - xml_file – A file, file-like object, etree._Element, or etree._ElementTree instance.
- encoding – The character encoding of the xml_file input. If None, an attempt will be made to determine the input character encoding. Default is None.
Returns: An instance of – class:STIXPackage.
- class stix.core.stix_package.RelatedPackages(scope=None, *args)¶