Skip to main content

A script that script that helps get a backup of all your github projects.

Project description

README for GitHub Bulk Clone

Overview

github-bulk-clone is a Python package that allows you to efficiently clone all repositories from a specified GitHub user, including private ones if you have access.

Installation

Install via pip:

pip install github-bulk-clone

Usage

Command-line

Run the following command in your terminal:

python -m github_bulk_clone <username> <clone_directory> [-t <token>]
  • <username>: GitHub username.
  • <clone_directory>: Local directory for cloning.
  • -t <token>: Optional GitHub personal access token.

Python Script

Import and use the functions directly:

from github_bulk_clone import clone_all_repos_of

clone_all_repos_of('USER_NAME', 'YOUR_TOKEN', './my_repos')

Functions

  • get_all_repo_names(api_token, username): Fetches repository URLs.
  • store_repo_names_to_file(repo_list, path): Saves repository URLs to a file.
  • clone_from_list(repos, clone_directory): Clones repositories from a list.
  • clone_all_repos_of(username, api_token, clone_directory): Main function to clone repositories.

License

This project is licensed under the MIT License.

Contributing

Feel free to contribute via pull requests or by opening issues on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_bulk_clone-0.0.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_bulk_clone-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file github_bulk_clone-0.0.2.tar.gz.

File metadata

  • Download URL: github_bulk_clone-0.0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for github_bulk_clone-0.0.2.tar.gz
Algorithm Hash digest
SHA256 21acd840e873eb42c0b369321e47fb1b4133d47eecd9755260394a13e84ff767
MD5 a916198a586b17b59b4b181fc0188adf
BLAKE2b-256 f4d760a4ad262baa00084fb52f62396f79705d899788df0e8ff9c67dd4ac4fc8

See more details on using hashes here.

File details

Details for the file github_bulk_clone-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for github_bulk_clone-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e29365d96d26c3b88d2beabd099869a012f94698ce42f34904e23c0f0938ae1a
MD5 4655621b9bba61803255fc328ec88ff9
BLAKE2b-256 1f92e3e225ac2f5ac97e887342771a0e3bbb1fabb49f0d4d79db718daad51b6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page