def loads(src): packed = yaml.load(src, Loader=yaml.FullLoader) return deconvert(packed)
def load(file="testyaml.yaml"): with open(file, 'r+') as fr: packed = yaml.load(fr, Loader=yaml.FullLoader) return deconvert(packed)
def loads(src): packed = json.loads(src) return deconvert(packed)
def load(file="testjson.json"): with open(file, 'r+') as fr: data = json.load(fr) unpacked = deconvert(data) return unpacked
def loads(src): packed = pytomlpp.loads(src) return deconvert(packed)
def load(file="testtoml.toml"): with open(file, 'r+') as fr: packed = pytomlpp.load(fr) return deconvert(packed)