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.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

github_dlr-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for github_dlr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 93dcf191457779dcac2bbcc5992f2dd5268e1d8b1ff283d0067d935db4c29fb1
MD5 66cf2df2874cb81d2f81a17f4d0bea16
BLAKE2b-256 98f722628c6892571b414d60bf2ad72d4447b47a3f65dd23457eca296c2be6ca

See more details on using hashes here.

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

Hashes for github_dlr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10b803ce23192ef7bede453f4164ea861397425f50d908f5f799a80ccb2f78b2
MD5 4e9341f3e5f3c6b11e6c5770f2ba9f5a
BLAKE2b-256 2ad4c7db27093fdb2d4c03a2b264af93662ac8dec81ef1807020d7c42c68cf14

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