{"id":20691722,"url":"https://github.com/necraul/gist-neko","last_synced_at":"2026-06-05T10:31:36.178Z","repository":{"id":191751259,"uuid":"685319190","full_name":"NecRaul/gist-neko","owner":"NecRaul","description":"CLI for downloading all gists from a specified user","archived":false,"fork":false,"pushed_at":"2024-02-24T10:20:12.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-27T08:04:25.167Z","etag":null,"topics":["downloader","gist-api","gist-cli","gist-neko","gists","kuroneko","python","python3","requests"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/gist-neko/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NecRaul.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-31T01:14:19.000Z","updated_at":"2024-03-23T22:00:50.000Z","dependencies_parsed_at":"2024-01-09T02:32:43.085Z","dependency_job_id":"d95c78ac-3d22-465c-9f13-d3fc6cb21a0a","html_url":"https://github.com/NecRaul/gist-neko","commit_stats":null,"previous_names":["necraul/gist-neko"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NecRaul%2Fgist-neko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NecRaul%2Fgist-neko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NecRaul%2Fgist-neko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NecRaul%2Fgist-neko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NecRaul","download_url":"https://codeload.github.com/NecRaul/gist-neko/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242954684,"owners_count":20212203,"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":["downloader","gist-api","gist-cli","gist-neko","gists","kuroneko","python","python3","requests"],"created_at":"2024-11-16T23:17:41.748Z","updated_at":"2026-06-05T10:31:36.146Z","avatar_url":"https://github.com/NecRaul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gist-neko\n\nCLI for downloading all gists from a specified user.\n\n## Requirements\n\n`requests` is used to get information from the Github API and download the gists (if you don't use -g/--git to download using git).\n\nNote that `requests` will not download submodules but git will.\n\nIf you want to build this on your own, you can install the requirements with\n\n```Python\npip install -r requirements.txt\n```\n\nor install the package by running\n\n```Python\npip install gist-neko\n```\n\nPython's native `os` (used to check for whether a folder exists or not), `argparse` (parse return request and set command argument), `subprocess` (call `git clone` and `git pull` on gists) and `setuptools` (used to build the script) packages are also used.\n\n## How it works\n\nI send requests to `https://api.github.com/users/{username}/gists`, depending on the arguments passed to the script, I either download all the gists in specified user's account with either `requests` or `git`.\n\nYou can run the script with\n\n```Python\ngist-neko\n    -u \u003cgithub-username\u003e\n    -t \u003cgithub-personal-access-token\u003e (optional - you will just download the public gists instead of all gists)\n    -e (optional - means you will be using environment variables. This overrides -u and -t)\n    -g (optional - means you will be downloading using git)\n    -gu \u003cgithub-username\u003e (this will set \u003cgithub-username\u003e as environment variable)\n    -gpat \u003cgithub-personal-access-token\u003e (this will set \u003cgithub-personal-access-token\u003e as environment variable)\n```\n\n### Examples\n\n#### Setting Environment Variables\n\nThis will set the specified **Github username** and **personal access token** as your `GITHUB_USERNAME` and `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable respectively. On Linux this is a bit buggy.\n\n```Python\ngist-neko -gu \u003cgithub-username\u003e -gpat \u003cgithub-personal-access-token\u003e\n```\n\nThis will set the specified **Github username** as your `GITHUB_USERNAME` environment variable. On Linux this is a bit buggy.\n\n```Python\ngist-neko -gu \u003cgithub-username\u003e\n```\n\nThis will set the specified **personal access token** as your `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable. On Linux this is a bit buggy.\n\n```Python\ngist-neko -gpat \u003cgithub-personal-access-token\u003e\n```\n\n#### Public Gists without Environment Variables\n\nThis will use the specified **Github username** and download all **public gists** using `requests`.\n\n```Python\ngist-neko -u \u003cgithub-username\u003e -t \u003cgithub-personal-access-token\u003e\n```\n\nThis will use the specified **Github username** and download all **public gists** using `git`.\n\n```Python\ngist-neko -u \u003cgithub-username\u003e -t \u003cgithub-personal-access-token\u003e -g \u003canything\u003e\n```\n\n#### Public and Private Gists without Environment Variables\n\nThis will use the specified **Github username** and **personal access token** and download all **public and private gists** using `requests`.\n\n```Python\ngist-neko -u \u003cgithub-username\u003e -t \u003cgithub-personal-access-token\u003e\n```\n\nThis will use the specified **Github username** and **personal access token** and download all **public and private gists** using `git`.\n\n```Python\ngist-neko -u \u003cgithub-username\u003e -t \u003cgithub-personal-access-token\u003e -g \u003canything\u003e\n```\n\n#### Public and Private Gists with Environment Variables\n\nThis will use the **Github username** and **personal access token** in the **environment variables** and download all **public and private gists** using `requests`.\n\n```Python\ngist-neko -e \u003canything\u003e\n```\n\nThis will use the **Github username** and **personal access token** in the **environment variables** and download all **public and private gists** using `git`.\n\n```Python\ngist-neko -e \u003canything\u003e -g \u003canything\u003e\n```\n\n#### Public and Private Gists with Environment Variables (Overriding passed Username and Personal Access Token)\n\nThis will **ignore** the passed **Github username** and **personal access token** instead using **environment variables** and download all **public and private gists** using `requests`.\n\n```Python\ngist-neko -u \u003cgithub-username\u003e -t \u003cgithub-personal-access-token\u003e -e \u003canything\u003e\n```\n\nThis will **ignore** the passed **Github username** and **personal access token** instead using **environment variables** and download all **public and private gists** using `git`.\n\n```Python\ngist-neko -u \u003cgithub-username\u003e -t \u003cgithub-personal-access-token\u003e -e \u003canything\u003e -g \u003canything\u003e\n```\n\n### Simplified Examples\n\nIf you want to only download your gists (public), you can do\n\n```Python\ngist-neko -u \u003cyour-username\u003e\n```\n\nIf you want to only download your gists (public and private), you can either do\n\n```Python\ngist-neko -u \u003cyour-username\u003e -t \u003cyour-personal-access-token\u003e\n```\n\nor you can put your information on environment variables and do\n\n```Python\ngist-neko -e \u003canything\u003e\n```\n\nIf you want to download other people's gists (public), you can do\n\n```Python\ngist-neko -u \u003ctheir-username\u003e\n```\n\nIf you want to download other people's gists (public and private), you can do\n\n```Python\ngist-neko -u \u003ctheir-username\u003e -t \u003ctheir-personal-access-token\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnecraul%2Fgist-neko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnecraul%2Fgist-neko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnecraul%2Fgist-neko/lists"}