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
Metadata
Release files for GitDownloader 1.0.19
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 |
|---|---|---|---|---|
| gitdownloader-1.0.19.tar.gz | 4.8 kB | Without provenance | Details for gitdownloader-1.0.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| GitDownloader-1.0.19-py3-none-any.whl | Python 3 | none | any | Details for GitDownloader-1.0.19-py3-none-any.whl |
Total release size: 10.4 kB
Release files / gitdownloader-1.0.19.tar.gz
| Download URL | gitdownloader-1.0.19.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9303c11fae1fb5e05c84a40a8284b51d66f01b6a8098a441a460761c9108526
|
|
BLAKE2b-256 checksum How to use checksums |
5a180d21e65074365cc010718e30c617545872ba2b7bed7839255e9c73e3abc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / GitDownloader-1.0.19-py3-none-any.whl
| Download URL | GitDownloader-1.0.19-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
651f869a14f809f28320ef40f27aaf5d6dba3c3994b22a0fa56e77c89b0d5d3e
|
|
BLAKE2b-256 checksum How to use checksums |
45300a38d127df6a73577841faea515b59efff04597747782443239eb49e07f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for GitDownloader 1.0.19
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.