msticpy.context.lookup_result module

Lookup Status class.

class msticpy.context.lookup_result.LookupStatus(value)

Bases: Enum

Threat intelligence lookup status.

BAD_FORMAT = 2
NOT_SUPPORTED = 1
NO_DATA = 4
OK = 0
OTHER = 10
QUERY_FAILED = 3
class msticpy.context.lookup_result.SanitizedObservable(observable: str | None, status: str | None)

Bases: NamedTuple

Encoded version of observable.

Create new instance of SanitizedObservable(observable, status)

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

observable: str | None

Alias for field number 0

status: str | None

Alias for field number 1