Github Repo Downloader (grd)
grd is a lightweight yet powerful Python CLI tool that allows you to download specific files or folders from large GitHub repositories—without cloning the entire repo.
Why Repo Downloader?
Have you ever followed a tutorial and needed just a small example from a GitHub repository—only to end up cloning the entire project?
Repo Downloader solves this problem by letting you:
- Download a single file
- Download a specific folder
- Avoid unnecessary files and save time
Features
- Download individual files from any GitHub repo
- Download specific folders without cloning the full repository
- Simple and intuitive CLI interface
- Supports custom branches
- Cross-platform (Windows, macOS, Linux)
Installation
🔧 Prerequisites
-
Python 3.10 or higher
-
pipinstalled -
Alternatively you can use
uv.
# if using uv
uv tool install grd-init
- Tip: If you encounter permission issues, try:
pip install --user grd-init
Linux
pip3 install grd-init
MacOs
pip3 install grd-init
Windows
pip install grd-init
Usage
Available Commands
| Command | Description |
|---|---|
folder |
Download a folder from a repository |
single |
Download a single file |
example |
Show example usage |
version |
Display current version |
Available Arguments
| Argument | Short | Description |
|---|---|---|
--name |
-n |
Folder name (required for folder command) |
--link |
-l |
GitHub repository URL (required) |
--path |
-p |
Destination path (default: current directory) |
--branch |
-b |
Branch name (default: main) |
--file |
-f |
File name (required for single command) |
Verify Download
grd version
# or
grd --help
# Also install auto-completions (recommended)
grd --install-completion
grd --show-completion
Examples
Download a Folder
grd folder --name "repo_folder_name" --link "github_repo_url"
grd folder -n "repo_folder_name" -l "github_repo_url" --path "destination_path"
grd folder -n "repo_folder_name" -l "github_repo_url" -p "destination_path" --branch "branch_name"
Download a Single File
grd single --file "file_name" --link "github_repo_url"
grd single -f "file_name" -l "github_repo_url"
Example Command Help
grd example
License
This project is licensed under the MIT License. See LICENSE for details.
Metadata
Release files for grd-init 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| grd_init-0.1.3.tar.gz | 5.6 kB | Without provenance | Details for grd_init-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| grd_init-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for grd_init-0.1.3-py3-none-any.whl |
Total release size: 12.4 kB
Release files / grd_init-0.1.3.tar.gz
| Download URL | grd_init-0.1.3.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7621c1c536c0701b85ba6aa22be8f925bff7feafb9273c5e35ad9a885323cdaa
|
|
BLAKE2b-256 checksum How to use checksums |
090691da2e14cb1a7c89f43fedf5ac5f0a8aae80610f1e3eb169ffe29edf306d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / grd_init-0.1.3-py3-none-any.whl
| Download URL | grd_init-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7845a805b79e50c350672ef267e660dfde64e8da510d10bd6ef883b71bbeec29
|
|
BLAKE2b-256 checksum How to use checksums |
7d6033a1f7919c981dc0eb99ad8c48e006e0c32f295d11d05aa10aa5576244b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for grd-init 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.