patterns

Classes to aid in working with the STIX 2 patterning language.

class AndBooleanExpression(operands)
class AndObservationExpression(operands)
class BasicObjectPathComponent(property_name, is_key=False)
class BinaryConstant(value)
class BooleanConstant(value)
class EqualityComparisonExpression(lhs, rhs, negated=False)
class FloatConstant(value)
class FollowedByObservationExpression(operands)
class GreaterThanComparisonExpression(lhs, rhs, negated=False)
class GreaterThanEqualComparisonExpression(lhs, rhs, negated=False)
class HashConstant(value, type)
class HexConstant(value)
class InComparisonExpression(lhs, rhs, negated=False)
class IntegerConstant(value)
class IsSubsetComparisonExpression(lhs, rhs, negated=False)
class IsSupersetComparisonExpression(lhs, rhs, negated=False)
class LessThanComparisonExpression(lhs, rhs, negated=False)
class LessThanEqualComparisonExpression(lhs, rhs, negated=False)
class LikeComparisonExpression(lhs, rhs, negated=False)
class ListConstant(values)
class ListObjectPathComponent(property_name, index)
class MatchesComparisonExpression(lhs, rhs, negated=False)
class ObjectPath(object_type_name, property_path)
static make_object_path(lhs)
merge(other)
class ObservationExpression(operand)
class OrBooleanExpression(operands)
class OrObservationExpression(operands)
class ParentheticalExpression(exp)
class QualifiedObservationExpression(observation_expression, qualifier)
class ReferenceObjectPathComponent(reference_property_name)
class RepeatQualifier(times_to_repeat)
class StartStopQualifier(start_time, stop_time)
class StringConstant(value)
class TimestampConstant(value)
class WithinQualifier(number_of_seconds)
escape_quotes_and_backslashes(s)
make_constant(value)