Skip to main content

Download individual files and folders from Github

Project description

Github-dlr

Download individual files and folders from Github recursively.

Tests

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 alias gh-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


Download files

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

Source Distribution

github_dlr-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

github_dlr-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file github_dlr-0.1.0.tar.gz.

File metadata

  • Download URL: github_dlr-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 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

Hashes for github_dlr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d52e2bd74ecbe9db950f2d65f94bd17f7a45bc00f7af64ee054e7e02b74e4d84
MD5 aa2c49872e6223a902556914946b606b
BLAKE2b-256 2d6a9f91e705bf71645deaaff5d04079179e4a0f3e1ee7f15cccb7033ab0a78f

See more details on using hashes here.

File details

Details for the file github_dlr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: github_dlr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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

Hashes for github_dlr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 989a6e788e4abca9429cdfee4327e7d5f6507a5113f70b5d82d65e77d9e3bb7c
MD5 a5cc9905eb36771075afd11ebef04e72
BLAKE2b-256 c323d2512d6169f41486f2b2ad272927260f59de174b3434a718d84dd588830e

See more details on using hashes here.

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