Download individual files and folders from Github
Project description
Github-dlr
Download individual files and folders from Github recursively.
Motivation
The project aims to save time and resources by allowing users to download only the specific folders and files they need from a GitHub repository, without the hassle of cloning the entire repo. It's designed for efficiency, making development and learning more streamlined.
Install
pip install github-dlr
or using pipx
pipx install github-dlr
Usage
[!NOTE] Using the tool is straightforward, copy the Github URL of the target repository folder and paste it after the command
github-dlr
or it's aliasgh-dlr
.
github-dlr <github_path>
# Basic Example
github-dlr https://github.com/linuxdotexe/nordic-wallpapers/tree/master/dynamic-wallpapers/Coast
[!NOTE] By default it will download the entire folder from Github and place in the current directory from where the command is being executed. If you want to specify a different output directory, you can do it via the
--output
or-o
flag.
github-dlr --output wallpapers https://github.com/linuxdotexe/nordic-wallpapers/tree/master/dynamic-wallpapers/Coast
Find all available options using --help
usage: github-dlr [-h] [-o] [-v] github_path
Download folders and files from Github.
positional arguments:
github_path Github directory full URL path
options:
-h, --help show this help message and exit
-o , --output Destination directory to download to
-v, --version show program version number and exit
Thanks for using github-dlr!
LICENSE
MIT License © Rocktim Saikia 2024
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 github_dlr-0.1.1.tar.gz
.
File metadata
- Download URL: github_dlr-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93dcf191457779dcac2bbcc5992f2dd5268e1d8b1ff283d0067d935db4c29fb1 |
|
MD5 | 66cf2df2874cb81d2f81a17f4d0bea16 |
|
BLAKE2b-256 | 98f722628c6892571b414d60bf2ad72d4447b47a3f65dd23457eca296c2be6ca |
File details
Details for the file github_dlr-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: github_dlr-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10b803ce23192ef7bede453f4164ea861397425f50d908f5f799a80ccb2f78b2 |
|
MD5 | 4e9341f3e5f3c6b11e6c5770f2ba9f5a |
|
BLAKE2b-256 | 2ad4c7db27093fdb2d4c03a2b264af93662ac8dec81ef1807020d7c42c68cf14 |