https://github.com/leynier/gh-folder-download
A command line application (CLI) to download only a specific folder without downloading the full repository implemented with Python using Typer and GitHub API.
https://github.com/leynier/gh-folder-download
cli cli-app github-api github-download-tool github-downloader python rich typer typer-cli
Last synced: 3 months ago
JSON representation
A command line application (CLI) to download only a specific folder without downloading the full repository implemented with Python using Typer and GitHub API.
- Host: GitHub
- URL: https://github.com/leynier/gh-folder-download
- Owner: leynier
- License: mit
- Created: 2022-08-22T07:02:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T02:05:46.000Z (over 1 year ago)
- Last Synced: 2025-03-15T23:17:58.201Z (3 months ago)
- Topics: cli, cli-app, github-api, github-download-tool, github-downloader, python, rich, typer, typer-cli
- Language: Python
- Homepage: https://pypi.org/project/gh-folder-download
- Size: 181 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# GitHub Folder Downloader
[](https://opensource.org/licenses/MIT)
[](https://pypi.org/project/gh-folder-download)
[](https://github.com/leynier/gh-folder-download/commits)
[](https://github.com/leynier/gh-folder-download/commits)
[](https://github.com/leynier/gh-folder-download/stargazers)
[](https://github.com/leynier/gh-folder-download/network/members)
[](https://github.com/leynier/gh-folder-download)
[](https://github.com/leynier/gh-folder-download/graphs/contributors)A command line application (CLI) to download only a specific folder without downloading the full repository implemented with Python using Typer and GitHub API.
## Getting Started
Install `gh-folder-download` with:
- `pip install gh-folder-download`
- `poetry add gh-folder-download`
- `conda install gh-folder-download`
- Any other way that allows you to install the package from PyPI.## Commands
```bash
Usage: gh-folder-download [OPTIONS]Options:
--url TEXT Repository URL [required]
--output DIRECTORY Output folder [default: .]
--token TEXT GitHub token
--force / --no-force Remove existing output folder if it exists
[default: no-force]
--install-completion [bash|zsh|fish|powershell|pwsh]
Install completion for the specified shell.
--show-completion [bash|zsh|fish|powershell|pwsh]
Show completion for the specified shell, to
copy it or customize the installation.
--help Show this message and exit.
```## GitHub Repository URL format
- `https://github.com/{user_or_organization}/{repository_name}`
> Download the full repository from the default branch.
- `https://github.com/{user_or_organization}/{repository_name}/tree/{branch}`
> Download the full repository from the specified branch.
- `https://github.com/{user_or_organization}/{repository_name}/tree/{branch}/{folder_path}`
> Download the specified folder from the specified branch.