<reponame>all3g/pieces
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import abc


class PluginBase(object):
    __metaclass__ = abc.ABCMeta

    @abc.abstractmethod
    def load(self, input):
        """Return data from the input source and return an object."""
        return

    @abc.abstractmethod
    def save(self, output, data):
        """Save the data object to the object"""
        return
