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
Requires Python version 3.8 or higher.
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/makccr/wallpapers/blob/master/wallpapers/space
[!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/makccr/wallpapers/blob/master/wallpapers/space
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.2.tar.gz
.
File metadata
- Download URL: github_dlr-0.1.2.tar.gz
- Upload date:
- Size: 5.2 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 | fac37109281ee3669042cd9f64165c101c4882bf79ec4245bb2a2702d888851e |
|
MD5 | 958db5af262049b2d74a95e9b6782422 |
|
BLAKE2b-256 | a2b327b11acb2aa73158f7b0c418cd380b06a41f62a2c92b33dcac0e9ea16ede |
File details
Details for the file github_dlr-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: github_dlr-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.4 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 | bafa789a36116cf8f109d97040469dddca5af6e5c18b204dbb29be545622d817 |
|
MD5 | c1391d9360d9375b58df7ea2143685a3 |
|
BLAKE2b-256 | 5bc885d04e9e295c51bed07279a952ad3fd55a0f48f4f84ecb5376f1e2e274bf |