MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / to_dict

Method to_dict

src/packagedcode/conan.py:58–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 self.requires = []
57
58 def to_dict(self):
59 return {
60 "name": self.name,
61 "version": self.version,
62 "description": self.description,
63 "author": self.author,
64 "homepage_url": self.homepage_url,
65 "vcs_url": self.vcs_url,
66 "license": self.license,
67 "keywords": self.keywords,
68 "requires": self.requires,
69 }
70
71 def visit_Assign(self, node):
72 if not node.targets or not isinstance(node.targets[0], ast.Name):

Callers 3

_parseMethod · 0.95
assembleMethod · 0.45

Calls

no outgoing calls

Tested by 1