def write(self, data):
        deleted = [c for c in self.read()["_default"].values()
                   if c not in data["_default"].values()]
        self.delete(deleted)

        for eid, cred in data["_default"].items():
            credpath = self.make_credpath(cred["name"], cred["login"])
            with mkdir_open(credpath, "w") as f:
                f.write(yaml.dump(dict(cred), default_flow_style=False))
dataset/ETHPy150Open marcwebbie/passpie/passpie/database.py/PasspieStorage.write/original