Registry / devops / ghcloneall

ghcloneall

JSON →
library1.12.0pypypiunverified

Clone or update all repositories for a GitHub user or organization. Current version: 1.12.0. Release cadence: infrequent, stable.

pip install ghcloneall
INSTALL
IMPORT
SIG · GHCLONEALL
G
ghcloneall
devopspythonv1.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Clone or update all repositories for a GitHub user or organization.

import ghcloneall # Clone all repos for user 'octocat', skipping existing ones ghcloneall.clone_user('octocat', skip_existing=True) # Update all repos (pull) for an organization token = os.environ.get('GITHUB_TOKEN', '') ghcloneall.update_organization('my-org', skip_existing=True, github_token=token)
ghcloneall --version
Debug
Known issues
gotchaWithout a GITHUB_TOKEN, unauthenticated requests are heavily rate-limited. For large orgs or many repos, provide a token via environment variable or parameter.
fix
Set the GITHUB_TOKEN environment variable or pass it as a parameter to functions that accept it.
affects: all
gotchaThe `skip_existing` parameter defaults to False. If you run `clone_user` without it, existing directories will cause an error.
fix
Always pass `skip_existing=True` unless you want to overwrite existing repos.
affects: all
gotchaThe library uses the GitHub API; a '404' may occur if the user/org doesn't exist or you lack access. The error message may not be clear.
fix
Verify the GitHub username/organization exists and that your token (if used) has the correct permissions.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'ghcloneall'
The library is not installed.
fix
Run `pip install ghcloneall`.
Git command failed: git clone ...
Git is not installed or not in PATH, or the repository URL is invalid.
fix
Install Git from https://git-scm.com/ and ensure it is available in your system PATH.
406 Client Error: Not Acceptable for url: https://api.github.com/...
Missing or invalid GitHub token, or API version mismatch.
fix
Provide a valid GitHub token via the `github_token` parameter or GITHUB_TOKEN environment variable.
Upgrade
Version history
1.12.0latest on PyPI · released Oct 9, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
ghcloneall — pip install ghcloneall · libregistry