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+
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file doomgit-0.1.0.tar.gz
.
File metadata
- Download URL: doomgit-0.1.0.tar.gz
- Upload date:
- Size: 67.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a3d8001a9088c33990e143d48a8d91b535d6a05a9555553a65d31407f44f67 |
|
MD5 | 8af1355cc8a2a60d6eab249f18f7964d |
|
BLAKE2b-256 | 7315d4697c57bb51882917c5a81050ed1d5ad74a8e3fb55788deaa84ae207496 |
File details
Details for the file doomgit-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: doomgit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b439967550d14fbc99400538f474e29d3cac4eda1edade88715e77218c86425 |
|
MD5 | 4deb563ee571884c5c41810a1a338b1b |
|
BLAKE2b-256 | 29c0ff4c94da030b63df2c45da4a25a32e0f548bb4280b0f68fb093280673ef2 |