:hand: Can I use pants to figure out the longest c...
# general
p
Can I use pants to figure out the longest chain of dependencies? I'd like to find a way to figure out the "most depended on" dependency.
b
pants peek ::
gives JSON output that includes the dependencies, and this can be turned into a graph and processed. E.g. load into NetworkX or Neo4j and run arbitrary graph analytics there. (NB. this has limitations for third-party requirements though, e.g.
requests
depends on
urllib3
, but pants isn't aware of this: there's no pants-level link from a
requests
python_requirement
to a
urllib3
one https://github.com/pantsbuild/pants/issues/12733)
p
Do you know of an example using neo4j? I haven't used that in a bit
b
nope, I don't
h
Pants isn't aware of this... Yet! I've been noodling on this