{"id":21508596,"url":"https://github.com/nlitsme/githubtool","last_synced_at":"2025-04-09T16:41:14.265Z","repository":{"id":54287534,"uuid":"128913830","full_name":"nlitsme/githubtool","owner":"nlitsme","description":"Commandline tool for searching github","archived":false,"fork":false,"pushed_at":"2023-07-20T15:09:48.000Z","size":27,"stargazers_count":8,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T18:52:14.502Z","etag":null,"topics":["command-line-tool","github-api"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlitsme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-10T10:14:40.000Z","updated_at":"2023-12-05T15:24:00.000Z","dependencies_parsed_at":"2022-08-13T11:00:57.776Z","dependency_job_id":null,"html_url":"https://github.com/nlitsme/githubtool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlitsme%2Fgithubtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlitsme%2Fgithubtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlitsme%2Fgithubtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlitsme%2Fgithubtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlitsme","download_url":"https://codeload.github.com/nlitsme/githubtool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247639208,"owners_count":20971509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","github-api"],"created_at":"2024-11-23T21:07:06.276Z","updated_at":"2025-04-09T16:41:14.238Z","avatar_url":"https://github.com/nlitsme.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\ngithubtool\n==========\n\nA tool for searching things on github from the commandline.\nThis tool needs python3.\n\nYou can search code, repositories, users. Or list repositories owned by a specific user.\nThe `--network` option will show info for all forks, like how many commits a fork is behind or ahead\nof the main repo.\n\nYou can specify your `username:password`, or an authentiction token with the `--auth` commandline\nargument. Or you can store the `auth` parameter in a json file named `~/.github_cmdline_rc`.\n\nInstall\n=======\n\nYou can insall this tool from [pypi](https://pypi.org/project/github-tool/) using pip:\n\n    pip install github-tool\n\nAnd then execute it like this:\n\n    github -l nlitsme\n\n\nOr run it directly from the source directory using:\n\n    python3 github_tool.py -l nlitsme\n\nExamples\n========\n\nList repositories owned by `nlitsme`:\n\n    github -l nlitsme\n\n\nlist all files containing a specific string:\n\n    github -a -q specific_string\n\n\nFind all very large repositories:\n\n    github -a -w repo -q \"size:\u003e8000000\"\n \n\nFind all very large files:\n\n    github -a -w code -q \"in:path zip size:\u003e500000000\"\n\nor\n\n    github -a -w code -q \"in:path zip size:400000000..500000000\"\n\n\nPrint size and description for a list of repositories:\n\n    github nlitsme/ubidump https://github.com/nlitsme/github\n\nList your current ratelimit status:\n\n    github --limits\n\nList information for all forks of a specific repository:\n\n    github --network https://github.com/nlitsme/extfstools\n\nOr list information for all forks from a user:\n\n    github -n -l nlitsme\n\n\nTODO\n====\n\n * slow down after receiving a '403' - ratelimit triggered.\n    * I did add option to go slow.\n * show network of a list of repos by querying github.com/\u003cuser\u003e/\u003crepo\u003e/network/meta\n * make multiple queries from a single commandline possible.\n * add option to list all forks, and their current branches ( and forks of forks )\n * '-l'  should take it's arg from the REPOS list, and also understand githuburls\n\n\nAUTHOR\n======\n\nWillem Hengeveld \u003citsme@xs4all.nl\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlitsme%2Fgithubtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlitsme%2Fgithubtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlitsme%2Fgithubtool/lists"}