def Glide(self):
dict = {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": str(datetime.datetime.now(tz=pytz.utc).isoformat()),<EOL>"<STR_LIT>": [],<EOL>}<EOL>decomposer = ImportPathsDecomposerBuilder().buildLocalDecomposer()<EOL>decomposer.decompose(self._packages.keys())<EOL>classes = decomposer.classes()<EOL>for ipp in classes:<EOL><INDENT>dep = {<EOL>"<STR_LIT:name>": ipp,<EOL>"<STR_LIT:version>": str(self._packages[classes[ipp][<NUM_LIT:0>]])<EOL>}<EOL>if len(classes[ipp]) > <NUM_LIT:1> or classes[ipp][<NUM_LIT:0>] != ipp:<EOL><INDENT>dep["<STR_LIT>"] = map(lambda l: l[len(ipp)+<NUM_LIT:1>:], classes[ipp])<EOL><DEDENT>dict["<STR_LIT>"].append(dep)<EOL><DEDENT>return yaml.dump(dict, default_flow_style=False)<EOL>
Return the snapshot in glide.lock form