Best way to list all the dependencies of a repository #24330
-
What could be the best way to list all the dependencies by just entering a repo name? I was trying to do this via GHTorrent (via GoogleBigQuery) but I assume it only shows events and not the actual dependencies of the project. Graphql may be the way to go. But can anyone lighten me up how can i achieve this? Isn’t there limitation to number of request for APIs? Also do I need OAuth token to access such manifest data from repositories? If that is the case, then graphql would not help my data analysis at all, as i aim to list dependencies for any given project in github. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
👋 Welcome! It looks like it’s possible with our GraphQL API. It looks as though some clever person has put together a nice little tool for just this purpose. I haven’t tested it, but you can view the code yourself before installing: github.comedsu/xkcd2347Get dependencies for a project on GitHub. Contribute to edsu/xkcd2347 development by creating an account on GitHub. In terms of rate limiting, with Graphql queries, there’s some math involved. Here’s the explainer: docs.github.comResource limitations - GitHub Docs//docs.github.com/en/graphql/overview/resource-limitations |
Beta Was this translation helpful? Give feedback.
👋 Welcome!
It looks like it’s possible with our GraphQL API.
It looks as though some clever person has put together a nice little tool for just this purpose. I haven’t tested it, but you can view the code yourself before installing:
github.comedsu/xkcd2347
Get dependencies for a project on GitHub. Contribute to edsu/xkcd2347 development by creating an account on GitHub.
In terms of rate limiting, with Graphql queries, there’s some math involved. Here’s the explainer:
docs.github.com
Resource limitations - GitHub Docs
//docs.github.com/en/graphql/overview/resource-limitations