Codec Service Provider

class ydk.providers.CodecServiceProvider(type=EncodingFormat.XML, repo=None)

A provider to be used with CodecService for performing encoding and decoding.

  • type (string or EncodingFormat) – An argument specifies encoding format, could be a Python string (xml or json) or an instance of EncodingFormat.
  • repo (Repository) – User provided repository stores cached models.

Return root_schema for bundle_name.

Parameters:bundle_name – (str) Bundle name.
Returns:RootSchemaNode for this bundle.