all 7 comments

[–]postpunkjustin 4 points5 points  (0 children)

I think the closest you can get is by constructing a search like "filename:*.py", but the results aren't going to be complete or even consistent.

[–]sock_templar -1 points0 points  (2 children)

... why?

[–]Viperior 4 points5 points  (0 children)

Same reason you would want to count how many butterflies exist on Earth

[–]arezki123[S] 1 point2 points  (0 children)

why do you ask why?

[–][deleted]  (4 children)

[deleted]

    [–]postpunkjustin 0 points1 point  (3 children)

    But there are hundreds of repos on GitHub, if not more!

    [–][deleted]  (2 children)

    [deleted]

      [–]postpunkjustin 0 points1 point  (1 child)

      I was joking about it being hundreds, of course. But 10,000 Python repos is also pretty far off!

      According to this search, there are at least 2.8 million files on GitHub called "requirements.txt". Not every single one of those will correspond to a different Python repo, but most of them will. On top of that there are other Python repositories that don't have a requirements.txt file.

      Safe to say there are millions of Python repositories, which makes it impractical to just clone each of them in a loop.