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
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 github_bulk_clone-0.0.1.tar.gz.
File metadata
- Download URL: github_bulk_clone-0.0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
577739b3b8f66530e492d170f9d397579c65e1da2d46102f56a2b50666bd7e71
|
|
| MD5 |
d848059a3e226256fa03408de54e6d0f
|
|
| BLAKE2b-256 |
2f5d8b78ea93d738bc375c8203fe20ad9d5c8da5c7e48093e53fe23a3a9c1b8d
|
File details
Details for the file github_bulk_clone-0.0.1-py3-none-any.whl.
File metadata
- Download URL: github_bulk_clone-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4672659a4b7b66e05105139b81c00f07c51dc1629e0c062ff05973221eee7819
|
|
| MD5 |
0007aea1dd3e0f1b9599020a13880179
|
|
| BLAKE2b-256 |
e042e20f10b5bedb713d5c0ab5b22d6bb7dc46b1f62fad94d237710fab9e0d8b
|