Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doomgit-0.1.0.tar.gz (67.3 kB view hashes)

Uploaded Source

Built Distribution

doomgit-0.1.0-py3-none-any.whl (19.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page