NullCodec

Inheritance diagram of NullCodec

class NullCodec[source]

Bases: taurus.core.util.codecs.Codec

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

decodes with Null encoder. Just returns the given data

Parameters:data (:class:~`sequence[str, obj]`) – a sequence of two elements where the first item is the encoding format of the second item object
Return type::class:~`sequence[str, obj]`
Returns:a sequence of two elements where the first item is the encoding format of the second item object
encode(data, *args, **kwargs)[source]

encodes with Null encoder. Just returns the given data

Parameters:data (:class:~`sequence[str, obj]`) – a sequence of two elements where the first item is the encoding format of the second item object
Return type::class:~`sequence[str, obj]`
Returns:a sequence of two elements where the first item is the encoding format of the second item object