@classmethod
def from_string(cls, data, **kwds):
    """create new object from raw string.

        :type data: unicode or bytes
        :arg data:
            database to load, as single string.

        :param \\*\\*kwds:
            all other keywords are the same as in the class constructor
        """
    if 'path' in kwds:
        raise TypeError("'path' not accepted by from_string()")
    self = cls(**kwds)
    self.load_string(data)
    return self
