Skip to content
Back to top
View this page

# Codec

class dsviper.Codec

  Bases: `object`

  A class used to instantiate a codec. Use the static factory method check(…) and query(…).

  Note: Not directly instantiable.

  STREAM_BINARY = StreamBinary
  STREAM_RAW = StreamRaw
  STREAM_TOKEN_BINARY = StreamTokenBinary
  static check(name: str) → StreamCodecInstancing

    Return the StreamCodecInstancing interface of the codec or raise.

  static query(name: str) → StreamCodecInstancing

    Return the StreamCodecInstancing interface of the codec or None.