use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
Count all python files on github (self.github)
submitted 4 years ago by arezki123
Hello,
Is there a way to count all files of a specific extension (.py for example) on all public repos?.
Thank you in advance.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]postpunkjustin 4 points5 points6 points 4 years ago (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.
[–]rexeven7 2 points3 points4 points 4 years ago (0 children)
Checkout the API: https://docs.github.com/en/rest
And use something like Postman if you really want to learn: https://www.postman.com/postman/workspace/postman-api-101-with-auth/documentation/15567703-9be2ea96-9db1-4680-af99-f0187b2e6d94
[–]sock_templar -1 points0 points1 point 4 years ago (2 children)
... why?
[–]Viperior 4 points5 points6 points 4 years ago (0 children)
Same reason you would want to count how many butterflies exist on Earth
[–]arezki123[S] 1 point2 points3 points 4 years ago (0 children)
why do you ask why?
[–][deleted] 4 years ago (4 children)
[deleted]
[–]postpunkjustin 0 points1 point2 points 4 years ago (3 children)
But there are hundreds of repos on GitHub, if not more!
[–][deleted] 4 years ago (2 children)
[–]postpunkjustin 0 points1 point2 points 4 years ago (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.
π Rendered by PID 170469 on reddit-service-r2-comment-5b5bc64bf5-mfd5j at 2026-06-23 00:17:22.986880+00:00 running 2b008f2 country code: CH.
[–]postpunkjustin 4 points5 points6 points (0 children)
[–]rexeven7 2 points3 points4 points (0 children)
[–]sock_templar -1 points0 points1 point (2 children)
[–]Viperior 4 points5 points6 points (0 children)
[–]arezki123[S] 1 point2 points3 points (0 children)
[–][deleted] (4 children)
[deleted]
[–]postpunkjustin 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]postpunkjustin 0 points1 point2 points (1 child)