2017-09-21 23:27:13 +02:00
|
|
|
"""Python APIs for STIX 2.
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
|
2017-12-08 15:36:59 +01:00
|
|
|
v21.common
|
2017-09-21 23:27:13 +02:00
|
|
|
core
|
|
|
|
environment
|
|
|
|
exceptions
|
2017-09-22 16:01:00 +02:00
|
|
|
markings
|
2017-12-08 15:36:59 +01:00
|
|
|
v21.observables
|
2017-09-21 23:27:13 +02:00
|
|
|
patterns
|
|
|
|
properties
|
2017-12-08 15:36:59 +01:00
|
|
|
v21.sdo
|
2017-09-22 16:01:00 +02:00
|
|
|
sources
|
2017-12-08 15:36:59 +01:00
|
|
|
v21.sro
|
2017-09-21 23:27:13 +02:00
|
|
|
utils
|
|
|
|
"""
|
2017-01-17 21:37:47 +01:00
|
|
|
|
2017-03-22 14:05:59 +01:00
|
|
|
# flake8: noqa
|
|
|
|
|
2017-11-02 12:48:37 +01:00
|
|
|
from .core import Bundle, _collect_stix2_obj_maps, _register_type, parse
|
2017-09-08 15:01:12 +02:00
|
|
|
from .environment import Environment, ObjectFactory
|
2017-10-02 22:09:38 +02:00
|
|
|
from .markings import (add_markings, clear_markings, get_markings, is_marked,
|
|
|
|
remove_markings, set_markings)
|
2017-07-19 15:39:17 +02:00
|
|
|
from .patterns import (AndBooleanExpression, AndObservationExpression,
|
|
|
|
BasicObjectPathComponent, EqualityComparisonExpression,
|
|
|
|
FloatConstant, FollowedByObservationExpression,
|
|
|
|
GreaterThanComparisonExpression,
|
|
|
|
GreaterThanEqualComparisonExpression, HashConstant,
|
|
|
|
HexConstant, IntegerConstant,
|
|
|
|
IsSubsetComparisonExpression,
|
|
|
|
IsSupersetComparisonExpression,
|
|
|
|
LessThanComparisonExpression,
|
|
|
|
LessThanEqualComparisonExpression,
|
|
|
|
LikeComparisonExpression, ListConstant,
|
|
|
|
ListObjectPathComponent, MatchesComparisonExpression,
|
|
|
|
ObjectPath, ObservationExpression, OrBooleanExpression,
|
|
|
|
OrObservationExpression, ParentheticalExpression,
|
|
|
|
QualifiedObservationExpression,
|
|
|
|
ReferenceObjectPathComponent, RepeatQualifier,
|
2017-09-11 15:00:40 +02:00
|
|
|
StartStopQualifier, StringConstant, TimestampConstant,
|
|
|
|
WithinQualifier)
|
2017-09-08 15:01:12 +02:00
|
|
|
from .sources import CompositeDataSource
|
|
|
|
from .sources.filesystem import (FileSystemSink, FileSystemSource,
|
|
|
|
FileSystemStore)
|
|
|
|
from .sources.filters import Filter
|
|
|
|
from .sources.memory import MemorySink, MemorySource, MemoryStore
|
|
|
|
from .sources.taxii import (TAXIICollectionSink, TAXIICollectionSource,
|
|
|
|
TAXIICollectionStore)
|
2017-09-01 22:37:49 +02:00
|
|
|
from .utils import get_dict, new_version, revoke
|
2017-11-02 12:48:37 +01:00
|
|
|
from .v21 import * # This import will always be the latest STIX 2.X version
|
2017-07-06 15:39:33 +02:00
|
|
|
from .version import __version__
|
2017-11-02 12:48:37 +01:00
|
|
|
|
|
|
|
_collect_stix2_obj_maps()
|
|
|
|
|
|
|
|
DEFAULT_VERSION = "2.1" # Default version will always be the latest STIX 2.X version
|