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.
Release files for doomgit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| doomgit-0.1.0.tar.gz | 67.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| doomgit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.8 kB
Release files / doomgit-0.1.0.tar.gz
| Download URL | doomgit-0.1.0.tar.gz |
|---|---|
| Size | 67.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01a3d8001a9088c33990e143d48a8d91b535d6a05a9555553a65d31407f44f67
|
|
BLAKE2b-256 checksum How to use checksums |
7315d4697c57bb51882917c5a81050ed1d5ad74a8e3fb55788deaa84ae207496
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / doomgit-0.1.0-py3-none-any.whl
| Download URL | doomgit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b439967550d14fbc99400538f474e29d3cac4eda1edade88715e77218c86425
|
|
BLAKE2b-256 checksum How to use checksums |
29c0ff4c94da030b63df2c45da4a25a32e0f548bb4280b0f68fb093280673ef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|