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.

Or you can just use blkclone

blkclone <username> <clone_directory> [-t <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.3.tar.gz (5.3 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.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: github_bulk_clone-0.0.3.tar.gz
  • Upload date:
  • Size: 5.3 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.3.tar.gz
Algorithm Hash digest
SHA256 caaadd983bf8bec212f4ac4b0cc1136d2281f3586d7041542cace51cc57619f2
MD5 011bf82c480c37e0e4c8e7aad4fa3721
BLAKE2b-256 37527b6df127a1513c4861c05c03a4c1707297fecd064384a137a78b09c9c517

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_bulk_clone-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2e17f405c2dcb3f7e15addb44c742f0cecb7356fef34d823aae240f436a80361
MD5 7f994b31ace7a97c8a6fe316c9bb666d
BLAKE2b-256 267b46edc9a79c22fadf5ac2a7e7436fe7f8e21520d1e5016547b081fb2b1f03

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