API Reference

This section of documentation contains information on all of the classes and functions in the stix2 API, as given by the package’s docstrings.

Note

All the classes and functions detailed in the pages below are importable directly from stix2. See also: How imports work.

Python APIs for STIX 2.

confidence Functions to operate with STIX2 Confidence scales.
datastore Python STIX2 DataStore API.
environment Python STIX2 Environment API.
equivalence Python APIs for STIX 2 Semantic Equivalence and Similarity.
exceptions STIX2 Error Classes.
markings Functions for working with STIX 2 Data Markings.
parsing STIX2 Core parsing methods.
pattern_visitor STIX2 classes and methods to generate AST from patterns
patterns Classes to aid in working with the STIX2 patterning language.
properties Classes for representing properties of STIX Objects and Cyber Observables.
serialization STIX2 core serialization methods.
utils Utility functions and classes for the STIX2 library.
v20 STIX 2.0 API Objects.
v21 STIX 2.1 API Objects.
versioning STIX2 core versioning methods.
workbench Functions and class wrappers for interacting with STIX2 data at a high level.