A tool to clone efficiently all the repos in an organization
Project description
cloner
A tool to clone efficiently all the repos in an organization
Install
pip install wr-cloner
Yes, it's called wr-cloner in PyPi, since cloner was already taken :sad:
Usage
Usage: python -m cloner [OPTIONS] GITHUB_ORGANIZATION
Clones all visible repositories for a given organization.
Options:
--version Show the version and exit.
--token TEXT GitHub token to read private repos. This
parameter is needed when cloning from an
GitHub Enterprise server.
--ghe TEXT GitHub Enterprise URL. It needs the
GITHUB_ORGANIZATION parameter to clone repos
from there and the TOKEN option as well.
--threads INTEGER Number of threads and processes to use.
[default: 4]
--logging [ERROR|WARNING|INFO|DEBUG]
Logging level [default: INFO]
--help Show this message and exit.
Example
# For github.com
python cloner --threads 8 GITHUB_ORGANIZATION
# For GHE
python cloner --ghe GHE_URL --token SUPER_SECURE_TOKEN GITHUB_ORGANIZATION
Contributing
Check the CONTRIBUTING.md file.
Security
Follow the instructions in the SECURITY.md file.
License
Other & Troubleshooting
Multithreading doesn't work to clone repos, since the os.system
call is 1 for each PID. The splitting is done with
multithreading, the cloning with multiprocessing. Same amount of threads and processes.
Star History
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
wr-cloner-1.6.0.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for wr_cloner-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f34262fd972b24e81d59d51cdf2b0d94bc00c0b39b4174271feb8e2d4f9792db |
|
MD5 | c271ca738dcf068cf41a079f4a25a5ab |
|
BLAKE2b-256 | 45b3f4e86ce459ab8bc38a22fdd8e58caf5f35e517a7d6a1602372d67441f24e |