deltakit.explorer.types.TypedData#

class deltakit.explorer.types.TypedData(data_format: DataFormat, content: Any, data_width: int = -1)#

Bases: ABC

Basic class for all typed data manipulation activities.

Methods#

TypedData.as_01_string

Generate or return a 01 string for the stored data.

TypedData.as_b8_bytes

Generate or return a b8 string for the stored data.

TypedData.as_numpy

Generate or return an numpy array for the stored data.

TypedData.get_width

Derives data width, infers from the data in 01 or CSV format.