taurus taurus

Previous topic

MemoryLogHandler

Next topic

Object

This Page

NullCodec

Inheritance diagram of NullCodec

class NullCodec

Bases: taurus.core.util.codecs.Codec

decode(data, *args, **kwargs)

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)

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