nvuillam / github-dependents-info

Collect information about dependencies between a github repo and other repositories. Results available in JSON, markdown and badge
https://pypi.org/project/github-dependents-info/
MIT License
100 stars 6 forks source link

It is acquiring dependents, not dependency? #534

Closed gaokaige1996 closed 6 months ago

gaokaige1996 commented 6 months ago

Checklist

❓ Question

Thank you so much for developing this package! It is very helpful!

Is it possible to acquire a dependency relationship?

📎 Additional context

nvuillam commented 6 months ago

@gaokaige1996 if you need dependencies of your own repo, you have many SBOM tools existing and provided as open-source :)

For example, there is syft -> https://github.com/anchore/syft

What would you need ? a badge with the number of dependencies in your repo ?

gaokaige1996 commented 6 months ago

Thank you for your reply! I'm hoping to get dependency relationship of several projects. I was wondering if there are any easy ways or API so that I don't have to download the dependencies from the website one by one.

nvuillam commented 6 months ago

@gaokaige1996 GitHub API allows you to list dependencies, so you can call it :)

https://docs.github.com/en/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository

If it could do the same for dependents, github-dependents-info would be useless ^^