plaso.serializer package

Submodules

plaso.serializer.interface module

The serializer object interfaces.

class plaso.serializer.interface.AttributeContainerSerializer[source]

Bases: object

Class that implements the attribute container serializer interface.

ReadSerialized(serialized)[source]

Reads an attribute container from serialized form.

Parameters:serialized (object) – serialized form.
Returns:attribute container.
Return type:AttributeContainer
WriteSerialized(attribute_container)[source]

Writes an attribute container to serialized form.

Parameters:attribute_container (AttributeContainer) – attribute container.
Returns:serialized form.
Return type:object

plaso.serializer.json_serializer module

The json serializer object implementation.

class plaso.serializer.json_serializer.JSONAttributeContainerSerializer[source]

Bases: plaso.serializer.interface.AttributeContainerSerializer

Class that implements the 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