NullCodec

Inheritance diagram of NullCodec
class NullCodec[source]

Import from taurus.core.util.codecs as:

from taurus.core.util.codecs import NullCodec
decode(data, *args, **kwargs)[source]

decodes with Null encoder. Just returns the given data

Parameters

data (sequence[str, obj]) – a sequence of two elements where the first item is the encoding format of the second item object

Returns

a sequence of two elements where the first item is the encoding format of the second item object

Return type

sequence[str, obj]

encode(data, *args, **kwargs)[source]

encodes with Null encoder. Just returns the given data

Parameters

data (sequence[str, obj]) – a sequence of two elements where the first item is the encoding format of the second item object

Returns

a sequence of two elements where the first item is the encoding format of the second item object

Return type

sequence[str, obj]