Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

hemamaps / coreapi   python

Repository URL to install this package:

Version: 1.32.0 

/ codecs / base.py

import itypes


class BaseCodec(itypes.Object):
    media_type = None
    supports = []  # 'encoding', 'decoding', 'data'

    def load(self, bytes, base_url=None):
        raise NotImplementedError()  # pragma: nocover

    def dump(self, document, **kwargs):
        raise NotImplementedError()  # pragma: nocover