Package: git-neko
git-nekoCLI for downloading all repositories from a specified user.Requirementsrequestsis used to get information from the Github API and download the repositories (if you don't use -g/--git to download using git).Note thatrequestswill not download submodules but git will.If you want to build this on your own, you can install the requirements withpipinstall-rrequirements.txtor install the package by runningpipinstallgit-nekoPython's nativeos(used to check for whether a folder exists or not),argparse(parse return request and set command argument),subprocess(callgit cloneandgit pullon repositories) andsetuptools(used to build the script) packages are also used.How it worksI send requests tohttps://api.github.com/users/{username}/reposorhttps://api.github.com/user/repos, depending on the arguments passed to the script, I either download all the repositories in specified user's account with eitherrequestsorgit.You can run the script withgit-neko-u<github-username>-t<github-personal-access-token>(optional-youwilljustdownloadthepublicrepositoriesinsteadofallrepositories)-e(optional-meansyouwillbeusingenvironmentvariables.Thisoverrides-uand-t)-g(optional-meansyouwillbedownloadingusinggit)-gu<github-username>(thiswillset<github-username>asenvironmentvariable)-gpat<github-personal-access-token>(thiswillset<github-personal-access-token>asenvironmentvariable)ExamplesSetting Environment VariablesThis will set the specifiedGithub usernameandpersonal access tokenas yourGITHUB_USERNAMEandGITHUB_PERSONAL_ACCESS_TOKENenvironment variable respectively. On Linux this is a bit buggy.git-neko-gu<github-username>-gpat<github-personal-access-token>This will set the specifiedGithub usernameas yourGITHUB_USERNAMEenvironment variable. On Linux this is a bit buggy.git-neko-gu<github-username>This will set the specifiedpersonal access tokenas yourGITHUB_PERSONAL_ACCESS_TOKENenvironment variable. On Linux this is a bit buggy.git-neko-gpat<github-personal-access-token>Public Repositories without Environment VariablesThis will use the specifiedGithub usernameand download allpublic repositoriesusingrequests.git-neko-u<github-username>-t<github-personal-access-token>This will use the specifiedGithub usernameand download allpublic repositoriesusinggit.git-neko-u<github-username>-t<github-personal-access-token>-g<anything>Public and Private Repositories without Environment VariablesThis will use the specifiedGithub usernameandpersonal access tokenand download allpublic and private repositoriesusingrequests.git-neko-u<github-username>-t<github-personal-access-token>This will use the specifiedGithub usernameandpersonal access tokenand download allpublic and private repositoriesusinggit.git-neko-u<github-username>-t<github-personal-access-token>-g<anything>Public and Private Repositories with Environment VariablesThis will use theGithub usernameandpersonal access tokenin theenvironment variablesand download allpublic and private repositoriesusingrequests.git-neko-e<anything>This will use theGithub usernameandpersonal access tokenin theenvironment variablesand download allpublic and private repositoriesusinggit.git-neko-e<anything>-g<anything>Public and Private Repositories with Environment Variables (Overriding passed Username and Personal Access Token)This willignorethe passedGithub usernameandpersonal access tokeninstead usingenvironment variablesand download allpublic and private repositoriesusingrequests.git-neko-u<github-username>-t<github-personal-access-token>-e<anything>This willignorethe passedGithub usernameandpersonal access tokeninstead usingenvironment variablesand download allpublic and private repositoriesusinggit.git-neko-u<github-username>-t<github-personal-access-token>-e<anything>-g<anything>Simplified ExamplesIf you want to only download your repositories (public), you can dogit-neko-u<your-username>If you want to only download your repositories (public and private), you can either dogit-neko-u<your-username>-t<your-personal-access-token>or you can put your information on environment variables and dogit-neko-e<anything>If you want to download other people's repositories (public), you can dogit-neko-u<their-username>If you want to download other people's repositories (public and private), you can dogit-neko-u<their-username>-t<their-personal-access-token>