A CLI tool to download GitHub folders.
Project description
GitDownloader
GitDownloader is a Python CLI tool for downloading files, directories, or entire repositories from GitHub, supporting recursive downloads for folders and the option to save files as a ZIP archive.
Features
- Download individual files, directories, or entire repositories from GitHub.
- Recursively fetch files from a directory in a repository.
- Option to save files as individual files or compress them into a ZIP archive.
- Simple and user-friendly CLI interface.
Installation
Ensure you have Python 3.7 or later installed. Then, install GitDownloader using pip:
pip install GitDownloader
Alternatively, clone the repository and install it directly:
git clone https://github.com/PtPrashantTripathi/GitDownloader.git
cd GitDownloader
pip install .
Usage
Command Line Interface (CLI)
Use the GitDownloader command to download GitHub files or directories:
GitDownloader <GitHub URL>
Examples
-
Download a single file:
GitDownloader https://github.com/user/repo/blob/main/path/to/file.txt -
Download an entire directory:
GitDownloader https://github.com/user/repo/tree/main/path/to/directory -
Download the whole repository:
GitDownloader https://github.com/user/repo -
Save files as a ZIP archive:
Add
-zto zip the downloaded files.GitDownloader https://github.com/user/repo/tree/main/path/to/directory -z
License
This project is licensed under the MIT License.
Contribution
Contributions are welcome! Please fork the repository, create a feature branch, and submit a pull request.
Contact
- Author: Prashant Tripathi
- Email: PtPrashantTripathi@outlook.com
- GitHub: PtPrashantTripathi
Disclaimer
This tool interacts with GitHub's APIs and is subject to GitHub's rate limits and terms of service.
Made with ❤️ in Bharat
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitdownloader-1.0.0.tar.gz.
File metadata
- Download URL: gitdownloader-1.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
558e7a12f8f1143be502456d79bb5c56dd37ae8536260b4288ad182d3d1e0c84
|
|
| MD5 |
83f19634f8607dc08e1ecb489658c790
|
|
| BLAKE2b-256 |
5d0854c30fcb41558b4fa3a2b038842aa6c58f18b96ab8aa8211af1d26e9c812
|
File details
Details for the file GitDownloader-1.0.0-py3-none-any.whl.
File metadata
- Download URL: GitDownloader-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1e931b26b0bfac2a6fc270e3f4e911e07b86d3f825250ebb07e729a6c3a6673
|
|
| MD5 |
9ac7a04a2f0b89e78409d1ac1b80588f
|
|
| BLAKE2b-256 |
c06bb3bac330d38a355234f380a67cfc7ea8c85eae300207e7a769dc7dde532c
|