Python codecs Library
The purpose of this module is Encoding and decoding i.e. conversion of the texts between different representations.
This module defines base classes for standard Python codecs (encoders and decoders) and provides access to the internal Python codec registry, which manages the codec and error handling lookup process.
The functions defined in this module are
The IncrementalEncoder and IncrementalDecoder are the classes in python codecs library, These provide the basic interface for the incremental encoding and decoding. Encoding and Decoding the input is not done with one call to the stateless encoder or decoder function method of the incremental encoder or decoder . It keeps the track of the encoding and decoding process during method calls. Incremental encoder and decoder functions are joined calls to the stateless encode and decode functions
This function looks up the codecs for the given encoding and return its incremental encoder class or factory function.
It raises a LookupError in case the encoding cannot be found, or if the codec doesn't support an incremental encoder.
This function looks up the codecs for the given encoding and return its incremental decoder class or the factory function.
Here also we receive the function as an object only, just like getincrementalencoder function.
It also raises a LookupError in case the encoding cannot be found, or if the codec doesn't support an incremental decoder.