Skip to main content

GitDownloader

GitDownloader-Logo

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

  1. Download a single file:

    GitDownloader https://github.com/user/repo/blob/main/path/to/file.txt
    
  2. Download an entire directory:

    GitDownloader https://github.com/user/repo/tree/main/path/to/directory
    
  3. Download the whole repository:

    GitDownloader https://github.com/user/repo
    
  4. Save files as a ZIP archive:

    Add -z to 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

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)

Source distribution for GitDownloader 1.0.19
File Size Uploaded
gitdownloader-1.0.19.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for GitDownloader 1.0.19
File Interpreter ABI Platform
GitDownloader-1.0.19-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.19 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page