doomgit

A CLI tool to download any file or directory from GitHub.


Keywords
automation, github
License
GPL-3.0
Install
pip install doomgit==0.1.0

Documentation

DOOMGIT

A CLI tool to download any file or directory from GitHub.

Prerequisites

  • Linux

  • Python 3.6+

  • Requests

  • GNU Wget 1.20.3+ (it might work on earlier versions but it's not been tested)

Installation

pip install doomgit

Usage

doomgit <url>

<url> - url of a file or directory

Example

doomgit https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/JetBrainsMono

Configuration

Edit the config file to be able to make authenticated requests.

For unauthenticated requests, the rate limit allows for up to 60 requests per hour.

For authenticated requests, the rate limit allows for up to 5000 requests per hour.

Authentication will allow you to download files and directories from your private repositories.

This command will output the full path of the config file:

pip show doomgit | grep 'Location' | grep -o -E '[/].+' | xargs printf '%s/DOOM/config.py\n'

Links

Troubleshooting

doomgit: command not found

Execute this command: echo "$PATH" | grep -q "/.local/bin" && echo "true" || echo "false"

If it returns "false" add this line to your .bashrc/.zshrc: export PATH="$HOME/.local/bin:$PATH"

Inspiration

This project was inspired by DownGit - github.com/MinhasKamal/DownGit

The name of the project was inspired by Doom Emacs - github.com/hlissner/doom-emacs

License

This project uses the following license: GPLv3.