plaso.serializer package

Submodules

plaso.serializer.json_serializer module

JSON attribute container serializer.

class plaso.serializer.json_serializer.JSONAttributeContainerSerializer(*args: Any, **kwargs: Any)[source]

Bases: AttributeContainerJSONSerializer

JSON attribute container serializer.

classmethod ReadSerialized(json_string)[source]

Reads an attribute container from serialized form.

Parameters:

json_string (str) – JSON serialized attribute container.

Returns:

attribute container or None.

Return type:

AttributeContainer

classmethod ReadSerializedDict(json_dict)[source]

Reads an attribute container from serialized dictionary form.

Parameters:

json_dict (dict[str, object]) – JSON serialized objects.

Returns:

attribute container or None.

Return type:

AttributeContainer

Raises:

TypeError – if the serialized dictionary does not contain an AttributeContainer.

classmethod WriteSerialized(attribute_container)[source]

Writes an attribute container to serialized form.

Parameters:

attribute_container (AttributeContainer) – attribute container.

Returns:

A JSON string containing the serialized form.

Return type:

str

classmethod WriteSerializedDict(attribute_container)[source]

Writes an attribute container to serialized form.

Parameters:

attribute_container (AttributeContainer) – attribute container.

Returns:

JSON serialized objects.

Return type:

dict[str, object]

plaso.serializer.logger module

The serializer sub module logger.

Module contents